Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLAdapter not working?
Message
From
09/06/2003 10:09:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
XMLAdapter not working?
Miscellaneous
Thread ID:
00797955
Message ID:
00797955
Views:
49
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>
Is there anything you can see that I'm doing wrong?
Next
Reply
Map
View

Click here to load this message in the networking platform