http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2506 *** shadow/2506 Sun Jul 8 18:42:38 2001 --- shadow/2506.tmp.4826 Sun Jul 8 18:42:38 2001 *************** *** 0 **** --- 1,67 ---- + +============================================================================+ + | CDATA sections with markup are being validated | + +----------------------------------------------------------------------------+ + | Bug #: 2506 Product: Xerces-J | + | Status: NEW Version: 1.4 | + | Resolution: Platform: PC | + | Severity: Blocker OS/Version: Windows NT/2K | + | Priority: Other Component: DTD | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + When I include an external DTD reference (using DOCTYPE with SYSTEM), the + parser is reporting "Element type MyElement must be declared" when MyElement is + part of markup WITHIN a CDATA section. + + Here is a snippet if you wish to look.. in this case I get the error "Element + type 'com.mycompany.buyer.business.BOAccountCode' must be declared" + + ----------------- + + <!DOCTYPE APITransaction + SYSTEM "file:///d:\mycompany\version\config\connector\dtds\apitransaction1.0.dtd + "> + + <APITransaction> + <APIRequests type="vector"> + <APIRequest> + <Parameters type="vector"> + <String><![CDATA[ + <com.mycompany.buyer.business.BOAccountCode> + <Code>ACNTCODE2</Code> + <Description>ACNTDESC2b</Description> + </com.mycompany.buyer.business.BOAccountCode>]]> + </String> + </Parameters> + </APIRequest> + </APIRequests> + </APITransaction> + + + ------------- + and here is the portion of the stacktrace not relating to my code: + org.xml.sax.SAXParseException: Element + type "com.mycompany.buyer.business.BOAccountCode" must be declared. + at org.apache.xerces.framework.XMLParser.reportError + (XMLParser.java:1150) + at + org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError + (XMLValidator.java:1698) + at + org.apache.xerces.validators.common.XMLValidator.validateElementAndAttributes + (XMLValidator.java:3383) + at org.apache.xerces.validators.common.XMLValidator.callStartElement + (XMLValidator.java:1155) + at + org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch + (XMLDocumentScanner.java:994) + at org.apache.xerces.framework.XMLDocumentScanner.parseSome + (XMLDocumentScanner.java:381) + at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035) + at org.apache.xerces.jaxp.DocumentBuilderImpl.parse + (DocumentBuilderImpl.java:172) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
