Re: XML parser



"Joshua Morgan" <joshua.morgan@xxxxxxxxx> writes:

A general XML parser, and that is actually what I was considering
doing, using regular expression to pull out the data and put it into a
nice array that can be used by some functions.

You can find examples of reading XML files using three different
techniques (including that regular expression method) at this
article:

Reading and writing the XML DOM with PHP
Using the DOM library, SAX parser and regular expressions
http://www-128.ibm.com/developerworks/xml/library/os-xmldomphp/?ca=dgr-lnxw06XML-PHP

--
Tomi Engdahl (http://www.iki.fi/then/)
Take a look at my electronics web links and documents at
http://www.epanorama.net/
.



Relevant Pages

  • Re: XML parser
    ... You can find examples of reading XML files using three different techniques (including that regular expression method) at this article: ... Reading and writing the XML DOM with PHP ...
    (comp.lang.php)
  • Re: Brian Kernighan, maybe Im not worthy, maybe Im scum
    ... Rob Pike and discussed by Brian Kernighan in a new O'Reilly book. ... programmer is "free", o happy day, to use the stack copy, test itself, ... "There is one difference between an array name and a pointer that ... "The problem was that any existing regular expression package was ...
    (comp.programming)
  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so... ... characters will throw things off. ... "In an hour the system will go down for maintenance". ...
    (alt.php)
  • Re: Regular Expression Function
    ... I want a regular expression to compare sentences and then rate them as ... I have an array with a list of other phrases like so.. ... These will be stripped from the input first. ... characters will throw things off. ...
    (alt.php)
  • Re: Using ruby hash on array
    ... perform a count on one aspect of the data in the array. ... lines of similarly formatted data like so ... of data which requires a regular expression which is passed to a method ... printf "%20s %6d\n", a, cnt ...
    (comp.lang.ruby)