Bram,
You forgot to mention that the actual problem is!

BTW are there any specific reasons why you need both documents. Do you need
the w3c document for any particular additional API, or could you use the w3c
dom support in dom4j?

Mike

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> Bram Huenaerts
> Sent: Tuesday 27 August 2002 08:47
> To: DOM4J-user (E-mail)
> Subject: [dom4j-user] DOMReader related problem (Performace)
> 
> 
> Hi,
> 
> I wonder what i can do about the following problem. 
> I want to create a dom4j document from a org.w3c document.
> The code below works fine for xml-files under the +-100k.
> 
> <CODE>
>       // Parse the file to an org.w3c.dom.Document
>       DocumentBuilderFactory factory = 
> DocumentBuilderFactory.newInstance();
>       DocumentBuilder builder = factory.newDocumentBuilder();
>       domDocument = builder.parse(new java.io.File(pathName));
> 
>       // Create an org.dom4j.Document
>       DOMReader domReader = new DOMReader(); 
>       document = domReader.read(domDocument); 
> </CODE>
> 
> Is this a performance problem or am I using the API not 
> correctly? Can i go around this somehow? 
> Any help is appreciated.
> 
> regards
> 
> Bram
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same 
> old cell phone?  Get a new here for FREE! 
> https://www.inphonic.com/r.asp?r=sourceforge1> &refcode1=vs3390
> 
> 
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/d> om4j-user
> 

<<attachment: winmail.dat>>

Reply via email to