On this page:
Simple-Xml:   read xml to hash, write xml from lists.
8.3

Simple-Xml: read xml to hash, write xml from lists.

Racket build-in xml decoding function is: xml->xexpr. But decoded result is a hierrachical list, not covenient use.

Use xml->hash, you can use hash-ref to get xml element directly, or use loop to traverse all the list elements.

Use lists->xml(lists->compact_xml), convert recursive list to generate xml, remove redundant format, more readable.

Chen Xiao <chenxiao770117@gmail.com>

    1 Install

    2 xml->hash

      2.1 Basic Usage

      2.2 Hierachy

      2.3 Count and List

    3 lists->xml

    4 lists->xml_content and xml-trim

 (require simple-xml) package: simple-xml