Sorry for replying this late.
> Element root = DocumentHelper.createElement("urlset");
> root.addNamespace("", "http://www.sitemaps.org/schemas/sitemap/0.9";);
> Document doc = DocumentHelper.createDocument(root);
>
> I end up with a structure like :
> http://www.sitemaps.org/schemas/sitemap/0.9";
HI All, I've been using dom4j for a while but never really dived into
namespaces. I'm trying to create a sitemap.xml as described here ::
http://www.sitemaps.org/protocol.html
They ask for a namespace on the document and the sample structure
looks like this:
http://www.sitemaps.org/schemas/sitem