43 printf(" Application Name is: '%s' (note that < has been replaced by '<')\n", xNode.getChildNode("Application").getAttribute("name"));
44
45// this prints "Hello World!"
46 printf(" Text inside Header tag is :'%s'\n", xNode.getText());
47
48// this prints "urn"
49 printf(" Value of the first attribute of the 'PMML/Extension/Key' tag is :'%s'\n", xMainNode.getChildNodeByPath("Extension/Key").getAttributeValue());
50
51// this gets the number of "NumericPredictor" tags:
279 xMainNode=xMainNode.getChildNode(); xMainNode=xMainNode.getParentNode(); t=(char*)xMainNode.getName(); printf(" Ex2: Name of top node; '%s'\n",t?t:"null");