Re: Converting a retruned string value to a number

2005-04-07 Thread Manish Sapariya
Hello, Thanks for all your replies. This however does not work for me OR I dont understand the problem I encountered. This is the exact error that I encouter when running my perl code. -- Argument "XML::XPath::Node::Element=REF(0x86c31c8)->findvalue('loo..." isn't numeric in numeric eq

Re: Converting a retruned string value to a number

2005-04-07 Thread Manish Sapariya
Hello everybody, Thanks for all the help. I got it working. My xml file was not properly consturcted and hence the problem. Has nothing to do with the conversion. Sorry for the noise created. Thanks and Regards, Manish P.S. : I observe that my mail message dont appear immediately in the newgroup. I

Re: Converting a retruned string value to a number

2005-04-07 Thread Manish Sapariya
Hello, I searched throught perldoc XML::Xpath and here what it has to say: findvalue($path, [$context]) Returns either a "XML::XPath::Literal", a "XML::XPath::Boolean" or a "XML::XPath::Number" object. If the path returns a NodeSet, $no

Re: Converting a retruned string value to a number

2005-04-06 Thread John Doe
Am Mittwoch, 6. April 2005 18.02 schrieb [EMAIL PROTECTED]: > - Original Message - > From: Manish Sapariya <[EMAIL PROTECTED]> > Date: Wednesday, April 6, 2005 10:17 am > Subject: Converting a retruned string value to a number > > > Hi List, > > HellO

Re: Converting a retruned string value to a number

2005-04-06 Thread Offer Kaye
On Apr 6, 2005 5:17 PM, Manish Sapariya wrote: > Hi List, > How do i convert a string variable returned by > some XPath API into a number so that I can > compare it or loop using this number. > > I am reading one number from XML and I want to > use it for looping. > In general, conversion from a

Re: Converting a retruned string value to a number

2005-04-06 Thread mgoland
- Original Message - From: Manish Sapariya <[EMAIL PROTECTED]> Date: Wednesday, April 6, 2005 10:17 am Subject: Converting a retruned string value to a number > Hi List, HellO, > How do i convert a string variable returned by > some XPath API into a number so that I can

Converting a retruned string value to a number

2005-04-06 Thread Manish Sapariya
Hi List, How do i convert a string variable returned by some XPath API into a number so that I can compare it or loop using this number. I am reading one number from XML and I want to use it for looping. Thanks and Regards, Manish -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman