Is there any possible way to convert XML::Twig object to XML::XPath objectby rnd (Initiate)
|on Oct 19, 2011 at 06:51 UTC||Need Help??|
rnd has asked for the
wisdom of the Perl Monks concerning the following question:
I'm using XML::XPath for a long time to parse xml, now the situation has come to modify the attribute value.
xml is available in a file, it will be very similar to this.
<StartPoint AM_PM='AM' Hours='09' Mins='30'/>
<EndPoint AM_PM='PM' Hours='06' Mins='30'/>
</AppName>I have written a perl script to change the Hours of StartPoint tag,
Now $twig has the xml object. If I send this object($twig) to my SetWindow.pm which parse xml using XML::XPath, did not recognize $twig object.
Is there any possible way to convert XML::Twig object to XML::XPath object so that XML::XPath will parse values in the $twig object.
Actually I have using XML::XPath for long back hence I have to send the XML::XPath object to all my own *.pm like SetWindow.pm, at the same time i need to change the values of the attribute of the standard xml before sending to my own PMs.
Thanks in Advance
Any Help is much appreciated