Ignoring missing end tag errors

2007-04-18 Thread Mike O'Leary
I wrote an XML parser using the SAXParser. It turns out that the XML files I need to parse are somewhat noisy, and there are cases where there is no end tag for a given start tag. I would like to catch these errors immediately and proceed as if the end tag was read (in the cases I have looked at, t

Converting entities in an SGML DTD file to comply with XML DTD syntax

2007-03-01 Thread Mike O'Leary
but I wonder what it is for, and whether there is a way to make it acceptable to an XML parser in such a way that it does what the original author meant for it to do. Apparently the XML parser doesn't like the # at the start of #DEFAULT. Thanks. Mike O'Leary

RE: Specifying a DTD file when parsing XML files that don't contain !DOCTYPE lines

2007-02-26 Thread Mike O'Leary
some commonly accepted method for doing it, but I have this in my ant build.xml: http://user.name> }"/> This sticks the xerces classes in the jar with my classes. I think though that you can just include xercesImpl.jar in the classpath. (I started this a week

RE: Specifying a DTD file when parsing XML files that don't contain !DOCTYPE lines

2007-02-25 Thread Mike O'Leary
Will, When I try this, I get an error that says: javax.xml.parsers.ParserConfigurationException: jaxp_feature_not_supported: Feature "http://xml.org/sax/features/use-entity-resolver2"; is not supported. What am I doing wrong? Mike _ From: Will Holcomb [mailto:[EMAIL PROTECTED]

Specifying a DTD file when parsing XML files that don't contain !DOCTYPE lines

2007-02-25 Thread Mike O'Leary
TD file is specified without the use of a line in the file to be parsed, and the DTD file is read and is available to resolving entity references that are encountered during the parse? Thanks. Mike O'Leary