Hi everyone,I have to parse an xml response,that I receive whit a SOAP
call.this is the xml response:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<soap:Body>
<GetProdottiConcorsoResponse xmlns="http://tempuri.org/";>
 <GetProdottiConcorsoResult>
  <ProdottoConcorsiPortale>
   <ID>2</ID>
   <Descrizione>caffè</Descrizione>
   <QuantitaMinima>0</QuantitaMinima>
   <ID_Concorso>0</ID_Concorso>
  </ProdottoConcorsiPortale>
   <ProdottoConcorsiPortale>
   <ID>1</ID>
   <Descrizione>pizza</Descrizione>
   <QuantitaMinima>0</QuantitaMinima>
   <ID_Concorso>0</ID_Concorso>
  </ProdottoConcorsiPortale>
</GetProdottiConcorsoResult>
</GetProdottiConcorsoResponse>
</soap:Body>
</soap:Envelope>

When I call the parser I receive this message error:
org.xmlpull.v1.XmlPullParserException: Error parsing document.
(position:line -1, column -1) caused by:
org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column
27: not well-formed (invalid token)

At line 1,column 27 corresponding to this line:
<?xml version="1.0" encoding="utf-8"?>

A lot of people have problem similar but with encodind = ISO8..
How can I resolve this problem?

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

Reply via email to