EDN Admin
Well-known member
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:9pt; font-family:Verdana,sans-serif I have the following VehicleStatus.xsd schema has an element GPSStatus with anyType, so that I can assign a complex type pdal:GPSStatus in
another schema GPSStatus.xsd
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Arial,sans-serif VehicleStatus.xsd:
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:teal; font-family:Arial,sans-serif <?xml version="1.0" encoding="UTF-8"?>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <!--<span style="font-size:10pt; background:white; color:gray; font-family:Arial,sans-serif edited
with XMLSpy v2012 rel. 2 (http://www.altova.com) by Yiping Zou (Department of National Defense)
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif -->
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlns:xs<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://www.w3.org/2001/XMLSchema<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlnsdal<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
targetNamespace<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
elementFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif qualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
attributeFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif unqualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; text-indent:0.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif LES/PdalLESStatus.xsd<span style="color:blue "/>
<p style="margin:0in 0in 12pt 0.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif VehicleStatus<span style="color:blue
<p style="margin:0in 0in 12pt 1in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:red; font-family:Arial,sans-serif name<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif GPSStatus<span style="color:blue "<span style="color:red
type<span style="color:blue ="xs:anyType<span style="color:blue "<span style="color:red minOccurs<span style="color:blue ="0<span style="color:blue "/>
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:red; font-family:Arial,sans-serif ref<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif pdal:LESStatus<span style="color:blue "<span style="color:red
minOccurs<span style="color:blue ="0<span style="color:blue "<span style="color:red maxOccurs<span style="color:blue ="unbounded<span style="color:blue "/>
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 1in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 0.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Arial,sans-serif GPSStatus.xsd:
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:teal; font-family:Arial,sans-serif <?xml version="1.0" encoding="UTF-8"?>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlns:xs<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://www.w3.org/2001/XMLSchema<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlnsdal<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
targetNamespace<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
elementFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif qualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
attributeFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif unqualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif ../CommonElementType.xsd<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif ../DeviceStatus.xsd<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif DAGRCommonType.xsd<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif GPSStatus<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexContent<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:extension<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
base<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif pdaleviceStatusType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 0pt 3in; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif OperationalMode<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
type<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif pdal:GPSOpModeContentType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:extension<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexContent<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:key<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif keyGPSLinkStatus<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:annotation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:documentation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ><span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif Specifies
that the protocol of each link status as unique.<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:documentation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:annotation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:selector<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xpath<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:field<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xpath<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif @protocol<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:key<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif After assigning GPSStatus element with pdal:GPSStatus type object inVehicleStatus object and convert to XMLString:
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif <?xml version="1.0" encoding="utf-8"?>
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:VehicleStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
version<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1.0<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
xmlnsdal<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:GPSStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif d2p1:type<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif pdalAGRStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
deviceID<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif U3A00190-DAGR<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
schemaVersion<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1.0<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
xmlns:d2p1<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif http://www.w3.org/2001/XMLSchema-instance<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif protocol<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif LNS<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif UP<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:OperationalMode<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ><span style="font-size:10pt; color:teal; font-family:Arial,sans-serif CONTINUOUS<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:OperationalMode<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span> <span> <span> </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:GPSStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LESStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif deviceID<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif LESV2-1<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
schemaVersion<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1.0<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ><span style="font-size:10pt; color:teal; font-family:Arial,sans-serif UP<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif port<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif Connected<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif port<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 2<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif Connected<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
</<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LESStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdallatformStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:9pt; font-family:Verdana,sans-serif I use the following code to validate the PlatformStatus.xml against the xmlSchemaSet which contains both VehicleStatus.sxd and GPSStatus.xsd
<p style="margin-bottom:0pt; line-height:normal
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:#2b91af; font-family:Verdana,sans-serif XmlSchemaSet<span style="font-size:10pt; font-family:Verdana,sans-serif xmlSchemaSet =
<span style="color:blue new <span style="color:#2b91af XmlSchemaSet();
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:green; font-family:Verdana,sans-serif // Load primary VehicleStatus schema
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:#2b91af; font-family:Verdana,sans-serif XmlTextReader<span style="font-size:10pt; font-family:Verdana,sans-serif textReader =
<span style="color:blue new <span style="color:#2b91af XmlTextReader("c:/VehicleStatus.xsd");
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Verdana,sans-serif xmlSchemaSet.Add(<span style="color:blue null, textReader);
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:9pt; font-family:Verdana,sans-serif //Load DAGRStatus schema<span style="font-size:10pt; color:green; font-family:Verdana,sans-serif // Load primary GPSStatus schema
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Verdana,sans-serif textReader =
<span style="color:blue new <span style="color:#2b91af XmlTextReader("c:/GPSStatus.xsd");
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Verdana,sans-serif xmlSchemaSet.Add(<span style="color:blue null, textReader);
When validate and get the following:
This is an invalid xsi:type ‘http://mycompany.com/PDAL:GPSStatus’
By GPSStatus schema is included in the xml schema set object already event though VehicleStatus.xsd does not include GPSStatus.xsd because it does not needed due to GPSStatus is anyType in VehicleStatus schema.
Any idea?
Thanks
View the full article
another schema GPSStatus.xsd
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Arial,sans-serif VehicleStatus.xsd:
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:teal; font-family:Arial,sans-serif <?xml version="1.0" encoding="UTF-8"?>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <!--<span style="font-size:10pt; background:white; color:gray; font-family:Arial,sans-serif edited
with XMLSpy v2012 rel. 2 (http://www.altova.com) by Yiping Zou (Department of National Defense)
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif -->
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlns:xs<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://www.w3.org/2001/XMLSchema<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlnsdal<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
targetNamespace<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
elementFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif qualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
attributeFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif unqualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; text-indent:0.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif LES/PdalLESStatus.xsd<span style="color:blue "/>
<p style="margin:0in 0in 12pt 0.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif VehicleStatus<span style="color:blue
<p style="margin:0in 0in 12pt 1in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:red; font-family:Arial,sans-serif name<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif GPSStatus<span style="color:blue "<span style="color:red
type<span style="color:blue ="xs:anyType<span style="color:blue "<span style="color:red minOccurs<span style="color:blue ="0<span style="color:blue "/>
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:red; font-family:Arial,sans-serif ref<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; font-family:Arial,sans-serif pdal:LESStatus<span style="color:blue "<span style="color:red
minOccurs<span style="color:blue ="0<span style="color:blue "<span style="color:red maxOccurs<span style="color:blue ="unbounded<span style="color:blue "/>
<p style="margin:0in 0in 12pt 1.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 1in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 12pt 0.5in; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Arial,sans-serif GPSStatus.xsd:
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:teal; font-family:Arial,sans-serif <?xml version="1.0" encoding="UTF-8"?>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlns:xs<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://www.w3.org/2001/XMLSchema<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xmlnsdal<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
targetNamespace<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
elementFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif qualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
attributeFormDefault<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif unqualified<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif ../CommonElementType.xsd<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif ../DeviceStatus.xsd<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:include<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
schemaLocation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif DAGRCommonType.xsd<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif GPSStatus<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexContent<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:extension<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
base<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif pdaleviceStatusType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin:0in 0in 0pt 3in; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif OperationalMode<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
type<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif pdal:GPSOpModeContentType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:sequence<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:extension<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexContent<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:complexType<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:key<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
name<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif keyGPSLinkStatus<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:annotation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:documentation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ><span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif Specifies
that the protocol of each link status as unique.<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:documentation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:annotation<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:selector<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xpath<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:field<span style="font-size:10pt; background:white; color:red; font-family:Arial,sans-serif
xpath<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif @protocol<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif "/>
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:key<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:10pt; background:white; color:black; font-family:Arial,sans-serif <span>
<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:element<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; background:white; color:maroon; font-family:Arial,sans-serif xs:schema<span style="font-size:10pt; background:white; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif After assigning GPSStatus element with pdal:GPSStatus type object inVehicleStatus object and convert to XMLString:
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif <?xml version="1.0" encoding="utf-8"?>
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:VehicleStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
version<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1.0<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
xmlnsdal<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif http://mycompany.com/PDAL<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:GPSStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif d2p1:type<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif pdalAGRStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
deviceID<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif U3A00190-DAGR<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
schemaVersion<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1.0<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
xmlns:d2p1<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif http://www.w3.org/2001/XMLSchema-instance<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif protocol<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif LNS<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif UP<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:OperationalMode<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ><span style="font-size:10pt; color:teal; font-family:Arial,sans-serif CONTINUOUS<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:OperationalMode<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span> <span> <span> </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:GPSStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LESStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif deviceID<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif LESV2-1<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif "<span style="font-size:10pt; color:red; font-family:Arial,sans-serif
schemaVersion<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1.0<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<span> <<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ><span style="font-size:10pt; color:teal; font-family:Arial,sans-serif UP<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LinkStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif port<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 1<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif Connected<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
<<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:red; font-family:Arial,sans-serif port<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif ="<span style="font-size:10pt; color:teal; font-family:Arial,sans-serif 2<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span style="font-size:10pt; color:teal; font-family:Arial,sans-serif Connected<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:EthernetPortStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif <span>
</<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdal:LESStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:blue; font-family:Arial,sans-serif </<span style="font-size:10pt; color:maroon; font-family:Arial,sans-serif pdallatformStatus<span style="font-size:10pt; color:blue; font-family:Arial,sans-serif >
<p style="margin-bottom:0pt; line-height:normal <span style="font-size:9pt; font-family:Verdana,sans-serif I use the following code to validate the PlatformStatus.xml against the xmlSchemaSet which contains both VehicleStatus.sxd and GPSStatus.xsd
<p style="margin-bottom:0pt; line-height:normal
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:#2b91af; font-family:Verdana,sans-serif XmlSchemaSet<span style="font-size:10pt; font-family:Verdana,sans-serif xmlSchemaSet =
<span style="color:blue new <span style="color:#2b91af XmlSchemaSet();
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:green; font-family:Verdana,sans-serif // Load primary VehicleStatus schema
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; color:#2b91af; font-family:Verdana,sans-serif XmlTextReader<span style="font-size:10pt; font-family:Verdana,sans-serif textReader =
<span style="color:blue new <span style="color:#2b91af XmlTextReader("c:/VehicleStatus.xsd");
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Verdana,sans-serif xmlSchemaSet.Add(<span style="color:blue null, textReader);
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:9pt; font-family:Verdana,sans-serif //Load DAGRStatus schema<span style="font-size:10pt; color:green; font-family:Verdana,sans-serif // Load primary GPSStatus schema
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Verdana,sans-serif textReader =
<span style="color:blue new <span style="color:#2b91af XmlTextReader("c:/GPSStatus.xsd");
<p style="margin-bottom:12pt; line-height:normal <span style="font-size:10pt; font-family:Verdana,sans-serif xmlSchemaSet.Add(<span style="color:blue null, textReader);
When validate and get the following:
This is an invalid xsi:type ‘http://mycompany.com/PDAL:GPSStatus’
By GPSStatus schema is included in the xml schema set object already event though VehicleStatus.xsd does not include GPSStatus.xsd because it does not needed due to GPSStatus is anyType in VehicleStatus schema.
Any idea?
Thanks
View the full article