Biztalk 2004 inline schema? Validating one XML file with two schemas?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > Biztalk 2004 inline schema? Validating one XML file with two schemas?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Biztalk 2004 inline schema? Validating one XML file with two schemas?  
Kelvin Tsang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 06:37 PM

I have an XML file and I would like to generate a schema from it.  I
used this good website to generate the schema:

http://apps.gotdotnet.com/xmltools/...ce/Default.aspx

However, from one XML file it generated two schemas(copied below).  Do
you guys know how to put these two schemas into Biztalk 2004?  I tried
to use any one of them to validate my original XML file but failed.
Are there ways that I can "combine" schemas?

I also tried to use the DataSet infer schema method to generate a
schema, but it only returns me "Schema 0".

Thank you in advance.  (Schemas below)

Schema 0: urn:schemas-microsoft-com:rowset
------------------------------------------
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:tns="urn:schemas-microsoft-com:rowset"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="urn:schemas-microsoft-com:rowset"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="#RowsetSchema" />
<xs:element name="data">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" xmlns:q1="#RowsetSchema"
ref="q1:row" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Schema 1: #RowsetSchema
-----------------------
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:tns="#RowsetSchema"
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="#RowsetSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="row">
<xs:complexType>
<xs:attribute name="record_id" type="xs:unsignedByte"
use="required" />
<xs:attribute name="code_despatch_board_record_id"
type="xs:unsignedByte" use="required" />
<xs:attribute name="button_description" type="xs:string"
use="required" />
<xs:attribute name="board_code" type="xs:string" use="required"
/>
<xs:attribute name="board_description" type="xs:string"
use="required" />
<xs:attribute name="plate_number" type="xs:unsignedByte"
use="required" />
<xs:attribute name="button_image" type="xs:string"
use="required" />
<xs:attribute name="button_update" type="xs:string"
use="required" />
<xs:attribute name="category" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>





[ Post a follow-up to this message ]



    RE: Biztalk 2004 inline schema? Validating one XML file with two schemas?  
Tatyana Yakushev [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-09-04 10:48 PM

You need to import one schema into the other schema. (Select <Schema> node, 
go to Imports property, open the dialog, click add and select the other sche
ma).

Regards,
Tatyana
--------------------
>From: google@vpn-monitor.com (Kelvin Tsang)
>Newsgroups: microsoft.public.biztalk.appintegration
>Subject: Biztalk 2004 inline schema? Validating one XML file with two schem
as?
>Date: 26 Apr 2004 10:28:05 -0700
>Organization: http://groups.google.com
>Lines: 62
>Message-ID: <5aa83b8d.0404260928.6a6486f8@posting.google.com>
>NNTP-Posting-Host: 209.17.147.250
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1083000486 4044 127.0.0.1 (26 Apr 2004 17:28:06
 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Mon, 26 Apr 2004 17:28:06 +0000 (UTC)
>Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.su
l.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-
for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.appintegration:6575
>X-Tomcat-NG: microsoft.public.biztalk.appintegration
>
>I have an XML file and I would like to generate a schema from it.  I
>used this good website to generate the schema:
>
>http://apps.gotdotnet.com/xmltools/...ce/Default.aspx
>
>However, from one XML file it generated two schemas(copied below).  Do
>you guys know how to put these two schemas into Biztalk 2004?  I tried
>to use any one of them to validate my original XML file but failed.
>Are there ways that I can "combine" schemas?
>
>I also tried to use the DataSet infer schema method to generate a
>schema, but it only returns me "Schema 0".
>
>Thank you in advance.  (Schemas below)
>
>Schema 0: urn:schemas-microsoft-com:rowset
>------------------------------------------
><?xml version="1.0" encoding="utf-16"?>
><xs:schema xmlns:tns="urn:schemas-microsoft-com:rowset"
>attributeFormDefault="unqualified" elementFormDefault="qualified"
>targetNamespace="urn:schemas-microsoft-com:rowset"
>xmlns:xs="http://www.w3.org/2001/XMLSchema">
>  <xs:import namespace="#RowsetSchema" />
>  <xs:element name="data">
>    <xs:complexType>
>      <xs:sequence>
>        <xs:element maxOccurs="unbounded" xmlns:q1="#RowsetSchema"
>ref="q1:row" />
>      </xs:sequence>
>    </xs:complexType>
>  </xs:element>
></xs:schema>
>
>Schema 1: #RowsetSchema
>-----------------------
><?xml version="1.0" encoding="utf-16"?>
><xs:schema xmlns:tns="#RowsetSchema"
>attributeFormDefault="unqualified" elementFormDefault="qualified"
>targetNamespace="#RowsetSchema"
>xmlns:xs="http://www.w3.org/2001/XMLSchema">
>  <xs:element name="row">
>    <xs:complexType>
>      <xs:attribute name="record_id" type="xs:unsignedByte"
>use="required" />
>      <xs:attribute name="code_despatch_board_record_id"
>type="xs:unsignedByte" use="required" />
>      <xs:attribute name="button_description" type="xs:string"
>use="required" />
>      <xs:attribute name="board_code" type="xs:string" use="required"
>/>
>      <xs:attribute name="board_description" type="xs:string"
>use="required" />
>      <xs:attribute name="plate_number" type="xs:unsignedByte"
>use="required" />
>      <xs:attribute name="button_image" type="xs:string"
>use="required" />
>      <xs:attribute name="button_update" type="xs:string"
>use="required" />
>      <xs:attribute name="category" type="xs:string" use="required" />
>    </xs:complexType>
>  </xs:element>
></xs:schema>
>


--

This posting is provided "AS IS" with no warranties, and confers no rights. 
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note:  For the benefit of the community-at-large, all responses to this mess
age are best directed to the newsgroup/thread from which they originated.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:43 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register