perl xml parser get xml content within xml

Posted by user391986 on Stack Overflow See other posts from Stack Overflow or by user391986
Published on 2011-06-23T23:46:44Z Indexed on 2011/06/24 0:22 UTC
Read the original article Hit count: 1045

Filed under:
|

How can I use XMLParser to get the item->@url, item->@replace and item->"value inside" for the content as a string of the node where item->@cone="one"?

<cstep>
  <item  cone="one" 
         url="http://google.com/{ccc}/cthree"
         replace="{ccc}">
            <itemsub conesub="conesub">
                    <itemsubsub  conesubsub="conesubsub" />
            </itemsub>       
  </item>
  <item  cone="two" 
         url="http://google.com/{ccc}/cthree"
         replace="{ccc}">
            <itemsub conesub="conesub">
                    <itemsubsub  conesubsub="conesubsub" />
            </itemsub>       
  </item>
</cstep>

© Stack Overflow or respective owner

Related posts about Xml

Related posts about perl