in reply to XML::Rules Parsing Order
Will parent_tag or child_tag be parsed first? i.e. Does the parsing happen when a start tag is met, or when an end tag is met?
The docs say:
These rules are evaluated/executed whenever a tag if fully parsed including all the content and child tags and they may access the content and attributes of the specified tag plus the stuff produced by the rules evaluated for the child tags.
So, child tags are parsed before parent tags; so that the parent tag rules have access to whatever is produced from the parsing of the child tags.
Is there a way to always have parent_tag to be parsed first?
Doesn't look like it. But why would you want to?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Rules Parsing Order
by runrig (Abbot) on Feb 09, 2015 at 19:51 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2015 at 19:59 UTC | |
by feiiiiiiiiiii (Acolyte) on Feb 09, 2015 at 20:05 UTC | |
by runrig (Abbot) on Feb 09, 2015 at 21:30 UTC |