How to check whether an Xml file have processing Instruction
Example
<?xml-stylesheet type="text/xsl" href="Sample.xsl"?>
<Root>
<Child/>
</Root>
I need to read the processing Instruction
<?xml-stylesheet type="text/xsl" href="Sample.xsl"?>
from the xml file.
Please help me to do this