To create the XSD i used that Free online XSD generator and if I check my xml within that XSD using the (Validator)[ on the same site, everything looks fine. I use the following code to validate: Xerces DOMParser dom Parser; if (dom Grammar(schema File Path.c_str(), Grammar:: Schema Grammar Type) == NULL) Parser Error Handler parser Error Handler; dom Error Handler(&parser Error Handler); dom Validation Scheme(Xerces DOMParser:: Val_Always); dom Do Namespaces(true); dom Do Schema(true); dom Validation Schema Full Checking(true); dom Parser.parse(xml File Path.c_str()); if(dom Error Count() !
= 0) In short, possible workaround is using DOMLSParser as described in link and blog link.
So, in our example, you would expect to see these target namespace declarations in the schemas: An array of Objects can be used only when the schema language has the ability to assemble a schema at runtime.
Also, when an array of Objects is passed it is illegal to have two schemas that share the same namespace.
and that for each element or attribute I have in my XML file.
The data set may include information from a tax declaration form as well as information from the employee's hiring form, with both elements named Note - The default namespace is actually a specific namespace.
It is defined as the "namespace that has no name." So you cannot simply use one namespace as your default this week, and another namespace as the default later.