Forums Register Login

JDOM: filter out Attributes from Document

+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
Do an XSLT identity transformation, and omit the part that copies attributes to the output.
this is supposed to be a surprise, but it smells like a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 836 times.
Similar Threads
How to get a part of xml document in String format
Question about Filter trigger sequence
creating a Document out of a larger Document
After upgrading from 2.0.x to 2.2.x, static content no longer loads
Newbie Question---Help?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 01:54:41.