"David Pratt" <[EMAIL PROTECTED]> wrote:
> Anyone have a simple technique for obtaining a unique list of elements
> an XML file?
> Am looking for something that will identify the first opening tag ie
> <thistag> and the single tag <anothertag/> so that I get an array of tags
> that I can print out. Having a bit of trouble with regex to get something
> to work.
> Basic idea I had is to open file, read through each line with regex, add
> matches to array, and then do unique elements of array and write to
> Is there a better way?
Yes. Have you checked the manual? :)
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php