While parsing an XML file which contain > and < data.
Data in XML:
<details>Name=<myName>,Group=1,Domain=<DomainId>..<oPC>,Address=<myAddress></details>
Response after parsing :
<details>Name=<myName>,Group=1,Domain=<DomainId>..<oPC>,Address=<myAddress></details>
We are replaced all < by "<" and > by ">" as this is standard way of parsing XML.
But, this data is invalid as it contains '' and we get exception Element type "myName" must be followed by either attribute specifications, ">" or "/>".
Do we need to manually replace "" while parsing data ?
Aucun commentaire:
Enregistrer un commentaire