PDA

View Full Version : how to add and overwrite an xml processing instruction in the xml file on submit?


wanye
09-29-2002, 09:11 AM
hi all, how do i add and overwrite an xml processing instruction in the xml file on clicking a button using asp...?? The PI is <?xml-stylesheet type="text/xsl" href="xxxfile.xsl"?>

Coz i wanted to link the xml file with different stylesheets but i wanted to hardcode this PI in xml when a user click on a button....
and how do i check if the xml file doesnt have this PI, it will add one onclick, else it will overwrite wif another PI linking to other stylesheets....??? i need help on this badly plz..... thx