[jdom-interest] Removing <?xml version="1.0" encoding="UTF-8"?> from an XML doc ? ?

Michel Gutierrez jdom at jasm.org
Sun Mar 3 10:12:39 PST 2002


I presume if you use the output method on the document's root element instead 
of the document itelf, that should do it.

On Saturday 02 March 2002 22:05, Pandia, Rajesh wrote:
> Hi:
>
> I need to remove this first line
>
> "<?xml version="1.0" encoding="UTF-8"?>"
>
> generated from a document like:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <MessageHeader>
>    <From>
>       <PartyId type="COVHUBID">COV_VPW</PartyId>
>    </From>
>    <To>
>       <PartyId type="COVHUBID">GM_GPS</PartyId>
>    </To>
>    <Service>GPS</Service>
>    <Action>LISTRFQ</Action>
>    <QualityOfServiceInfo deliverySemantics="OnceAndOnlyOnce"
> deliveryReceiptRequ
> ested="Unsigned" />
> </MessageHeader>
>
> How do I do that using JDOM ? I have generated this using JDOM.
>
> Thanks in Advance for your immediate help.
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourho
>st.com



More information about the jdom-interest mailing list