Adding stylesheet using DOM

jramos

New Member
I would like to know how to add the stylesheet tag to an XML using DOM

This is what I want to add.
<?xml-stylesheet href="myfile.xsl" type="text/xsl"?>


Progress Openedge 10.2B

TIA
 

jramos

New Member
After researching I found the following code:
...
hdoc:CREATE-NODE(hRoot,"xml-stylesheet","PROCESSING-INSTRUCTION").
hRoot:NODE-VALUE = 'href="myfile.xsl" type="text/xsl"'.
hDoc:APPEND-CHILD(hRoot).
...

SO this thread is SOLVED !!
 
Top