[jdom-interest] Changing XML Declaration
Jason Hunter
jhunter at collab.net
Thu Sep 13 11:35:54 PDT 2001
Isn't it <?xml-stylesheet?> that you really want, and I believe it
should follow the declaration, not be the declaration.
-jh-
a b wrote:
>
> 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 =
> saxObj.build(someProcedure.getClob(6).getAsciiStream());
> return xmlDoc;
>
> Thanks for your help...
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> http://im.yahoo.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list