good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: Apache +XML parsingby soliplaya (Beadle) |
on Nov 18, 2008 at 10:53 UTC ( [id://724240]=note: print w/replies, xml ) | Need Help?? |
Hi again. I have taken XML::Rules for a ride, and it is really nice. It also looks very fast. All in all, a great tool. But it did take me a while to get the inner logic of how it works, despite your evident efforts at writing the documentation. It is in the end excellent as a reference, but as far as I am concerned it lacked a bit in terms of being a tutorial, although I understand that the matter is complex and not easy to explain simply. What was not evident, is how one deals with a frequent case where a given <tag> can be a subtag of different parent tags, and needs to be interpreted differently depending on that, like <average-color> below :
I could never get the "somewhat x-path-like" tags to work, so I resorted to :
Another aspect a bit mysterious is how exactly the following construct actually works :
I mean, I know it works and returns the contents of <tag>s as an array, but the way in which it does that is a bit mysterious, even after looking at the module code (I must admit that a lot remains mysterious to me, after looking at the code though). All in all, thanks for the tip, and thanks for the module. I will re-use it.
In Section
Seekers of Perl Wisdom
|
|