Java Mailing List Archive

Home » Home (12/2007) » JDOM User »

[jdom-interest] Resetting the Root Element

Sebastian Hinterwälder




I have a question concerning the root element of a normal XML document.
Probably something like this already appeared in this list some time
ago, but I don't get my problem solved so far.

I have a normal "ATOM feed" which looks something like this:

<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.6" -->
<feed xmlns=""
  <subtitle>IT-News fuer Profis</subtitle>

Now I want to set a different root element using JDOM. I already tried
it by cloning the whole document but this doesn't work. A different
solution for me would also be removing the namespaces from the root. I
am quite new to JDOM - so I hope someone knows a solution!

Thanks in advance

To control your jdom-interest membership:
©2008 - Jax Systems, LLC, U.S.A.