Hi all,
I've just started to use dom4j and I'm creating a new document.
Document document = DocumentHelper.createDocument();
Element root = document.addElement( "request" );
Element service = root.addElement("service").addText(eventType +
provider + "-DirectJMSProvider");
Element header = service.addElement("header");
document.asXML():
<?xml version="1.0" encoding="UTF-8"?>
<request>
<service>TestEventProvider1-DirectJMSProvider
<header/>
</service>
</request>
How I could add my namespace declaration ?
I'm looking at
Namespace ns = DocumentHelper.createNamespace("event-bus",
"http://www.bsource.ch/EventBus");
and how adding ns to my document.
Thanks in advance
Patrizio
IMPORTANT:
This e-mail transmission is intended for the named
addressee(s)only.
Its contents are private, confidential and protected
from disclosure and should not be read, copied or
disclosed by any other person.
If you are not the intended recipient, we kindly ask
you to notify the sender immediately by telephone
(+41 (0)58 806 50 00), to redirect the message to the
account "[EMAIL PROTECTED]" and to delete this e-mail.
E-mail transmissions may be intercepted, altered or
read by unauthorized persons and may contain viruses.
Therefore, it is recommended that you use regular mail
or courier services for any information intended to be
confidential. However, by sending us messages through
e-mail, you authorize and instruct us to correspond by
e-mail in the relevant matter.
Thank you.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user