xml
About 2 minData-Type Reference
xml
Extensible Markup Language (XML) (experimental)
Description
XML is a structured data-type within Murex.
Wikipedia describes XML usage as:
XML has come into common use for the interchange of data over the Internet. Hundreds of document formats using XML syntax have been developed, including RSS, Atom, Office Open XML, OpenDocument, SVG, COLLADA, and XHTML. XML also provides the base language for communication protocols such as SOAP and XMPP. It is one of the message exchange formats used in the Asynchronous JavaScript and XML (AJAX) programming technique.
Examples
<person>
<firstName>John</firstName>
<lastName>Smith</lastName>
<isAlive>true</isAlive>
<age>27</age>
<address>
<city>New York</city>
<postalCode>10021-3100</postalCode>
<state>NY</state>
<streetAddress>21 2nd Street</streetAddress>
</address>
<phoneNumbers>
<number>212 555-1234</number>
<type>home</type>
</phoneNumbers>
<phoneNumbers>
<number>646 555-4567</number>
<type>office</type>
</phoneNumbers>
<phoneNumbers>
<number>123 456-7890</number>
<type>mobile</type>
</phoneNumbers>
<children/>
<spouse/>
</person>
Default Associations
- Extension:
atom
- Extension:
rss
- Extension:
svg
- Extension:
xht
- Extension:
xhtml
- Extension:
xml
- MIME:
+xml
- MIME:
application/x-xml
- MIME:
application/xml
- MIME:
application/xml-dtd
- MIME:
application/xml-external-parsed-entity
- MIME:
text/x-xml
- MIME:
text/xml
- MIME:
text/xml-external-parsed-entity
Supported Hooks
Marshal()
Writes minified XML when no TTY detected and indented XML when stdout is a TTYReadArray()
experimental; Works with XML arrays. Maps are converted into arraysReadArrayWithType()
experimental; Works with XML arrays. Maps are converted into arrays. Elements data-type in Murex mirrors the XML type of the element (if known)ReadIndex()
experimental; Works against all properties in XMLReadMap()
experimental; Works with XML mapsReadNotIndex()
experimental; Works against all properties in XMLUnmarshal()
SupportedWriteArray()
experimental; Works with XML arrays
See Also
- Define Type (
cast
): Alters the data-type of the previous function without altering its output - Get Nested Element (
[[ Element ]]
): Outputs an element from a nested structure - Open File (
open
): Open a file with a preferred handler - Prettify JSON: Prettifies data documents to make it human readable
- Reformat Data type (
format
): Reformat one data-type into another data-type csv
: CSV files (and other character delimited tables)json
: JavaScript Object Notation (JSON)toml
: Tom's Obvious, Minimal Language (TOML)yaml
: YAML Ain't Markup Language (YAML)- index: Outputs an element from an array, map or table
Read more about type hooks
ReadIndex()
(type): Data type handler for the index,[
, builtinReadNotIndex()
(type): Data type handler for the bang-prefixed index,![
, builtinReadArray()
(type): Read from a data type one array element at a timeWriteArray()
(type): Write a data type, one array element at a timeReadMap()
(type): Treat data type as a key/value structure and read its contentsMarshal()
(type): Converts structured memory into a structured file format (eg for stdio)Unmarshal()
(type): Converts a structured file format into structured memory
This document was generated from builtins/types/xml/xml_doc.yaml.