Unfortunately, no it does not help.  The home page states that the DOM3 APIs
are unstable and may change.  This is for currently running production code.
I either need an answer that I know is stable and will not change, or I have
to go back to the Sun XML package.

Thanks,

Don

-----Original Message-----
From: Venu [mailto:[EMAIL PROTECTED]
Sent: Monday, November 10, 2003 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: System Id of Document


Hi ,

DOMLevel3 Core spec defines documentURI method in the Document 
interface. Does that help you.

Thanks,
Venu


Kichline, Don (EM, PTL) wrote:
> We are moving over from the Sun XML package.  We were using the
> com.sun.xml.tree.XmlDocument.getSystemId() to retrieve the URI of the
> document we are working on.  I can not find a similar function in the
> org.w3c.doc.Document interface or any of the implementors.
> 
> I have the following code to now parse our XML documents.
> 
> public org.w3c.dom.Document getDocument(String fileName) {
>       //          instantiate parser
>       DOMParser parser = new DOMParser();
> 
>       //          installing error handler
>       parser.setErrorHandler(new CPUTErrorHandler ());
> 
>       //          parsing document from URI string
>       parser.parse(new File(fileName).toURL().toString());
> 
>       //          querying document after parse
>       return parser.getDocument();
> }
> 
> The concrete type of the Document is
> "org.apache.xerces.dom.DeferredDocumentImpl".  
> 
> 
> 
> This really is the only thing holding us up from using Xerces in our Web
> App.
> 
> Thanks!
> 
> Donald R. Kichline
> Senior Programmer/Analyst
>  
> Penske Truck Leasing 
> Rt. 10 Green Hills / P.O. Box 563 
> Reading, PA 19603-0563 
> 610.796.4190 / Fax: 610.603.8402
> E-MAIL: [EMAIL PROTECTED] 
> 
> ---------------------------------------------------------------------
> 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]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to