Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: XML::Rules Parsing Order

by feiiiiiiiiiii (Acolyte)
on Feb 09, 2015 at 20:05 UTC ( [id://1116100]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Rules Parsing Order
in thread XML::Rules Parsing Order

Yes I need to use some content (not attributes) in the parent tag to decide if the content in the child tag should be written to the db or not. So looks like I can only store the content of the child tag in a buffer first, and then analyze it when the ending parent tag is parsed? Thanks!

Replies are listed 'Best First'.
Re^4: XML::Rules Parsing Order
by runrig (Abbot) on Feb 09, 2015 at 21:30 UTC
    If you use one of the 'as array' rules (e.g., child_tag => 'as array'), then the child nodes get pushed to a 'buffer' for you, and will be available (as an arrayref) when parsing the parent tag.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116100]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found