| Author |
Problems parsing back to schema
|
|
|
| For some reason I am getting the message that it can't find my root element of IADSNOTES.
Here is the schema:
<?xml version="1.0" ?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="IADSNOTES" type="IADSNOTESType" /><xsd:complexType name="IADSNOTESType"><xsd:sequence><xsd:element name="Note" type="NoteType" maxOccurs="unbounded" /></xsd:
sequence><xsd:attribute name="count" type="xsd:nonNegativeInteger" use="required" /></xsd:complexType><xsd:complexType name="NoteType"><xsd:sequence><xsd:element name="User" type="xsd:string" minOccurs="1" maxOccurs="1" /><xsd:element name="Title" type="x
sd:string" minOccurs="1" maxOccurs="1" /><xsd:element name="Text" type="xsd:string" minOccurs="1" maxOccurs="1" /></xsd:sequence><xsd:attribute name="href" type="xsd:string" use="required" /><xsd:attribute name="csm" type="xsd:string" use="required" /></x
sd:complexType></xsd:schema>
Here is my XML file that I have been trying to validate in .Net as well as using Xerces-J2 to parse when testing stand alone:
The files reside in the same directory. I have even tried placing the full path in the location.
<?xml version="1.0" encoding="utf-8"?><IADSNOTES count="8" xmlns:xsi="http://www.w3.org/2001/XMLSchema - instance" xsi:noNamespaceSchemaLocation="notes.xsd"><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#1@0" csm="0"><User>ggeis</User><Title>IADS 3.2 Demo - Table
of Contents �x00</Title><Text>Frame 1 Public Note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#4@0" csm="0"><User>ggeis</User><Title>CALS TABLE 01</Title><Text>Frame 4 Public Note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#6@0" csm="0"
><User>ggeis</User><Title>CALS TABLE 03</Title><Text>Frame 6 Public Note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#2@0" csm="0"><User>ggeis</User><Title>GENENTITIES</Title><Text>Frame 2 Public note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.s
gm#7@0" csm="0"><User>ggeis</User><Title>CALS TABLE 04</Title><Text>Frame 7 - lets see about a label and multiple lines and how they are handled with "xml"</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#4@0" csm="0"><User>ggeis</User><Title>CALS TABLE
01</Title><Text>Frame 4 Public</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#5@0" csm="0"><User>ggeis</User><Title>CALS TABLE 02</Title><Text>Frame 5 Public</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#CALS TABLE 06@0" csm="0"><User>ggeis</Use
r><Title>CALS TABLE 06</Title><Text>New Frame 9</Text></Note></IADSNOTES>
| |
|
| xmlns:xsi="http://www.w3.org/2001/XMLSchema - instance"
should be
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" no white spaces
--
Para mas info en Access visitame
http://www22.brinkster.com/equisbert/
"Bob" <anonymous@discussions.microsoft.com> wrote in message
news:8520143D-31DF-42F0-A85A-77147BC70EC1@microsoft.com...
> For some reason I am getting the message that it can't find my root
element of IADSNOTES.
>
> Here is the schema:
>
> <?xml version="1.0" ?><xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="IADSNOTES"
type="IADSNOTESType" /><xsd:complexType
name="IADSNOTESType"><xsd:sequence><xsd:element name="Note" type="NoteType"
maxOccurs="unbounded" /></xsd:sequence><xsd:attribute name="count"
type="xsd:nonNegativeInteger" use="required"
/></xsd:complexType><xsd:complexType
name="NoteType"><xsd:sequence><xsd:element name="User" type="xsd:string"
minOccurs="1" maxOccurs="1" /><xsd:element name="Title" type="xsd:string"
minOccurs="1" maxOccurs="1" /><xsd:element name="Text" type="xsd:string"
minOccurs="1" maxOccurs="1" /></xsd:sequence><xsd:attribute name="href"
type="xsd:string" use="required" /><xsd:attribute name="csm"
type="xsd:string" use="required" /></xsd:complexType></xsd:schema>
>
>
> Here is my XML file that I have been trying to validate in .Net as well as
using Xerces-J2 to parse when testing stand alone:
> The files reside in the same directory. I have even tried placing the
full path in the location.
>
> <?xml version="1.0" encoding="utf-8"?><IADSNOTES count="8"
xmlns:xsi="http://www.w3.org/2001/XMLSchema - instance"
xsi:noNamespaceSchemaLocation="notes.xsd"><Note
href="D:\V4.0\DEMO\IADS_3_2.sgm#1@0" csm="0"><User>ggeis</User><Title>IADS
3.2 Demo - Table of Contents �x00</Title><Text>Frame 1 Public
Note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#4@0"
csm="0"><User>ggeis</User><Title>CALS TABLE 01</Title><Text>Frame 4 Public
Note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#6@0"
csm="0"><User>ggeis</User><Title>CALS TABLE 03</Title><Text>Frame 6 Public
Note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#2@0"
csm="0"><User>ggeis</User><Title>GENENTITIES</Title><Text>Frame 2 Public
note</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#7@0"
csm="0"><User>ggeis</User><Title>CALS TABLE 04</Title><Text>Frame 7 - lets
see about a label and multiple lines and how they are handled with
"xml"</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#4@0"
csm="0"><User>ggeis</User><Title>CALS TABLE 01</Title><Text>Frame 4
Public</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#5@0"
csm="0"><User>ggeis</User><Title>CALS TABLE 02</Title><Text>Frame 5
Public</Text></Note><Note href="D:\V4.0\DEMO\IADS_3_2.sgm#CALS TABLE 06@0"
csm="0"><User>ggeis</User><Title>CALS TABLE 06</Title><Text>New Frame
9</Text></Note></IADSNOTES>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |