Select which of the following correctly describes the
results of performing a validation check on "XML Document".
Assume that the XML parser correctly processes the XML Schema
noNamespaceSchemaLocation attribute and the schemaLocation attribute.
[XML Document]
<document xmlns:sec="urn:xmlmaster:document:sec"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="document.xsd"
xsi:schemaLocation="urn:xmlmaster:document:sec
section.xsd">
<sec:section number="1" name="section1" />
<sec:section number="2" name="section2" />
</document>
[document.xsd]
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:sec="urn:xmlmaster:document:sec">
<xs:element name="document" type="documentType" />
<xs:complexType name="documentType">
<xs:sequence>
<xs:element ref="sec:section"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:schema>
[section.xsd]
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:xmlmaster:document:sec"
xmlns:tns="urn:xmlmaster:document:sec">
<xs:element name="section" type="tns:sectionType" />
<xs:complexType name="sectionType">
<xs:attribute name="number" type="xs:int"
/>
<xs:attribute name="name" type="xs:string"
/>
</xs:complexType>
</xs:schema>
A. Valid
B. The coding for the XML Document is not appropriate;
therefore, an error is thrown (initial error) when processing the XML
Document [xsi:schemaLocation="urn:xmlmaster:document:sec section.xsd"]
C. The coding for the XML Schema Document is not
appropriate; therefore, an error is thrown (initial error) when
processing the "document.xsd" [<xs:element ref="sec:section"
maxOccurs="unbounded" />]
D. No processing error, but is not valid