I am building a DOM tree in the code and one of the elements has a xs:string type attribute where its value may consist of characters like '>' and '<'.

When I set the attribute's value as follows

        element.setAttribute("attr1","g>z and w<f");

The value (for element.getAttribute("attr1");) is actually - "g>z and w&lt;f"

My question is why does the '>' char not translate to &gt; also? and how do I get it translated? - the xml file created from the DOM is not valid without &gt;

Thanks.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to