I am using the XMLTextwriter class to create an XML document and this works fine.
However I wish to declare the XLST document in the XML Document and seem to have some trouble with this.
I am getting the an error when writing the XML stylesheet reference.
The error can be seen at:
If I add the stylessheet declaration to the XML file manuall it displays fine. I just can't add it in code.
Can anyone point out my error.
I have seen examples of how to transform a XML file with the XMLTransform class but I want to save this as an XML Document, not a transformed html document.
Any advise would be appreciated
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.