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=5948>. 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=5948 DOMCount cannot validate an xml whose schema contains group Summary: DOMCount cannot validate an xml whose schema contains group Product: Xerces2-J Version: 2.0.0 [beta 4] Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Critical Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, I tried to use the DOMCount example to validate(using -v) an xml file against a schema which contains group. It gave me some error of groupping. I used XML Spy tool to validate my xml file and it is fine. Would you please take a look at my schema and xml file and let me know what is the problem? Thank you very much. This is my schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.divatv.com/schemas/vod" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:VOD="http://www.divatv.com/schemas/vod" elementFormDefault="unqualified" attributeFormDefault="unqualified"> <xs:element name="GetCategoryList"> <xs:complexType> <xs:sequence> <xs:element name="ParentCategoryName" type="xs:string"/> <xs:element name="MaxCategories" type="xs:positiveInteger"/> <xs:group ref="VOD:StartPos"/> <xs:element name="Direction" type="VOD:DirectionType"/> </xs:sequence> </xs:complexType> </xs:element> <xs:group name="StartPos"> <xs:choice> <xs:group ref="VOD:StartPosTypeIndex"/> <xs:group ref="VOD:StartPosTypeString"/> </xs:choice> </xs:group> <xs:group name="StartPosTypeIndex"> <xs:sequence> <xs:element name="StartPosType" type="xs:string" fixed="Index"/> <xs:element name="StartPosValue" type="xs:nonNegativeInteger"/> </xs:sequence> </xs:group> <xs:group name="StartPosTypeString"> <xs:sequence> <xs:element name="StartPosType" type="xs:string" fixed="String"/> <xs:element name="StartPosValue" type="xs:string"/> </xs:sequence> </xs:group> <xs:simpleType name="DirectionType"> <xs:restriction base="xs:string"> <xs:enumeration value="Previous"/> <xs:enumeration value="Next"/> </xs:restriction> </xs:simpleType> </xs:schema> This is my xml file: <?xml version="1.0" encoding="UTF-8" ?> <VOD:GetCategoryList xmlns:VOD="http://www.divatv.com/schemas/vod" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.divatv.com/schemas/vod GetCategoryList.xsd"> <ParentCategoryName>Root</ParentCategoryName> <MaxCategories>6</MaxCategories> <StartPosType>Index</StartPosType> <StartPosValue>0</StartPosValue> <Direction>Next</Direction> </VOD:GetCategoryList> Thanks, Ha --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
