This error is being reported by Xerces (the XML parser) when parsing your source document. It looks to me as if the source document has declared that it uses ASCII as its character code (<?xml version="1.0" encoding="us-ascii"?>) but actually contains non-ASCII characters. Try parsing the document in a development environment such as Oxygen or Stylus Studio to make sure it is well-formed XML before passing it to Saxon - this may give you better diagnostics.

Michael Kay

On 04/06/2010 09:04, Pushpendra Singh Sengar wrote:
When I am making XQItem through createItemFromDocument(InputStrem,null ,null). getting following exception:

javax.xml.xquery.XQException: Byte "148" is not a member of the (7-bit) ASCII character set.
    at net.sf.saxon.xqj.SaxonXQDataFactory.newXQException(
    at net.sf.saxon.xqj.SaxonXQDataFactory.createItemFromDocument(

Please help .
Thanks & Regards ,
Pushpendra Singh

------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win:
_______________________________________________ saxon-help mailing list archived at