Gasoline
New Member
Hi,
I have generated an XML-file with line breaks after each node according to Knowledge base solution P110416. (Inserting a text node containing a linefeed character after each node).
The generated xml file also has a doctype declaration and a stylesheet reference tag. These are still output on the same line as the root node.
Can someone please tell me how to output the doctype tag and the stylesheet reference tag on separate lines?
Thanks!
I have generated an XML-file with line breaks after each node according to Knowledge base solution P110416. (Inserting a text node containing a linefeed character after each node).
The generated xml file also has a doctype declaration and a stylesheet reference tag. These are still output on the same line as the root node.
Code:
<?xml version="1.0" encoding="ISO-8859-15" ?>
<!DOCTYPE MyDoc SYSTEM "MyDoc.dtd"><?xml-stylesheet type='text/xsl' href='MyDoc.xsl'?><MyDoc>
<Node1>text</Node1>
<Node2>
<SubNode></SubNode>
</Node2>
</MyDoc>
Can someone please tell me how to output the doctype tag and the stylesheet reference tag on separate lines?
Thanks!