L-B
September 8th, 2003, 05:04 AM
Is there any way with a sax parser that you can set a variable with the location of the DTD instaed of having to include the DTD either in the XML fiel your going to parse, or give a link to it from the XML file?
I just wana be able to say something like
DTD_Var = "./happy_smiley.dtd"
saxparser.parse(XMLFILE_TO_PARSE, DTD_Var)
can anyone help me with the syntax here?
I've seen
http://www.geocities.com/herong_yang/jdk/dtd_validation.html
and that doesn't tell me how to set up the dtd var, it only tells me how to check the XML FILE by specifiying it in the actual file
[Goodz13: Moved from Java Forum:]
I just wana be able to say something like
DTD_Var = "./happy_smiley.dtd"
saxparser.parse(XMLFILE_TO_PARSE, DTD_Var)
can anyone help me with the syntax here?
I've seen
http://www.geocities.com/herong_yang/jdk/dtd_validation.html
and that doesn't tell me how to set up the dtd var, it only tells me how to check the XML FILE by specifiying it in the actual file
[Goodz13: Moved from Java Forum:]