Using 6.7 to generate type tree from xml schema. No issues compiling and saving tree.
I then built a validation map pointing to a related xml file and tree, I used the file to generate the schema.
When I run the validation the map fails with invalid data.
The folloinf is the data that failes....
<?xml version="1.0" encoding="text"?>
<dataroot xmlnsd="urn:schemas-microsoft-comfficedata" xmlns:xsi=" xsi:noNamespaceSchemaLocation="CHS_Schema.xml" generated="2009-01-06T09:28:27">
<BillingARFile>
.
.
.
</BillingARFile>
.
.
.
</dataroot>
The trace file indicates the following....
(Level 2: Offset 15, len 3, comp 1 of 3, #1, DI 00000001
Data at offset 15 ('1.0') was found to be of TYPE
X'0009' (version Prolog XSD).
(Level 2: Offset 19, len 0, comp 1 of 3, #2, DI 00000001
Data at offset 19 (' encoding="text"...') does not match INITIATOR '<WSP>version<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'0009' (version Prolog XSD).
(Level 2: Offset 30, len 4, comp 2 of 3, #1, DI 00000001
Data at offset 30 ('text') was found to be of TYPE
X'000A' (encoding Prolog XSD).
(Level 2: Offset 35, len 0, comp 1 of 3, #1, DI 00000001
Data at offset 35 ('?><CR><LF><dataroot xm...') does not match INITIATOR '<WSP>version<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'0009' (version Prolog XSD).
(Level 2: Offset 35, len 0, comp 2 of 3, #1, DI 00000001
Data at offset 35 ('?><CR><LF><dataroot xm...') does not match INITIATOR '<WSP>encoding<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'000A' (encoding Prolog XSD).
(Level 2: Offset 35, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 35 ('?><CR><LF><dataroot xm...') does not match INITIATOR '<WSP>standalone<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'000B' (standalone Prolog XSD).
(Level 1: Offset 5, len 30, comp 1 of 3, #1, DI 00000001
Data at offset 5 (' version="1.0" e') was found to be of TYPE
X'0008' (Decl Prolog XSD).
(Level 1: Offset 37, len 0, comp 2 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><!DOCTYPE'
of TYPE X'000D' (Decl DOCTYPE Prolog XSD).
(Level 1: Offset 37, len 0, comp 2 of 3, #1, DI 00000001
COMPONENT number 2 of TYPE X'0002' (Doc XSD):
occurrence 1 is optional and does not exist.
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<dataroot><OWSP>'
of TYPE X'0015' (Global XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><?'
of TYPE X'0004' (PI NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><!--'
of TYPE X'0005' (Comment NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><![CDATA['
of TYPE X'0006' (CDATA NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') failed PARTITIONing for TYPE
X'0003' (NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
COMPONENT number 3 of TYPE X'0002' (Doc XSD)
is required, but does not exist.
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln') is INVALID data of TYPE
X'0015' (Global XSD).
(Level 1: Offset 37, len 0, comp 4 of 3, #1, DI 00000002
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><?'
of TYPE X'0004' (PI NonDocData XSD).
Can someone help me understand why I can't validate the data? What's wrong with the tree?
I then built a validation map pointing to a related xml file and tree, I used the file to generate the schema.
When I run the validation the map fails with invalid data.
The folloinf is the data that failes....
<?xml version="1.0" encoding="text"?>
<dataroot xmlnsd="urn:schemas-microsoft-comfficedata" xmlns:xsi=" xsi:noNamespaceSchemaLocation="CHS_Schema.xml" generated="2009-01-06T09:28:27">
<BillingARFile>
.
.
.
</BillingARFile>
.
.
.
</dataroot>
The trace file indicates the following....
(Level 2: Offset 15, len 3, comp 1 of 3, #1, DI 00000001
Data at offset 15 ('1.0') was found to be of TYPE
X'0009' (version Prolog XSD).
(Level 2: Offset 19, len 0, comp 1 of 3, #2, DI 00000001
Data at offset 19 (' encoding="text"...') does not match INITIATOR '<WSP>version<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'0009' (version Prolog XSD).
(Level 2: Offset 30, len 4, comp 2 of 3, #1, DI 00000001
Data at offset 30 ('text') was found to be of TYPE
X'000A' (encoding Prolog XSD).
(Level 2: Offset 35, len 0, comp 1 of 3, #1, DI 00000001
Data at offset 35 ('?><CR><LF><dataroot xm...') does not match INITIATOR '<WSP>version<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'0009' (version Prolog XSD).
(Level 2: Offset 35, len 0, comp 2 of 3, #1, DI 00000001
Data at offset 35 ('?><CR><LF><dataroot xm...') does not match INITIATOR '<WSP>encoding<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'000A' (encoding Prolog XSD).
(Level 2: Offset 35, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 35 ('?><CR><LF><dataroot xm...') does not match INITIATOR '<WSP>standalone<OWSP>=<OWSP><ANYQUOTE>'
of TYPE X'000B' (standalone Prolog XSD).
(Level 1: Offset 5, len 30, comp 1 of 3, #1, DI 00000001
Data at offset 5 (' version="1.0" e') was found to be of TYPE
X'0008' (Decl Prolog XSD).
(Level 1: Offset 37, len 0, comp 2 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><!DOCTYPE'
of TYPE X'000D' (Decl DOCTYPE Prolog XSD).
(Level 1: Offset 37, len 0, comp 2 of 3, #1, DI 00000001
COMPONENT number 2 of TYPE X'0002' (Doc XSD):
occurrence 1 is optional and does not exist.
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<dataroot><OWSP>'
of TYPE X'0015' (Global XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><?'
of TYPE X'0004' (PI NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><!--'
of TYPE X'0005' (Comment NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><![CDATA['
of TYPE X'0006' (CDATA NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln...') failed PARTITIONing for TYPE
X'0003' (NonDocData XSD).
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
COMPONENT number 3 of TYPE X'0002' (Doc XSD)
is required, but does not exist.
(Level 1: Offset 37, len 0, comp 3 of 3, #1, DI 00000001
Data at offset 37 ('<CR><LF><dataroot xmln') is INVALID data of TYPE
X'0015' (Global XSD).
(Level 1: Offset 37, len 0, comp 4 of 3, #1, DI 00000002
Data at offset 37 ('<CR><LF><dataroot xmln...') does not match INITIATOR '<OWSP><?'
of TYPE X'0004' (PI NonDocData XSD).
Can someone help me understand why I can't validate the data? What's wrong with the tree?