I have the following xml.

<?xml version='1.0'?><?xml-stylesheet type='text/xsl' href=''?>

<data>

<name>a</name>

<age>1</age>

</data>

The xml is rendered using XSL. I use DOMParser to get the DOM of the XML. I then manipulate the DOM & convert it to string using XMLSerilizer. However after converting i get the following data

<data>

<name>a</name>

<age>1</age>

</data>

i.e. the stylesheet tag is removed. What am i doing wrong? Is the problem occuring in String to DOM conversion or the reconversion from DOM to String?

Plz help!!

 



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to