-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edwin Dankert
Sent: Monday, December 20, 2004 3:28 AM
To: David Thielen
Cc: [EMAIL PROTECTED]
Subject: Re: [dom4j-user] namespace question
> Element wordDoc = wordML.addElement("wordDocument",
> &qu
> Element wordDoc = wordML.addElement("wordDocument",
> "http://schemas.microsoft.com/office/word/2003/wordml";);
This creates an element in the
'http://schemas.microsoft.com/office/word/2003/wordml' namespace,
without a prefix.
> wordDoc.addNamespace("w",
> "http://schemas.microsoft.com/office/
Hi;
I use:
Document wordML = DocumentHelper.createDocument();
Element wordDoc =
wordML.addElement("w:wordDocument");
wordDoc.addNamespace("w",
"http://schemas.microsoft.com/office/word/2003/wordml");
Element fonts = wordDoc.addElement("w:fonts");
This gets me:
http://
I am using dom4j to create a small xml document that looks like this:
http://gadfly.piazza.com/protocol/agent/2002";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://gadfly.piazza.com/protocol/agent/2002
http: