<?xml version="1.0" encoding="UTF-8" standalone="no"?>

is in the wrong place.  If present it must be the very first thing in
the file.

On May 16, 11:07 pm, Mobility Android <blore.mobil...@gmail.com>
wrote:
> <ns:function1Response xmlns:ns="http://ws.apache.org/axis2";>
>         <ns:return><?xml version="1.0" encoding="UTF-8" standalone="no"?>
>                 <Discount>
>                         <shop_id>1</shop_id>
>                         <product_id>11</product_id>
>                         <product_name>Soap</product_name>
>                         <shop_id>1</shop_id>
>                         <product_id>12</product_id>
>                         <product_name>Trousers</product_name>
>                 </Discount>
>         </ns:return>
> </ns:function1Response>
>
> i am getting the below exception ,when i try to parse the above xml
> file which is generated using a web service.
>
> Exception in thread "main" org.xml.sax.SAXParseException: The
> processing instruction target matching "[xX][mM][lL]" is not allowed.
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPIData(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanPIData(Unknown
> Source)
>         at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanPI(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at WebParse.main(WebParse.java:22)
>
> What may be the problem ???

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to