D_12
11-23-2005, 05:46 PM
I'm using Java to create a XML file and use the following code to add the reference to the XML file.
ProcessingInstruction temp = doc.createProcessingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"filename.xsl\"");
doc.appendChild(temp)
when I do this, it leaves a line space after the XSL reference, before the XML code begins
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="filename"?>
<MyAppl version="2.0">
...just wondering if there's anyway to get rid of that new line.
Thx
ProcessingInstruction temp = doc.createProcessingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"filename.xsl\"");
doc.appendChild(temp)
when I do this, it leaves a line space after the XSL reference, before the XML code begins
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="filename"?>
<MyAppl version="2.0">
...just wondering if there's anyway to get rid of that new line.
Thx