Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 taking refuge in the Monastery: (10)
As of 2014-07-30 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (230 votes), past polls