Wayne Shook
Usenet Archive
- Joined
- Jun 23, 2004
- Messages
- 2
- Reaction score
- 0
I'm using the .NET IDE and I have an XML file that I'm trying to validate against an XML schema on my local drive.
the noNamespaceSchemaLocation attribute has been modified to what I think is the proper syntax for the path on my local Windows drive (changed the directory delimeters from "\" to "/" also??).
I have no web service on my machine.
The XML file:
<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///D:/Development/DB/XML/2004_06_14/ CAMPS_SOTW63.xsd"> <AIRCRAFT_STATUS> <DHDT>08-APR-2004 12:00:00</DHDT> <TAIL_FLEET>91711S</TAIL_FLEET> </AIRCRAFT_STATUS> </DataSet>
Within the .net environment I choose XML-->Create Schema.
Since I've tried this several times, .NET has inc'd the numbering, this time it created an .xsd file named CAMPS_SOTW63.xsd:
<?xml version="1.0"?>
<xs:schema id="DataSet"
targetNamespace="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns:mstns="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified"> <xs:element name="DataSet" msdata:IsDataSet="true" msdata:EnforceConstraints="False"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element name="AIRCRAFT_STATUS"> <xs:complexType> <xs:sequence> <xs:element name="DHDT" type="xs:string" minOccurs="0" /> <xs:element name="TAIL_FLEET" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
Much oblidged for any and all help.
*** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!
the noNamespaceSchemaLocation attribute has been modified to what I think is the proper syntax for the path on my local Windows drive (changed the directory delimeters from "\" to "/" also??).
I have no web service on my machine.
The XML file:
<?xml version="1.0" encoding="utf-8"?>
<DataSet xmlns="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///D:/Development/DB/XML/2004_06_14/ CAMPS_SOTW63.xsd"> <AIRCRAFT_STATUS> <DHDT>08-APR-2004 12:00:00</DHDT> <TAIL_FLEET>91711S</TAIL_FLEET> </AIRCRAFT_STATUS> </DataSet>
Within the .net environment I choose XML-->Create Schema.
Since I've tried this several times, .NET has inc'd the numbering, this time it created an .xsd file named CAMPS_SOTW63.xsd:
<?xml version="1.0"?>
<xs:schema id="DataSet"
targetNamespace="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns:mstns="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns="http://tempuri.org/CAMPS_SOTW63.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified"> <xs:element name="DataSet" msdata:IsDataSet="true" msdata:EnforceConstraints="False"> <xs:complexType> <xs:choice maxOccurs="unbounded"> <xs:element name="AIRCRAFT_STATUS"> <xs:complexType> <xs:sequence> <xs:element name="DHDT" type="xs:string" minOccurs="0" /> <xs:element name="TAIL_FLEET" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema>
Much oblidged for any and all help.
*** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!