I am using dom4j to create a small xml document that looks like this:
<?xml version="1.0"?> <document xmlns="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://dev1.piazza.com/download/AgentProtocol.xsd"> <operation> <createAccount> <account name="Bedrock Gravel"> <userName>wilmaflintstone</userName> <ageInDays>0</ageInDays> </account> </createAccount> </operation> </document> I have written the code to create the structure. That part was very simple using dom4j. My question is - how do I get the namespace stuff added to the root element? Thanks in advance for your help. Tony _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user