Document Won't Validate
Posted: Tue Oct 12, 2010 8:30 pm
Oxygen says this document is invalid:
The error message is:
I checked the schema & the schema it extends, & both use elementFormDefault="unqualified". The constraint I face is the corporate framework I use requires that my documents have a default namespace, so I can't use prefixes. I can get the document to validate if I use prefixes, but can't find a way to validate it with a default namespace.
I'd include the schemas, but they're long & I don't see a way to attach a file to a forum topic. Would be happy to e-mail them, though.
Code: Select all
<get-request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://services.www.up.com/track/physical/get/1.0 get-track.xsd"
xmlns="http://services.www.up.com/track/physical/get/1.0">
<validate />
<system-number>1</system-number>
</get-request>Code: Select all
SystemID: C:\Documents and Settings\ctxd222\workspace\TNS Services\config\schemas\get-track\1.0\Untitled2.xml
Engine name: Xerces
Severity: error
Description: cvc-complex-type.2.4.a: Invalid content was found starting with element 'validate'. One of '{validate, system-number}' is expected.
Start location: 4:6
End location: 4:14
URL: http://www.w3.org/TR/xmlschema-1/#cvc-complex-typeI'd include the schemas, but they're long & I don't see a way to attach a file to a forum topic. Would be happy to e-mail them, though.