On Friday, 04/19/2002 at 02:53 MST, "Shang, Crystal" <[EMAIL PROTECTED]> wrote: > Somehow when I call > appendChild to append the result of XPath evaluation( ELEMENT_NODE ) to the > tree, the code crashes:
Nothing wrong with either Xalan or Xerces; you can only append a DOM node to nodes which belong to the same Document. See http://www.w3.org/DOM/faq.html#ownerdoc (Technically, DOM Level 2 doesn't promise you can append an Element to a Document node either; the spec expects the root element to be created as part of the createDocument() call. But I believe DOM Level 3 intends to relax that restriction.... and you're using a version of createDocument() which is actually not part of the formal DOM Level 2 API, so all bets are off.) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
