Parsing SGML file into an array
| From: | Stowe, Nola | Date: | Mon, 29 Aug 2005 15:52:26 +0000 |
| Subject: | Parsing SGML file into an array | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20635@lists.php.net to get a copy of this message | ||
> I'd like to be able to parse a SGML file to an array, either one record at
> a time or all to an array of arrays. I was able to use XML_Parser and
> extend it, and display the tag name and data, but I am confused with the
> separate functions. I ran the example:
>
>
> http://pear.php.net/manual/en/package.xml.xml-parser.example.php
> <http://pear.php.net/manual/en/package.xml.xml-parser.example.php
>>
>
> And it displays the first set of data in the SGML file, but I don't know
> how to get it to loop or how to do something like
>
> $data['node_name'] = $node_value;
>
> I have searched for an example or any help with google and haven't found
> anything.
>
> Any suggestions?
>
> Thanks:)
>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
The information in this email and any attachments may contain
confidential information that is intended solely for the
attention and use of the named addressee(s). This message or
any part thereof must not be disclosed, copied, distributed or
retained by any person without authorization from the addressee.
If you are not the intended addressee, please notify the sender
immediately, and delete this message.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>