Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLAdapter not working?
Message
From
09/06/2003 12:39:21
 
 
To
09/06/2003 10:09:01
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
00797955
Message ID:
00798013
Views:
25
This message has been marked as a message which has helped to the initial question of the thread.
Hi Kris.

Good seeing a fellow Saskatchewanian here!

>I can't get the XMLAdapter to work. Maybe I'm doing it wrong. Here is what I'm doing:
>
>
>LOCAL loXML as XMLAdapter
>loXML = CREATEOBJECT("XMLAdapter")
>loXML.LoadXML("note_good.xml",.t.,.t.)
>? loXML.Tables.Count
>The previous line outputs 0.
>
>and here is the XML file I'm using:
>
>
><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE stuff [
>	<!ELEMENT stuff (note+)>
>	<!ELEMENT note (to, from, heading, body, saveonexit)>
>	<!ELEMENT to (#PCDATA)>
>	<!ELEMENT from (#PCDATA)>
>	<!ELEMENT heading (#PCDATA)>
>	<!ELEMENT body (#PCDATA)>
>	<!ELEMENT saveonexit (#PCDATA)>
>]>
><stuff>
>	<note>
>		<to>Tove</to>
>		<from>Jani</from>
>		<heading>Reminder</heading>
>		<body>Don't forget me this weekend!</body>
>		<saveonexit>True</saveonexit>
>	</note>
></stuff>
>
XMLAdapter doesn't support DTD for schemas.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform