I receive the following error when trying to validate an instance document
against a schema using the DOMParser in XML4J 3.2.1:

[Error] file:///My XML Files/CM1pt0.xml:7:17: Element type "DocumentId"
must be declared.
org.xml.sax.SAXParseException: Element type "DocumentId" must be declared.
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
        at
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(XMLValidator.java:1737)
        at
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes(XMLValidator.java:3552)
        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1159)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1171)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122)
        at org.pheaa.MIS.Fastech.CODReader.main(CODReader.java:35)

Attached are the instance document and schemas:

(See attached file: CM1pt0.xml)(See attached file: ComRecord1_0c.xsd)(See
attached file: ComRec1_0c_VR.xsd)

I can't see anything wrong with the declaration for "DocumentId" in
ComRecord1_0c.xsd.  Any ideas?

Jeff

Attachment: CM1pt0.xml
Description: Binary data

Attachment: ComRecord1_0c.xsd
Description: Binary data

Attachment: ComRec1_0c_VR.xsd
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to