Validating XML using XSD (3rd party) though a web service. Can
anyone see why I'm getting this error or point me to a spot I may get
some help? The 'TestName' seems to be correct, to me :P Appreciate.
Current ERROR:
Name: , NodeType: None,
Msg: The element 'Test' has incomplete content. Expected 'TestName'.
An error occurred at , (1, 4079).;
XML:
<?xml version="1.0" encoding="utf-8"?>
<Test ID="f0b87736-68c7-4cca-9f4f-0923896d24b9">
<TestName>Purpose and Description of the Rotor Brake System - Review
Questions</TestName>
<TestType>QUIZ</TestType>
<TestNumQuestions>2</TestNumQuestions>
<TestDescription>During this period of instruction, ...
XSD:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="Test">
<xs:annotation>
<xs:documentation>
The Test node is the root element for MCALMS Imported Test
XML. The Test node contains one attribute, ID, used to uniquely
identify the test.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="TestName" maxOccurs="1" nillable="false">
<xs:annotation>
<xs:documentation>
The TestName element is the title of the test and should
match the item title within the package manifest.xml file.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:minLength value="1"/>
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TestType" minOccurs="1" maxOccurs="1"
nillable="false">