Thank you so much but in my case on the fly dom4j document is getting generated and before displaying or storing it i need to remove xml declaration. I am not using XMLWriter and so OutputFormat. Is there any other way i could remove xml declaration from dom4j document directly instead of setSuppressDeclaration(true); ?

Thanks,

Vicky

 Mattias Reichel <[EMAIL PROTECTED]>wrote:

Hi,

The xml declaration is not a processing instruction.

So you cannot remove it this way.

 

Use the setSuppressDeclaration() method of OutputFormat and feed it to your XMLWriter constructor.

 

Cheers

/Mattias

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of JavaXML Developer
Sent: den 9 augusti 2002 14:03
To: [EMAIL PROTECTED]
Subject: [dom4j-user] Processing Instruction problem with removeProcessingInstruction() method

 

Hi All,

I badly need help to get removeProcessingInstruction() method wrok. If anybody could suggest me a solution, would highly be appreciated.

 


Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs



Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs

Reply via email to