00001 /** 00002 0000300004 This is the RexxLiterated documentation for xmlDOM work-in-progress. 00005
00006 00007Overview
0000800009 Currently, the basic stuff, building a DOM Level1 from a XML source with 00010 a non-validating simple XML parser and supporting access to that DOM by 00011 means of the navigating/accessing interfaces defined by W3C, shoudl be 00012 mostly working. 00013
00014 0001500016 The source browser is a browser (with syntax highlighting) not an editor 00017 and part of the RexxLiterate package, see the 00018 RexxLiterate project. 00019
00020 0002100022 Use the tabs to find items belonging to the tab's category. 00023 You can also navigate the tree on the left to explore the 00024 documentation and source. 00025
00026 00027Licence
0002800029 This version of xmlDOM is licensed under the Common Public License 00030 http://www.opensource.org/licenses/cpl1.0.php 00031
00032 0003300034 Copyright (c) 2011-2015 Ruurd J. Idenburg 00035
00036 0003700038 Author: Ruurd J. Idenburg 00039
00040 00041Structure
0004200043 Click on the documents tab above, then on the Structure link. 00044
00045 00046Operation
0004700048 To be expanded. 00049
00050 */ 00051 00052 /** Structure - how it fits together 0005300054 xmlDOM is composed of three cooperating classes: 00055
00073 A program that would interact with the DOM should do something akin to the 00074 following to create a workable situation: 00075
00076 builder = .dom1Builder~new -- create the DOM builder 00077 parser = .xmlParser~new(builder) -- create the XML parser 00078 xmlFile = "something.xml" -- a proper XML file 00079 xml = .stream~new(xmlFile) -- make it suppliable for the parser 00080 dom = parser~parseStream(xmlFile) -- get the DOM from the parser 00081 document = dom~documentElement -- retrieve the document 00082 elements = document~getrElementsByTagName("*") -- get all elements in the DOM 00083 elementArray = elements~toOorexxArray -- convert to ooRexx array 00084 ...... 00085 ::requires 'xmlDOM.cls' 0008600087 00088 */ 00089 /** tryxmldom.rex 00090
00091 Is just an excercise in using/testing the parser and builder, not necessarily in the most efficient or elegant way. 00092 It uses LongPondLane-vanEttenLane.xml as the xml input stream. The input file is the same as the result of the 00093 following query for Google Maps: 00094
00095 https://maps.googleapis.com/maps/api/directions/xml?origin=8+Long+Pond+Lane,+Saugerties,+NY&destination=5+van+Etten+Lane,+Lake +Katrine,+NY&units=imperial&mode=bicycling 00096
00097 tryxmldom.rex will parse the input into a DOM and will output a GPX file with route directions/tracks that can be 00098 viewed/used on your smartphone or tablet with apps like Viewranger, OSMAnd+ and MyTrails. 00099 /** Todo 00100
00101 Lots. 00102
00103 00104 */Generated on 30 Jul 2015 13:56:48 for xmlDOM for OOrexx by 0.0.1 |