Hi
all,
Just started playing with Dom4J and pretty impressed with it, so
far. Question: I have a extremely large Xml object where I want to add an
element to the middle of the Dom tree. What's the most efficient way of
doing this?
For example, I want
to create an element called
<server_address>192.10.20.41</server_address> (where 192.10.20.41 is the text
node) to
<server_request><server><weblogic><internal>....
I was trying to use
the selectSingleNode("//server_request/server/weblogic/internal") to get a
Node() and use the addElement(), but the Node class doesn't have the
addElement() method.
Could someone post
the code for creating an element in the middle of a Xml Dom if I know what the
XPath is to the parent element?
Any help is
appreciated.
Doug
Hoppes
