Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML problem
Message
From
17/11/2014 09:01:50
 
 
To
17/11/2014 08:10:51
General information
Forum:
Windows
Category:
Web services
Title:
Environment versions
OS:
Windows 7
Miscellaneous
Thread ID:
01611080
Message ID:
01611083
Views:
35
The & (ampersand) is a special character, just like it is in XML, so you must encode it, meaning that you must encode it.

http://xml.silmaril.ie/specials.html

>HI
>
>I'm calling a web service to return some XML
>
>The web service is a test portal for a SUN accounts system.
>
>I want to save the XML passed back as a file for some testing.
>
>But when I view the source of the XML in Chrome it seems to alter some of the tags so what I get is not a valid XML document.
>
>For instance
>
>
>
><AnalysisCodes>
><AnalysisCode>CSX624</AnalysisCode>
><LookupCode>ESTCSX624</LookupCode>
><Name>ESTIM & MAN OO PROJ MAY00</Name>
></AnalysisCodes>
>
>is saved as 
>
><AnalysisCodes><AnalysisCode>CSX624</AnalysisCode>LookupCode>ESTCSX624</LookupCode><Name>ESTIM & MAN OO PROJ MAY00</Name></AnalysisCodes>
>
>so the <lookup> tag is changed to lookup>
>
>
>
>Any ideas why that would be or a better way to save this xml for testing.
>
>Eventually this will be automated but I wanted to check the processing of the XML
>
>Thanks
>
>Nick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform