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

Unable to print the line numbers at witch the element found in the xml doc

by perladdict (Chaplain)
on Aug 28, 2013 at 09:25 UTC ( [id://1051260]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use XML::Parser:Expat;
    $file = "..\\sample.xml";
    ...
    my $element_record = pop(@element_stack);
    print "i can see the $element element started on line ",$$element_reco
    +rd{line}, "is closing now\n";
    }
    
  2. or download this
    <?xml version="1.0"?>
    <spam-document version="3.5" timestamp="2013-08-28 15:23:15">
    ...
    </address>
    </customer>
    </spam-document>
    

Log In?
Username:
Password:

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

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

    No recent polls found