// Get the recognition data from the note
QDomDocument doc = new QDomDocument();
doc.setContent(xml);
// Go through all "item" nodes
QDomNodeList anchors = doc.elementsByTagName("item");
for (int i=0; i<anchors.length(); i++) {
QDomElement element = anchors.at(i).toElement();
int x = new Integer(element.attribute("x")); // x coordinate
int y = new Integer(element.attribute("y")); // y coordinate
int w = new Integer(element.attribute("w")); // width