[xml] DTD Mania


A few questions about DTDs in documents parsed via

- What's the difference between the internal subset and the external
  subset?  Just doing some simple checks, it seems doc->intSubset is
  always non-null and doc->extSubset is always NULL.  Then again, I'm
  only working with documents that either have <!DOCTYPE foobar SYSTEM
  "somedtd.dtd"> and <!DOCTYPE foobar PUBLIC "blah" "baz.dtd">

- Say I'm dealing with "baz.xml" and "foobar.dtd".  I encounter the
  "blargens" tag, how can I look into the DTD structure to get a list
  of tags which are valid children of "blargens"?  I'm not looking at
  rewriting the validation, but getting a list of what's valid in
  certain contexts for creating XML documents from nothing according
  to the rules of validity.

Apologies if this is covered elsewhere, I wasn't able to find anything
but the API docs and a few notes on how to write DTDs, which isn't
very helpful.  Tell me to RTFM and I will if I know where TFM is.  :)

David Allen
ROUS's?  I don't think they exist.
        -- Wesley

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