xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Trimmer, Todd" <todd.trimmer AT trizetto.com>
- To: "'xom-interest AT lists.ibiblio.org'" <xom-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] Small DTD question
- Date: Thu, 15 May 2003 11:03:55 -0600
If I try parsing the following XML with validation:
<?xml version="1.0"?>
<!DOCTYPE cool [
<!ELEMENT cool ANY>
]>
<cool>
<b />
</cool>
I get a validation error saying "b" is not declared.
What is the point of using ANY, then, if I don't have the freedom to place
whatever I want under "cool"? When does ANY ever become useful?
What if all I want to do is allow some character entities in my document,
but do not want to restrict the element/attribute content in any way?
Todd Trimmer
-
[XOM-interest] Small DTD question,
Trimmer, Todd, 05/15/2003
- Re: [XOM-interest] Small DTD question, Elliotte Rusty Harold, 05/15/2003
Archive powered by MHonArc 2.6.24.