Code example for Node

Methods: getTextContent, setTextContent

0
		NodeList nodelist = org.apache.xpath.XPathAPI.selectNodeList(document, fileNameNode);
		if (nodelist != null && nodelist.getLength() > 0) {
			Node stringProp = nodelist.item(0);
			NamedNodeMap attributes = stringProp.getAttributes();
			Node valueAttr = attributes.getNamedItem("value");
			String valueAttrTxt = valueAttr.getTextContent();
				S_LOGGER.debug("Load test xml name " + valueAttrTxt.substring(0, valueAttrTxt.indexOf("/") + 1).concat(testName + ".xml"));
			valueAttr.setTextContent(valueAttrTxt.substring(0, valueAttrTxt.indexOf("/") + 1).concat(testName + ".xml"));
		} 
		saveDocument(buildPathXml, document);
	} 
 
	@SuppressWarnings({ "unchecked", "rawtypes" }) 
	public static void sortResultFile(File[] children){
            S_LOGGER.debug("Entering Method QualityUtil.sortResultFile() for quality tab" + children);
		Arrays.sort( children, new Comparator() {
        	public int compare(Object o1, Object o2) {
            	if (((File)o1).lastModified() > ((File)o2).lastModified()) {
            		return -1; 
            	} else if (((File)o1).lastModified() < ((File)o2).lastModified()) {
            		return +1;