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();
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;
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
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
4 matches
Mail list logo