dbTalk Databases Forums  

XSD/XDR Challenge for SQLXMLBulkLoad

microsoft.public.sqlserver.xml microsoft.public.sqlserver.xml


Discuss XSD/XDR Challenge for SQLXMLBulkLoad in the microsoft.public.sqlserver.xml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul McKirdy
 
Posts: n/a

Default XSD/XDR Challenge for SQLXMLBulkLoad - 01-06-2004 , 07:17 AM






Hello everyone!

Can anyone write an XSD or XDR schema for this XML? For use with the
sqlXMLBULKLOAD object.... I have tried and tried to no avail. The ID
attribute for Customer is stumping me.


THANKS!!


<?xml version="1.0" encoding="windows-1252" ?>
<CALLS>

<Call id="99999999">
<DID>99999999</DID>
<Date Format="mm/dd/yyyy hh:nn:ss">7/16/2003 4:59:16 PM</Date>
<Result code="10">Connect</Result>
<Duration Unit="seconds">520</Duration>
<Target>99999999</Target>
<ANI>99999999</ANI>
<Customer id="99999999"/>
</Call>

<Call id="99999999">
<DID>99999999</DID>
<Date Format="mm/dd/yyyy hh:nn:ss">7/22/2003 11:57:04 AM</Date>
<Result code="12">Abandoned</Result>
<Duration Unit="seconds">0</Duration>
<Target>99999999</Target>
<ANI>99999999</ANI>
<Customer id="99999999"/>
</Call>

</CALLS>



Reply With Quote
  #2  
Old   
Rohit Sharma
 
Posts: n/a

Default Re: XSD/XDR Challenge for SQLXMLBulkLoad - 01-06-2004 , 08:40 AM






The attribute ID should be strting with a alphabet. Pure number is not
acceptable. Type is xs:ID. It shlud work. I have a very similar schema. If
you still have problem let me know.

Rohit


"Paul McKirdy" <paul (AT) traderonline (DOT) com> wrote

Quote:
Hello everyone!

Can anyone write an XSD or XDR schema for this XML? For use with the
sqlXMLBULKLOAD object.... I have tried and tried to no avail. The ID
attribute for Customer is stumping me.


THANKS!!


?xml version="1.0" encoding="windows-1252" ?
CALLS

Call id="99999999"
DID>99999999</DID
Date Format="mm/dd/yyyy hh:nn:ss">7/16/2003 4:59:16 PM</Date
Result code="10">Connect</Result
Duration Unit="seconds">520</Duration
Target>99999999</Target
ANI>99999999</ANI
Customer id="99999999"/
/Call

Call id="99999999"
DID>99999999</DID
Date Format="mm/dd/yyyy hh:nn:ss">7/22/2003 11:57:04 AM</Date
Result code="12">Abandoned</Result
Duration Unit="seconds">0</Duration
Target>99999999</Target
ANI>99999999</ANI
Customer id="99999999"/
/Call

/CALLS





Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.