Here you can find the source of addImageSource(Node test, List holder)
protected static void addImageSource(Node test, List holder)
//package com.java2s; //License from project: Apache License import org.w3c.dom.*; import java.util.*; public class Main { protected static void addImageSource(Node test, List holder) { if (test.getNodeType() != Node.ELEMENT_NODE) return; Element RealTest = (Element) test; Node SourceNode = RealTest.getAttributeNode("SRC"); if (SourceNode == null) return; String text = SourceNode.getNodeValue(); if (text == null || text.length() == 0) return; holder.add(text);/* ww w. j av a 2 s . c o m*/ } }