I have written a C# application that retrieves information from an Oracle database and writes this information to an XML file - the format of the XML file is validated against an XSD file (using XMLValidatingReader).
The first line of the XML file created reads:
<?xml version="1.0" encoding="utf-8"?>
I would like to write an additional line to the XML file immediately after this line that reads:
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
This line includes a reference to the stylesheet 'test.xsl'.
How do I add this line to the XML file created?