Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Tomcat context.xml parsing using XML::SImple

by tobyink (Abbot)
on Nov 21, 2012 at 10:28 UTC ( #1004891=note: print w/ replies, xml ) Need Help??


in reply to Tomcat context.xml parsing using XML::SImple

For any XML work where any of the following is true, XML::Simple is not your friend:

  • The order of elements is important.
  • The distinction between an element and an attribute is important.
  • You want to preserve comments.
  • You want to preserve whitespace.

Use something like XML::LibXML instead.

TL;DR: No.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re: Tomcat context.xml parsing using XML::SImple
Re^2: Tomcat context.xml parsing using XML::SImple
by jagadish1982 (Initiate) on Nov 21, 2012 at 12:57 UTC
    Is there any good option to parse the tomcat context.xml files using perl .

      Use something like XML::LibXML instead.

      or even XSH2

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-07-05 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls