Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDOM: filter out Attributes from Document  RSS feed

 
Lukas Benberg
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do an XSLT identity transformation, and omit the part that copies attributes to the output.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!