Hi,
I would like to use Magicparser to get a specific attribute number. For example in following:
<USA>
<state id='1'>
<name>vermont</name>
<language>english</language>
</state>
<state id='99>
<name>california</name>
<language>english</language>
</USA>
Hello Zenkutsu,
You can simply "return" from your myRecordHandler() function based on a test to ignore any records that you don't want to process. For example;
function myRecordHandler($record)
{
if ($record["STATE-ID"] <> "99") return;
// ...
// rest of record handler function here
// ...
}
Hope this helps!
Cheers,
David.