File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes JDOM: filter out Attributes from  Document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JDOM: filter out Attributes from  Document" Watch "JDOM: filter out Attributes from  Document" New topic
Author

JDOM: filter out Attributes from Document

Lukas Benberg
Ranch Hand

Joined: Jan 03, 2007
Posts: 45
hi all,
i would like to filter out all attributes from a djom document.

<a val="1">
<b att="foo">
<b>
<c/>
</a>

should become:

<a>
<b>
<b>
<c/>
</a>

has anyone a hint how to do this?

thank you!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18879
    
    8

Do an XSLT identity transformation, and omit the part that copies attributes to the output.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDOM: filter out Attributes from Document