tryxmldom.rex File Reference

OORexx



Procedures

gpxStream - The GPX file to STDOUT (,which can be redirected to a file of course). --entry_proc (xmlFile)
text - the encoded text doEntities (text)

Detailed Description


Just a little program to excercise (some of ) the xmlDOM classes.
Transforms the XML result of a google maps directions query such as:
  http://maps.googleapis.com/maps/api/directionsxml?origin=Uithoorn,NL&destination=Nieuw+Vennep,NL&mode=bicycling
  
into a GPX file, that can be downloaded/used on smartphones/tablets with apps such as Viewranger, OSMAnd+ and MyTrails.

Entry procedure


Just a little program to excercise (some of ) the xmlDOM classes.

Transforms the XML result of a google maps directions query such as:


http://maps.googleapis.com/maps/api/directionsxml?origin=Uithoorn,NL&destination=Nieuw+Vennep,NL&mode=bicycling

into a GPX file, that can be downloaded/used on smartphones/tablets with apps such as Viewranger, OSMAnd+ and MyTrails.

Parameters
xmlFile - the name of the xml-file to proces
Returns
gpxStream - The GPX file to STDOUT (,which can be redirected to a file of course).

Called by

Definition at line 12 of tryxmldom.rex

doEntities: Procedure


Encodes entities for xml text

Parameters
text - the text with plain entities
Returns
text - the encoded text

Called by
tryxmldom.rex line 181 "text = out~createTextNode(doEntities(legData~directions[i])"; Go" legData~distances[i]"." )"

Definition at line 228 of tryxmldom.rex

::routine domWriter


Walks the DOM tree recursively and generates the GPX tags and their contents

Parameters
nodes - a xmlNodeList to start the treewalk
tagStack - a .queue instance to keep track of nested tags
Returns
gpxStream - the gpx contents to STDOUT

Called by
tryxmldom.rex line 220 "call domWriter out~childNodes, .queue~new"
tryxmldom.rex line 268 "call domWriter node~childNodes, tagStack"

Definition at line 242 of tryxmldom.rex

domException:


Exception catcher


Definition at line 330 of tryxmldom.rex

::requires 'xmlDOM.cls'


Definition at line 335 of tryxmldom.rex


Get RexxLiterate at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on 30 Jul 2015 13:56:48 for xmlDOM for OOrexx by rexxliterate  0.0.1