[jdom-interest] Removing <?xml version="1.0" encoding="UTF-8"?> from
an XML doc ??
Jason Hunter
jhunter at acm.org
Sat Mar 2 15:55:37 PST 2002
You need to omit the declaration on output. Conveniently, that's what
outputter.setOmitDeclaration() does.
-jh-
"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@yourhost.com
More information about the jdom-interest
mailing list