RE: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-23 Thread J. Scott Johnson
If you use xml_parse_into_struct, it does split out the attributes into the array it creates. I tested this with the standard manual code, adding a single attribute to the sample data i.e. $simple = paranote attrib=\scott\simple note/note/para; $p = xml_parser_create();

RE: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-23 Thread Scott Brown
Thanks - using xml_parse_into_struct does make parsing the document much easier... great suggestion. What I've ended up with is: // create parser $xp = xml_parser_create(); xml_parse_into_struct($xp,$xml,$vals,$index); xml_parser_free($xp); $found_domain = 0; $results = array(); for($ctr=0;

Re: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-22 Thread Erik Price
I'm no expert on the XML functions, but post your code and maybe we can figure out what's wrong. Erik On Thursday, March 21, 2002, at 09:24 PM, Scott Brown wrote: Ok - first off, I've found a few... phpbuilder has a nice number of references. But every one I've tried has ignored

[PHP] looking for tutorial on XML parsing of attributes...

2002-03-21 Thread Scott Brown
Ok - first off, I've found a few... phpbuilder has a nice number of references. But every one I've tried has ignored attributes... either that, or I dont understand what I'm doing. I retrieve from a distant server an XML response to an inquiry: ?xml version=1.0 ? response version=1.0