nachtmsk has asked for the wisdom of the Perl Monks concerning the following question:
So I have an XML file that I am parsing using XML::LibXML and it's working very nicely.
The provider of the data is only returning 250 records initially. In the heading of the XML data is a section that tells how many records are in total, pages available, etc... See code below.
It doesn't look like XML to me. Anyone know if if I can get XML::LibXML to get this data out for me. Particularly what I need is "total_pages", "total_records" and "download_key".
If not, I guess a RegEx would be the way to go. Working on that now, but if anyone has an elegant suggestion, I'm listening.
Thanks, Mike<result_summary total_records="594" total_pages="3" current_page="1" +records_this_page="250" download_key="xmxnxnxnxnxnxnxnxnx" time_start +="2020-02-19 15:50:55" feed_version="1.44" />
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get data from an XML file heading
by haukex (Archbishop) on Feb 20, 2020 at 15:33 UTC | |
by nachtmsk (Acolyte) on Feb 20, 2020 at 15:58 UTC | |
by haukex (Archbishop) on Feb 20, 2020 at 16:13 UTC | |
by nachtmsk (Acolyte) on Feb 20, 2020 at 17:10 UTC | |
by haukex (Archbishop) on Feb 20, 2020 at 17:47 UTC | |
|
Re: Get data from an XML file heading
by Lotus1 (Vicar) on Feb 20, 2020 at 16:20 UTC |