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
Saxonica


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

javax.xml.xquery.XQException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Byte "148" is not a member of the (7-bit) ASCII character set.
    at net.sf.saxon.xqj.SaxonXQDataFactory.newXQException(SaxonXQDataFactory.java:974)
    at net.sf.saxon.xqj.SaxonXQDataFactory.createItemFromDocument(SaxonXQDataFactory.java:422)

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: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help