xml parsing - XML xs::assert in complex type -
I am trying to start conditionally mandatory fields in my XML schema, but I am getting an error which is x : Not valid
Additional information: I am using excerpt 3.11 (C ++) to parse XML)
& lt ;? XML version = "1.0" encoding = "ISO-8859-1"? & Gt; & Lt; Xs: schema xmlns: xs = "http://www.w3.org/2001/XMLSchema" & gt; & Lt; Xs: element name = "configuration" type = "configuration type" / & gt; & Lt; X: complex type name = "configuration type" & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element name = "application" minOccurs = "1" maxOccurs = "unbounded" type = "ap type" /> & Lt; Xs: element name = "command" minOccurs = "1" maxOccurs = "unbounded" type = "commandType" /> & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; X: complex type name = "ap type" & gt; & Lt; Xs: attribute name = "name" type = "x: string" = "required" /> & Lt; Xs: attribute name = "hostname" type = "x: string" = "required" /> & lt; Xs: attribute name = "port" type = "xs: positiveInteger" = "required" /> & Lt; Xs: attribute name = "group" type = "x: string" = "required" /> & Lt; Xs: Give Exam = "@ Hostname or @ Port! = 4" /> & Lt; / XS: complexType & gt; & Lt; X: complex type name = "command type" & gt; & Lt; Xs: attribute name = "name" type = "x: string" = "required" /> & Lt; Xs: attribute name = "target" type = "x: string" = "required" /> & Lt; Xs: attribute name = "parameter" type = "x: string" = "optional" /> & Lt; / XS: complexType & gt; & Lt; / XS: Schema & gt;
Xerces 3.1.1 C ++ does not support XSD 1.1 This is the root cause is.
The XSDL 1.1 experimental processor starts with Xeroes-J (Java only) version 2.10.0.
Comments
Post a Comment