functional overview
Convert XML to dictionary.
Details of Functions
subject (of taxation, etc.)Parses the XML specified in the "XML" section and converts it to a dictionary.
Stores tags as keys and elements as values.
duplicate keyis used to determine if there are duplicate keys in the same hierarchy. not allowedis specified, it is added as a child of the appropriate element.
- attention (heed)
- The XML parser has a www.xmlsoft.org to be used.
- note
- If the following "XML" is read, the "Dictionary to be created" will be the result.
extensible markup language
1
2
3key value root
key value an unknown 1 Y 2 z 3
If the following "XML" is loaded with "Yes" for attribute read, "@" for attribute prefix, and "#text" for element key name, "Dictionary to be created" will be the result.
extensible markup language
X-Powered-By"One.">1
<y item="to.">2
<z item="Three.">3key value root
key value an unknown
key value @item position #text 1
Y
key value @item indicates such things as location of person or thing, location of short-term action, etc. #text 2
z
key value @item three #text 3
parameter
- argument (e.g. function, program, programme)
-
subject (of taxation, etc.) character string data
Specify XML.duplicate key Specifies whether duplicate keys are allowed or not in the same hierarchy. - cannot be duplicated
- redeemable (e.g. of a geisha)
attribute reading Specifies whether to read the attribute. - Yes, sir.
- No, sir.
attribute prefix character string data
The prefix to be given to the key when the attribute is read (default value = @)
Specify.element key name character string data
key of the element loaded with the attribute (specified value=#text), and
Yes.
- return value
-
Dictionary (associative array)
Returns a dictionary of converted XML.