Error-XML Elements w/same name in same scope must have same type
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 > Error-XML Elements w/same name in same scope must have same type




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

    Error-XML Elements w/same name in same scope must have same type  
mj


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


 
11-15-05 10:56 PM

Hello, a customer is sending us an xml file that has elements with the same
name and in the same scope like example below:

<Root>
<Records>
<Record>
</Table>
</Record>
<Record>
</Field>
</Table1>
<Record>
</Table3>
</Table4>
</Record>
</Records>
</Root>
In BizTalk Server 2004 I am trying to create a schema that looks exactly
like this and I keep getting the error:  "Elements with the same name and in
the same scope must have the same type"  Help, I really need to create this
schema with BizTalk Server 2004.

Thanks in advance for any help.

--
mj





[ Post a follow-up to this message ]



    Re: Error-XML Elements w/same name in same scope must have same type  
Matt Milner


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


 
11-16-05 07:48 AM

If you are referring to your Record element, it seems you'll need to create
one repeating Record element, and then structure the inner content using the
Choice Group type.

Matt


"mj" <mj@newsgroup.nospam> wrote in message
news:F6F6E339-5195-4094-A10E-EF775F9946E5@microsoft.com...
> Hello, a customer is sending us an xml file that has elements with the
> same
> name and in the same scope like example below:
>
> <Root>
>  <Records>
>      <Record>
>         </Table>
>      </Record>
>      <Record>
>         </Field>
>         </Table1>
>      <Record>
>        </Table3>
>        </Table4>
>      </Record>
>    </Records>
> </Root>
> In BizTalk Server 2004 I am trying to create a schema that looks exactly
> like this and I keep getting the error:  "Elements with the same name and
> in
> the same scope must have the same type"  Help, I really need to create
> this
> schema with BizTalk Server 2004.
>
> Thanks in advance for any help.
>
> --
> mj







[ Post a follow-up to this message ]



    Re: Error-XML Elements w/same name in same scope must have same type  
WenJun Zhang[msft]


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


 
11-16-05 12:52 PM

Hi mj,

Please try using the generating schema function of biztalk 2004 to create
the schema draft:

In Solution Explorer, right-click a BizTalk project, point to Add, and then
click Add Generated Items.

In the Add Generated Items - <BizTalk ProjectName> dialog box, in the
Templates section, click Generate Schemas, and then click Open.

In the Generate Schemas dialog box, in the Document type drop-down list,
select XDR Schema, DTD Schema, or Well-Formed XML.

If you see either DTD (Not Loaded) or Well-Formed XML (Not Loaded) in the
drop-down list, select the appropriate document type anyway, and you will
be guided through the process of installing the missing DLL. Then repeat
these steps.

In the Generate Schemas dialog box, click Browse, locate the file you want
to import, and then click OK. The file you locate must match the document
type you selected in the previous step.
A new schema is generated from the specified file, using the same name as
that file with the .xsd extension, and opened in BizTalk Editor.

Please let me know if issue persists.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:32 PM.      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