[jdom-interest] Changing XML Declaration

a b eagle_291 at yahoo.com
Wed Sep 12 09:09:15 PDT 2001

Hello everyone,

I'm pretty new to the XML world and would greatly
appreciate it if someone could help me out by pointing
me in the right direction.  I'm trying to change the
XML Declaration for a document that I've created in
memory.  In other words, the XML Declaration currently
looks like this:

-- <?xml version="1.0" encoding="UTF-8"?> --

but I need it to look like this instead:

-- <?xml:stylesheet type="text/xsl" href="somexs.xsl"
version="1.0" encoding="UTF-8"?> --

Is it possible to modify it the xml declaration to
look like the line above?  

Here's a snippet of the code that I'm using to
generate the document:

SAXBuilder saxObj = new SAXBuilder();
Document xmlDoc =
return xmlDoc;

Thanks for your help...

Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger

More information about the jdom-interest mailing list