Re: [dom4j-user] Creating a namespace without a prefix (as in sitemap.xml)

2007-05-24 Thread Edwin Dankert
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";

[dom4j-user] Creating a namespace without a prefix (as in sitemap.xml)

2007-04-13 Thread Galen Palmer
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