Re: [dom4j-user] Creating node from XPath

2004-06-08 Thread John Sharp
Christian, DocumentHelper.makeElement(Branch start, String xpath) appears to do what you need. John. Christian Niles wrote: I'm having a bit of difficulty remembering where I saw a function that would create nodes based on an XPath. For example, if I had an input path of '/html:html/html:head/htm

[dom4j-user] Creating node from XPath

2004-06-08 Thread Christian Niles
I'm having a bit of difficulty remembering where I saw a function that would create nodes based on an XPath. For example, if I had an input path of '/html:html/html:head/html:title', I would want to select the title element, or create it if it doesn't exist. Is there actually such a method or h