Skip to main content

xml

Laurence MorganAbout 2 minData-Type Reference

xml

Extensible Markup Language (XML) (experimental)

Description

XML is a structured data-type within Murex.

Wikipediaopen in new window 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 TTY
  • ReadArray() experimental; Works with XML arrays. Maps are converted into arrays
  • ReadArrayWithType() 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 XML
  • ReadMap() experimental; Works with XML maps
  • ReadNotIndex() experimental; Works against all properties in XML
  • Unmarshal() Supported
  • WriteArray() experimental; Works with XML arrays

See Also

Read more about type hooks


This document was generated from builtins/types/xml/xml_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan