in reply to Re^5: Is there any XML reader like this? (XML::Simple beats LibXML hands down in the speed stakes!)
in thread Is there any XML reader like this?
Yeah, LibXML. My tests *included* the time it took to extract the data from the tree.
Hm. So did mine. But I believe mine.
We use XML::Bare with a thin layer to compensate for it's awful interface (XML::Simple without ForceArray or any other option)
Hm. XML::Bare::forcearray( [noderef] )
S'funny init. It took less than a minute to disprove that. And after 5 minutes, I'm pretty sure I could use XML::Bare to read a file and get access to its content.
Conversely, when I tried to look up getDocumentElement, I completely crapped out after about an hour. You applied it to the return from load_xml() which is labelled $dom. So look in DOM. Nada. Maybe a Node. Nada. How about a parser, or a nodelist or a namespace? Nada, nada, nada!
Your idea of an "awful interface" is weird.
For me:
That means small.
That means the first page shows me enough to get something working.
Details, refinements and esoterica can be deferred to secondary pages if that cannot be avoided.
That means, it starts by splitting the documentation along vertical lines. Ie. The way people need to use the interface. Eg, Read an XML; or write an XML; or edit an XML. etc. Not horizontally according to some arbitrary way the author decided to structure his code.
And it means starting with the basics in the root document, in the form of simple -- but complete -- worked examples of the main modes of use. And leaving the esoteric details for (preferably linked (and links that actually work)) secondary pages.
Not hitting the user in the face with a top level synopsis that contain every possible variation of the constructor and no indication of where to go from there.
XML::LibXML fails on every count.
Can we stop now, because we are once again doing nothing to help the OP; nor each other.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Is there any XML reader like this? (XML::Simple beats LibXML hands down in the speed stakes!)
by tobyink (Canon) on Jan 16, 2012 at 10:29 UTC | |
by BrowserUk (Patriarch) on Jan 16, 2012 at 11:00 UTC | |
by Jenda (Abbot) on Jan 16, 2012 at 12:11 UTC | |
by ikegami (Patriarch) on Jan 16, 2012 at 20:06 UTC | |
by BrowserUk (Patriarch) on Jan 16, 2012 at 20:17 UTC | |
|
Re^7: Is there any XML reader like this? (XML::Simple beats LibXML hands down in the speed stakes!)
by ikegami (Patriarch) on Jan 16, 2012 at 19:58 UTC |