Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Match on line, read backwards to opening xml tag then forward to closing tag

by choroba (Cardinal)
on Nov 14, 2011 at 17:05 UTC ( [id://937990]=note: print w/replies, xml ) Need Help??


in reply to Match on line, read backwards to opening xml tag then forward to closing tag

I usually use XML::XSH2 for XML manipulation. After fixing errors in your XML and wrapping it into a root node, I was able to find the corresponding Dataentry just with the following lines:
open 937973.xml ; for //Data[.='bbbbbb'] ls .. ;
  • Comment on Re: Match on line, read backwards to opening xml tag then forward to closing tag
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-19 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found