Pavani Mukthipudi wrote:
> ProcessingInstruction pi = doc.createProcessingInstruction("xml-stylesheet",
> "href=\"foo.xsl\" type=\"text/xsl\"" ) );
> doc.appendChild(pi);

And if your document already has a root element, then you might
want to insert the PI before that. For example:

  doc.insertBefore(pi, doc.getFirstChild());

-- 
Andy Clark * [EMAIL PROTECTED]

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

Reply via email to