Can you expand more upon what doesn't work? When I go into the Acrobat 9 JS console and enter the following:
// Create the XML stream
var parseString = "
";
parseString += "";
parseString += "299.00";
parseString += "iPod";
parseString += "";
parseString += "";
parseString += "49.95";
parseString += "case";
parseString += "";
parseString += "";
// Now create the DOM:
var x = XMLData.parse(parseString,false);
// Set up the XPath expression:
var xPathExpr = "//product[name='iPod']/price";
// Now get the iPod price:
var price = XMLData.applyXPath(x, xPathExpr);
app.alert(price.value)
select it all, and press Ctrl-Enter, it pops up a dialog saying 299.00, which is correct. What do you see when you execute this in the Acrobat JS console?