classpathx-xml
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-xml] problem with SYSTEM entities


From: David Brownell
Subject: Re: [Classpathx-xml] problem with SYSTEM entities
Date: Wed, 06 Feb 2002 10:26:04 -0800

> > For example, invoke it by
> >
> >     parser.parse ("file:/home/egonw/xml/test.xml");
> >
> > or
> >
> >     parser.parse (new InputSource ("file:/home/egonw/xml/test.xml"));
> 
> Ok, and what should I do if i want to parse from a Reader?
> Say, for example, a StringReader?

InputSource    in = new InputSource (someReader);
in.setSystemId (documentURI);

If the document really has a URI, use it.  If it doesn't, then
use something that makes the relative URIs resolve right.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]