Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Small DTD question

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • 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




Archive powered by MHonArc 2.6.24.

Top of Page