Page 1 of 1

why i can't get the value from XML

Posted: Sat Apr 13, 2013 5:54 pm
by nicktazo
Dears



here is my xml sample



8

4





i am trying to use the below scripts expression to get data



var jobDataset = job.getDataset( "Xml" );

var ups =jobDataset.getPath("/data/upsnumber");

var copies=jobDataset.getPath("/data/copynumber");



but always show me error message



No matching slot found, available overloads are: QString DatasetXML::getPath()



Real appreciate anyone can help me to solve this problem.



Thanks



Nick