pax.data

This class allows various ways of parsing of data

Author

Mikkel Bergmann, http://www.pointful.com

Summary
pax.dataThis class allows various ways of parsing of data
Functions
pax.data.parse.data.xmlDOMParses an XML document into a Document Object Model object.

Functions

pax.data.parse.data.xmlDOM

Parses an XML document into a Document Object Model object.

Parameters

xmlDocumentan XML document to parse

Note

  • Attributes are accesed via ‘_attribute’
  • Values are accesed via ‘_value’

Example

<a href='../people.xml'>people.xml</a><hr>
<textarea id='pax.data.parse.xmlDOM.example1' cols=100 rows=16></textarea>

[:.
    function parseXML( xml, txt, url ) {
        $('pax.data.parse.xmlDOM.example1').value = pax.util.pprint( pax.data.parse.xmlDOM( xml ) );
    }
    pax.get( '../people.xml', parseXML );
:]

This example retreives an XML file, parses it into an object, and pretty prints the result in a textarea.

Close