@xml_read(file:string)
XML:: and is implicitly
converted into an Antescofo value.
The encoding of an XML file into an Antescofo value is as follow :
- 
A valid XML text is described as a sequence of tags and is translated into a vector. 
- 
Meta-data tags (e.g. <?xml? ... ?>and comments are ignored in the translation.
- 
Each remaining tag is translated into a triple (a vector of 3 elements) [name, map, content]:
- The first element nameis a string giving the name of the tag.
- The second element mapis a map describing the attributes of the tag. The map is empty if there is no attribute.
- If the tag specified by the 3-uple has a content, this content is a sequence interleaving text and tags. The third elements is a vector representing this succession of elements.
For instance,
$m := XML:: <a>
              <b>1</b>
              <c>3.14159</c>
            </a>
$m := [ "a",
        MAP{},
        [ ["b", MAP{}, [1]],
          ["c", MAP{}, [3.14159]]
        ]
      ]
$m := XML::<title size="big" font="times">Hello <strong>World</strong> ! </>
$m := [ "title",
        MAP{ ("font", "times"), ("size", "big") },
        ["Hello ", ["strong", MAP{}, ["World"]], " ! "]
      ]
See also @xml_string.
Data Exchange Functions: @dump @dumpvar @gnuplot @json_read @json_string @json_write @loadvalue @loadvar @nim2vezer @parse @plot @read_file @rplot @savevalue @set_osc_handling_double @set_osc_handling_int64 @set_osc_handling_tab @string2fun @string2obj @string2proc @to_num @xml_read @xml_string