Hi Monks,
I am trying to extract the part of the xml from the server.xml file, the xml is as below
<?xml version="1.0" encoding="UTF-8"?><status>SUCCESS</status> /***********For QA only ****************/ <?xml version="1.0" encoding="UTF-8"?> <request> <visitorID>4d1aebec-543b-41ae-8336-3a30462f5227</visitorID> <reportSuiteID>aolmobilewebdev</reportSuiteID> <pageName>wpt: help_pv</pageName> <pageURL>http://mqa.aol.com/portal/default/help.do?icid=ft_help</pageU +RL> <ipAddress>10.146.175.162</ipAddress> <userAgent>JoeDog/1.00 [en] (X11; I; Siege 2.70)</userAgent> <scXmlVer>1.0</scXmlVer> <timezone>-5</timezone> <channel>us.wptportal</channel> <referrer></referrer> <events>event10</events> <server>qawire-ql26.tweb.aol.com</server> <eVar16>ft_help</eVar16> <prop1>wpt: portal</prop1> <prop2>wpt: Help Page</prop2> <prop3>gmt_5</prop3> <prop10>JoeDog/1.00 [en] (X11; I; Siege 2.70)</prop10> <prop12>http://mqa.aol.com/portal/default/help.do</prop12> <prop13>non-authenticated</prop13> <prop14>no referrer</prop14> <prop24>uaid_na</prop24> <prop49>xml api</prop49> </request>

From the above xml i want to extract or get the xml tag starting from the <request> to </request>
monks,help me out for the above task and suggest me how can i start, i mean what modules i need to use for the above activity.


In reply to How to get the part of the xml from the server log by perladdict

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.