You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/29 14:41:20 UTC
DO NOT REPLY [Bug 14955] New: -
error validating parser
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=14955>.
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=14955
error validating parser
Summary: error validating parser
Product: Xerces-C++
Version: 2.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: DOM
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: jaydipm@kpit.com
CC: jaydipm@kpit.com
Following XML data and schema file are used.
XML Schema file:
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.kpit.com/kpi/I"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:kpi="http://www.kpit.com/kpi/I"
elementFormDefault="qualified">
<complexType name="data_type">
</complexType>
<complexType name="Array">
<complexContent>
<extension base="kpi:data_type">
<sequence>
<element name="element_type"
type="kpi:data_type"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="Integer">
<complexContent>
<extension base="kpi:data_type">
<sequence>
<element name="display_format">
<simpleType>
<restriction
base="string">
<enumeration
value="decimal"/>
<enumeration
value="hex"/>
</restriction>
</simpleType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="parameter">
<sequence>
<element name="data_type" type="kpi:data_type"/>
</sequence>
</complexType>
<complexType name="File">
</complexType>
<element name="config">
<annotation>
<documentation>File which contains meta-data for
parameters, TIS's, and operations in particular GTIS version.</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="kpi:File">
<choice minOccurs="0"
maxOccurs="unbounded">
<element name="parameter"
type="kpi:parameter"/>
</choice>
</extension>
</complexContent>
</complexType>
</element>
</schema>
XML file:
<?xml version="1.0" encoding="UTF-8"?>
<config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kpit.com/kpi/I temp1.xsd"
xmlns="http://www.kpit.com/kpi/I">
<parameter>
<data_type xsi:type="Array">
<element_type xsi:type="Array">
<element_type xsi:type="Integer">
<display_format>hex</display_format>
</element_type>
</element_type>
</data_type>
</parameter>
</config>
We are using DOMCount example and validating XML file against the schema file
file. We are getting below error:
Error at file e:\temp1.xml, line 14, char 13
Message: No character data is allowed by content model
Errors occurred, no output available
Jaydip & Vandana
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org