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