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-----
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!? |
- [dom4j-user] Processing Instruction problem with removeP... JavaXML Developer
- RE: [dom4j-user] Processing Instruction problem wit... Mike Skells
- RE: [dom4j-user] Processing Instruction problem wit... Mattias Reichel
- RE: [dom4j-user] Processing Instruction problem... JavaXML Developer
- Re: [dom4j-user] Processing Instruction pro... James Strachan