Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Miscellaneous
Thread ID:
01162304
Message ID:
01164281
Views:
12
>The following is a complete XML file created by Adobe Illustrator. Can this be loaded into a fox table easily?
>
>
><?xml version="1.0" encoding="utf-8"?>
><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"    "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd" [
>	<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
>	<!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
>	<!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
>	<!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
>	<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
><!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
>]>
><svg>
><variableSets  xmlns="&ns_vars;">
>	<variableSet  varSetName="binding1" locked="none">
>		<variables>
>			<variable  category="&ns_flows;" varName="_B43" trait="textcontent"></variable>
>			<variable  category="&ns_flows;" varName="_A28" trait="textcontent"></variable>
>		</variables>
>		<v:sampleDataSets  xmlns="&ns_custom;" xmlns:v="&ns_vars;">
>			<v:sampleDataSet  dataSetName="Data Set 2006">
>				<_B43>	<p>999</p>	</_B43>
>				<_A28>	<p>30.2</p>	</_A28>
>			</v:sampleDataSet>
>			<v:sampleDataSet  dataSetName="Data Set 2006b">
>				<_B43>	<p>777</p>	</_B43>
>				<_A28>	<p>15.3</p>	</_A28>
>			</v:sampleDataSet>
>		</v:sampleDataSets>
>	</variableSet>
></variableSets>
></svg>
>
>I tried xmltocursor but couldn't make it work.
>
>Thanks

Don,
This xml file does not seem to be valid. I checked it with xml Spy and it says: error location svg/variableSets. Content model of element svg disallows element variableSets at this position.

Also, if you get a valid xml file, prefer the xmlAdapter to the xmlToCursor.
TEXT TO cXML NOSHOW
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"    "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd" [
  <!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
  <!ENTITY ns_vars "http://ns.adobe.com/Variables/1.0/">
  <!ENTITY ns_imrep "http://ns.adobe.com/ImageReplacement/1.0/">
  <!ENTITY ns_custom "http://ns.adobe.com/GenericCustomNamespace/1.0/">
  <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
]>
<svg>
<variableSets  xmlns="&ns_vars;">
  <variableSet  varSetName="binding1" locked="none">
    <variables>
      <variable  category="&ns_flows;" varName="_B43" trait="textcontent"></variable>
      <variable  category="&ns_flows;" varName="_A28" trait="textcontent"></variable>
    </variables>
    <v:sampleDataSets  xmlns="&ns_custom;" xmlns:v="&ns_vars;">
      <v:sampleDataSet  dataSetName="Data Set 2006">
        <_B43>  <p>999</p>  </_B43>
        <_A28>  <p>30.2</p>  </_A28>
      </v:sampleDataSet>
      <v:sampleDataSet  dataSetName="Data Set 2006b">
        <_B43>  <p>777</p>  </_B43>
        <_A28>  <p>15.3</p>  </_A28>
      </v:sampleDataSet>
    </v:sampleDataSets>
  </variableSet>
</variableSets>
</svg>
ENDTEXT

LOCAL oXMLAdapter as XMLAdapter
oXMLAdapter = NEWOBJECT('XMLAdapter') 
oXMLadapter.LoadXML(cXML) 
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform