dougnotdoug
Technical User
I am completely devoid of XML knowledge. I am trying to use an automated feature of Adobe Illustrator that uses an XML file to replace a variable in a document. (The XML file needs to contain a list of values that will be filled in and saved as seperate documents.) I have the XML file that contains 1 data set for the variable. My question is, how do I modify the XML to include 150 more datasets that will be placed into the variable field? In this case my dataset is a list of simple text strings. Here is the XML I need to modify:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" " [
<!ENTITY ns_graphs " <!ENTITY ns_vars " <!ENTITY ns_imrep " <!ENTITY ns_custom " <!ENTITY ns_flows "<!ENTITY ns_extend "]>
<svg>
<variableSets xmlns="&ns_vars;">
<variableSet varSetName="binding1" locked="none">
<variables>
<variable varName="Variable1" trait="textcontent" category="&ns_flows;"></variable>
</variables>
<v:sampleDataSets xmlns="&ns_custom;" xmlns:v="&ns_vars;">
<v:sampleDataSet dataSetName="Data Set 1">
<Variable1>
<p>$8.99</p>
</Variable1>
</v:sampleDataSet>
</v:sampleDataSets>
</variableSet>
</variableSets>
</svg>
The "$8.99" is the one existing dataset and I need to add 150 more text strings. How do I properly do this? Any help is appreciated.
Thank you
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" " [
<!ENTITY ns_graphs " <!ENTITY ns_vars " <!ENTITY ns_imrep " <!ENTITY ns_custom " <!ENTITY ns_flows "<!ENTITY ns_extend "]>
<svg>
<variableSets xmlns="&ns_vars;">
<variableSet varSetName="binding1" locked="none">
<variables>
<variable varName="Variable1" trait="textcontent" category="&ns_flows;"></variable>
</variables>
<v:sampleDataSets xmlns="&ns_custom;" xmlns:v="&ns_vars;">
<v:sampleDataSet dataSetName="Data Set 1">
<Variable1>
<p>$8.99</p>
</Variable1>
</v:sampleDataSet>
</v:sampleDataSets>
</variableSet>
</variableSets>
</svg>
The "$8.99" is the one existing dataset and I need to add 150 more text strings. How do I properly do this? Any help is appreciated.
Thank you