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=25246>. 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=25246 Error of DTD validation [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Additional Comments From [EMAIL PROTECTED] 2003-12-19 20:40 ------- I'm unable to reproduce the problem you've reported. It works for me. Since you only included fragments of your document I combined them into the following: <?xml version="1.0" encoding="US-ASCII"?> <!DOCTYPE CustomFieldType [ <!ELEMENT CustomFieldType (TextFieldDef | IntegerFieldDef | HtmlFieldDef | BlobFieldDef | DateTimeFieldDef | URLFieldDef | ListFieldDef | DocRefFieldDef | NumberFieldDef)+> <!ELEMENT CustomFieldDef EMPTY> ]> <CustomFieldType> <CustomFieldDef/> </CustomFieldType> and received the expected error: 'The content of element type "CustomFieldType" mustmatch "(TextFieldDef|IntegerFieldDef|HtmlFieldDef|BlobFieldDef|DateTimeField Def|URLFieldDef|ListFieldDef|DocRefFieldDef|NumberFieldDef)+".' upon validating this document. In order for the parser to perform DTD validation you must turn on the parser's validation feature [1]. Validation errors are not fatal. The document you provided is well-formed and parsers will be happy to read it until the end of the document unless the user aborts. If you want to abort parsing after a validation error you need to register your own error handler which does this. For instance, in SAX you can throw a SAX exception from the error callback of ErrorHandler to force the parser to stop. [1] http://xml.apache.org/xerces2-j/features.html#validation --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
