xml2array

beasscript-logo-small

tools=xml2array=<xmlstring>
tools=xml2array=file:<xmlfilename>

 

Converts a simple xml-string to a varialbe-array

This function is only for very simple xml-strings.

 

Example:

<xml>
<item>
   <itemcode>A001</itemcode>
   <itemname>First item</itemname>
   <price>
        <price1>3.44</price1>
   </price>
</item>
</xml>

 

generate variable with name:

 

xml_item_itemcode=A001
xml_item_itemname=First Name
xml_item_price_price1=3.44

 

This is a very simple converter with lot of limitations.
to import complex structures, use file2datastore