i dont know why it hasn't come on mailing list so i am re-sending it.
> Andy clark wrote:
> I'm not able to duplicate your problem using Xerces 2.0.0 (beta).
> Using all of the sample programs, everything seems to work fine.
> Could you please tell me exactly what version of the parser you
> are using and how you are invoking the parse? Thanks.
now i ran one of the sample "xni.DocumentTracer". When i give URI
"/home/nb131165/cvs/pre_beta_xerces2/build/classes/check1/check2/document.xml"
it gives me an error.I am pasting it below.
"xml and dtd files are in check2 directory"
In the example "systemId" of "XMLInputSource" is being set,
documentation of this class says that "systemId" can be relative or absolute.
I have noticed when i give relative path "./check1/check2/document.xml"
it works FINE !!
In another code, where i made SAXParser instance like
SAXParser parser = new SAXParser();
parser.setFeature(....);
parser.setFeature(....);
parser.parse("/home/nb131165/cvs/pre_beta_xerces2/build/classes/check1/check2/do
cument.xml")
it gives me error,same, could not find DTD file.
but everything works fine if i use Xerces 1.4 to run this code.
pls let me know , what is going wrong here !
- Neeraj -
ERROR:
neeraj:/home/nb131165/cvs/pre_beta_xerces2/build/classes 28 % !!
java xni.DocumentTracer -v
/home/nb131165/cvs/pre_beta_xerces2/build/classes/check1/check2/document.xml
entity managaer = org.apache.xerces.impl.XMLEntityManager@12a5278
startDocument(locator={publicId=null,systemId="/home/nb131165/cvs/pre_beta_xerce
s2/build/classes/check1/check2/document.xml",baseSystemId="file:///home/nb131165
/cvs/pre_beta_xerces2/build/classes/check1/check2/document.xml",lineNumber=1,col
umnNumber=1},encoding="UTF-8")
doctypeDecl(rootElement="person",publicId=null,systemId="document.dtd")
entity manager value =org.apache.xerces.impl.XMLEntityManager@12a5278
error: Parse error occurred -
/home/nb131165/cvs/pre_beta_xerces2/build/classes/home/nb131165/cvs/pre_beta_xer
ces2/build/classes/check1/check2/document.dtd (No such file or directory)
java.io.FileNotFoundException:
/home/nb131165/cvs/pre_beta_xerces2/build/classes/home/nb131165/cvs/pre_beta_xer
ces2/build/classes/check1/check2/document.dtd (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.open(Compiled Code)
at java.io.FileInputStream.<init>(Compiled Code)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:71)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Compiled
Code)
at java.net.URL.openStream(URL.java:818)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:687)
at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:649
)
at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:2
14)
at
org.apache.xerces.impl.XMLDocumentScannerImpl.scanDoctypeDecl(XMLDocumentScanner
Impl.java:774)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Compiled
Code)
at org.apache.xerces.impl.XMLDocumentScannerImpl.scanDocument(Compiled
Code)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfig
uration.java:408)
at org.apache.xerces.parsers.XMLParser.parse(Compiled Code)
at xni.DocumentTracer.main(Compiled Code)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]