Another simple XML question

V

Vegard Beider

I was just wondering how can I retrieve and modify the xsl processing
instruction (<?xml-stylesheet type="text/xsl" href="..."?>).

VB
 
N

Nicholas Paldino [.NET/C# MVP]

VB,

You can load the document into an instance of XmlDocument, and then
perform the folloing XPath query to get the processing instructions:

processing-instruction

This will return one (if you use SelectSingleNode) or all of the
processing instructions for the document (with the exception of the XML
processing instruction declaration).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top