Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xml file and schema reference

Reply
Thread Tools

xml file and schema reference

 
 
Wayne Shook
Guest
Posts: n/a
 
      06-23-2004


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"
xmlnssi="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"
xmlnss="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-comml-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!
 
Reply With Quote
 
 
 
 
Henry S. Thompson
Guest
Posts: n/a
 
      06-24-2004
What's the question? Schema and instance look fine at first glance.

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail:
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
 
Reply With Quote
 
 
 
 
Wayne Shook
Guest
Posts: n/a
 
      07-07-2004

Thanks for the reply Harry, it WAS OK. I downloaded the free copy of
XMLSpy and that was the only one of four tools that accepted the
external schema. It was a matter of resolving the external file, not
the format of the XML itself.

I never really "for sure" nailed down why .NET and JDeveloper would not
find my external schema. I noticed on a working XML application that
.NET works if you add the schema file to the dependency (GAC) list.
When that is done, .NET "resolves" the schema file. Unfortunately,
these files are stand-alone and not part of any project.

Oblidged that you took the time to look over the XML.

Wayne


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema huntingseasonson@gmail.com Perl Misc 5 11-29-2006 12:37 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
XML Schema to XML Schema Conversion Hari Om XML 1 03-02-2004 09:04 PM
XML schema regular expressions question and recommended XML Schema book Fred Smith XML 1 02-05-2004 11:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57