You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/09/21 02:57:58 UTC

DO NOT REPLY [Bug 3756] New: - Defining list of valid child element for elements

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3756>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3756

Defining list of valid child element for elements

           Summary: Defining list of valid child element for elements
           Product: Xerces2-J
           Version: 2.0.0 [beta]
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: mathemphill@hotmail.com


When using the SAX2 parser to parse an xml doc adhereing to a dtd, it does not 
raise a parse error if an element contains child elements that are not defined 
within the element's declaration in the dtd.

For example,

dtd...

<!ELEMENT algor (parm*) />

<!ELEMENT parm (#PCDATA)/>

<!ELEMENT other (#PCDATA) />

xml...

<algor>
  <other>sadf</other>
</algor>

Using xerces, this did not raise a parse error.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org