Hi all,
i try to make xml file with jdom, and also i made xsl file for presenting
xml in browser.
because of that i need to add processing instuction in xml file
....
<?xml-stylesheet type="text/xml" href="test.xsl" ?>
<root>
....
</root>
i did :
Element root = new Element("root") ;
Document document = new Document(root);
ProcessingInstr uction pi = new ProcessingInstr uction("xml-stylesheet",
"type='text/xsl' href='test.xsl' ");
document.addCon tent(pi);
....
i got xml file like this
<?xml version=1.0 ?>
<root>
....
</root>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
how to put this line
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
in front of <root>
thanks
i try to make xml file with jdom, and also i made xsl file for presenting
xml in browser.
because of that i need to add processing instuction in xml file
....
<?xml-stylesheet type="text/xml" href="test.xsl" ?>
<root>
....
</root>
i did :
Element root = new Element("root") ;
Document document = new Document(root);
ProcessingInstr uction pi = new ProcessingInstr uction("xml-stylesheet",
"type='text/xsl' href='test.xsl' ");
document.addCon tent(pi);
....
i got xml file like this
<?xml version=1.0 ?>
<root>
....
</root>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
how to put this line
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
in front of <root>
thanks
Comment