I'm trying to write an XML DTD against which to validate my XML documents.
Can anyone recommend a source of information for differences in DTD syntax
between XML and SGML? Both my XML documents and the DTD existed as valid
SGML, and I'm tring to view the docs in IE5.5, validating with the MSXML
parser. I've installed MSXML 3.0 in "replace" mode.
I can view the docs OK in IE as long I don't reference the DTD (so they're
just well-formed), but so far I can't get them to validate. One thing in
particular that has me stumped is the error message I'm getting:
A name was started with an invalid
character. Line 1, Position 5
First, this isn't line 1 in the DTD. The full line is
<!ENTITY % para "ptxt | ttxt | wtxt | ntxt | eq">
(so it's not position 5, either)
The parser seems to be objecting to the OR separator, but earlier in the
DTD is a similar content model:
<!ENTITY % phrase "term | quote | option | variable | emph | pubref |
keystr | sub | sup">
Why doesn't this one throw up an error? What am I missing?
Alternatively, does anyone know of another *standalone* XML parser I could
use to check my DTD/document? I'm not a developer, so please don't point me
to a collection of Java class libraries or such. I need an executable.
TIA for any help.