CachedXPathAPI needs to be discarded when new Node is created, or only if Document tree is changed?

"Gary Hirschhorn" <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
Suppose we are using a CachedXPathAPI object.  We then use
Node.createClone() or Document.newElement() to create a new Element that
is owned by the Document, but has no parent and is not in the Document
tree.  Is the CachedXPathAPI object we are using still valid?  Or is the
Document now considered "changed", and we need to create a new
CachedXPathAPI object?

 

Thanks, 

Gary
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.