Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import XML data --> XSD?
Message
From
15/03/2004 05:04:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/03/2004 04:39:47
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00886222
Message ID:
00886229
Views:
20
>Hi there,
>
>i am trying to import XML data from two files.
>I Tried to use the XMLTOCURSOR function;
>
>XMLTOCURSOR(, 'curResult', 512)
>
>This works fine, however the returned cursor
>only contains fields of the first XML tag,
>the rest of the data is placed in a MEMO field.
>
>Do i need a XSD? If yes, how do I create one?
>
>Hope somebody can help,
>
>Erwin

Erwin,
Probably your XML was an hierarchic one. In that case VFP XmlToCursor() simply concatanates inner tags to a single string and if length over char field lenght then creates a memo. ie:
<root>
  <level1>
    <firstTag>MyValue</firstTag>
    <level2>
      <Tag2>Tag2</Tag2>
      <Tag3>Tag3</Tag3>
      <Tag4>Tag4</Tag4>
      <Tag5>Tag5</Tag5>
      <Tag6>Tag6</Tag6>
      <Tag7>Tag7</Tag7>
    </level2>
  </level1>
</root>
Would create 2 fields, firstTag and Level2 and place all following tags into Level2 field.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform