xml parsing
[email protected] ("Paul Spangler") Thu, 29 Jul 2004 15:54:19 -0400
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
I am kind of new at PHP, but have a good background in programming, so I am catching on quick. One thing I am trying to do is parse xml, similar to xslt, but without an xml parser such as Sablotron, so I am pretty much only using core PHP. The only problem I am having right now is how to divide up a line of the xml file. Currently I have loaded the file into an array using file(). I need to separate the following line, for example: <htitle>Welcome to SpanglerCo<login> <lname/></login></htitle> into an array with [<htitle>,Welcome to SpanglerCo,<login>,<lname/>,</login>,</htitle>] or something similar (or better). I would appreciate any help. Thank you, Paul Spangler SpanglerCo