Help with parse

L

Lisa

The following code parses the amount list correctly, but I
need to find a similar function that does the same with
text.


var CatList = XDocument.DOM.selectNodes
("//my:group4/my:Day/my:Expense/my:Category");
var Amounts = XDocument.DOM.selectNodes
("//my:group4/my:Day/my:Expense/my:Amount");
for (var i=0;i<CatList.length;i++)
{
var amtVal = parseFloat(Amounts(i).text);
var Cat = parse(CatList(i).text);
}

The "parse" command returns an error "Object expected" at
the line:

var Cat = parse(CatList(i).text);

Any suggestions would be helpful.
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top