xml2array

beasscript-logo-small

tools=xml2array=<xmlstring>

tools=xml2array=file:<xmlfilename>

 

convert 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 limitation.
to import complex strutctures use file2datastore