I asked: What's the OpenLaszlo equivalent of:
assertEquals(myData.getTextAtXpath("myXML/person/firstName"), "Homer");
jamesr wrote:
see the xpathQuery function of the datapointer class, an example
usage being as in:
canvas.datasets['name'].getPointer().xpathQuery('elem/elem/text()');
The assertion: foo = new LzDatapointer;assertEquals("Homer", foo.xpathQuery("myData:/myXML/person/firstName/ text()"));
is green. Thanks so much. -- assertEquals(Frisco Del Rosario, OpenLaszlo tester)
