Even in theory it is not possible to create a DOM from an XPath expr, because you cannot define nodes that are in negative conditions like *[not(name="b"]. Or how about ancestor::x, where should x be in the tree?
Wim de Vries Elsevier > I can walk the DOM tree to create an xpath expression for a given > node. I need to create a DOM from scratch using XPath expression. > > say, I have the expression /a/b/c such that DOM looks like: > <a> > <b> > <c/> > </b> > </a> > > Is there any API that I can use to generate Such DOM using the XPath > expression? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
