You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Anthony Dodd <An...@synergy-fs.com> on 2000/09/19 09:46:32 UTC

RE: How do I reparent a node? (was RE: Can Xalan be used with JAX P?)

Hi
	Use the importNode function on the org.w3c.dom.Document.


-----Original Message-----
From: Eric Hodges [mailto:harmony2@swbell.net]
Sent: 18 September 2000 23:11
To: xalan-dev@xml.apache.org
Subject: How do I reparent a node? (was RE: Can Xalan be used with
JAXP?)




> -----Original Message-----
> From: costin@eng.sun.com [mailto:costin@eng.sun.com]
> Sent: Thursday, September 14, 2000 3:08 PM
> To: xalan-dev@xml.apache.org
> Subject: Re: Can Xalan be used with JAXP?
>
>
> > > AFAIK Xalan is supposed to run faster with Xerces, as it'll use
> > > un-documented internal APIs.
> > >
> > > Xerces implements JAXP too - so you can use JAXP for your parsing.
> >
> > Wait, what does that mean?  Xerces exposes a JAXP interface?  I
> haven't seen
> > it.  How do I access it?
>
> Last time I checked xerces had all the javax.xml classes - try a recent
> build.

OK, I found the version that has JAXP in it.  I was relying on Sun's
XmlDocument and its ability to reparent nodes.  How do I change the parent
document of a node through Xerces?

I have an application where nodes in one document are moved to another
document.