You might be able to do it with JXPath:
http://jakarta.apache.org/commons/jxpath/users-guide.html#Creating%20Objects
--Jeff
On Tue, Oct 01, 2002 at 11:07:50AM -0400, Shekhar Jha wrote:
> I was looking at the concept of using XPath to generate skeleton DOM object.
> This means that instead of doing something like (please consider the code
> below more conceptual that actual api call)
> ...
> document.appendChild( OrderElement )
> document.getChild(..).appendChild( CustomerElement )
> document.getChild(..).getChild(..).appendChild( NameElement )
> document.getChild(..).getChild(..).getChild(...).appendChild(NameValueText)
> ...
> the whole tree would be created by just one call
> ...
> node = XPathAPI.selectNode("/Order/Customer[1]/Name");
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>