[jdom-interest] Suppressing <?xml version="1.0"?>

Robert rmcintosh at bull-enterprises.com
Mon Feb 21 20:54:34 PST 2000

This would be nice to have. I know that it is required by XML, but in a case
like mine, I'm embedding dynamically generated XML into another XML
document, as I then have to manually remove the declaration, as it can only
appear at the begining of the document.


-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of Joseph Bowbeer
Sent: Monday, August 21, 2000 10:03 PM
To: jdom-interest at jdom.org
Subject: Re: [jdom-interest] Suppressing <?xml version="1.0"?>

By the way, I noticed that the XML Declaration (processing instruction) is
suppressed in SOAP messages.


    "All SOAP messages are encoded using XML. ... A SOAP message MUST NOT
contain Processing Instructions. ... The Envelope is the top element of the
XML document representing the message."


Date: Mon, 21 Aug 2000 08:45:38 -0700
From: Jason Hunter <jhunter at collab.net>
To: seyed at smartmonkey.co.uk
CC: "'Jdom-Interest" <jdom-interest at jdom.org>
Subject: Re: Suppressing <?xml version="1.0"?>

> > Apologies if this is a FAQ but is there
> > a way of getting the [XMLOutputter] not to
> > print the <?xml  version="1.0"?> line?
> There's no built-in way for XMLOutputter to
> suppress the decl because it's required by XML.

To control your jdom-interest membership:

More information about the jdom-interest mailing list