M
Mullin
import java.io.*;
import java.util.*;
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.output.*;
import org.jdom.xpath.*;
public class DataMapper {
public static List getFieldList(int viewType) throws IOException,
JDOMException {
SAXBuilder builder = new SAXBuilder();
Document doc =
builder.build("http://localhost/xml/mapping.xml");
XPath fieldPath =
XPath.newInstance("//field[ui-display=\"Value1\" or
ui-display=\"Value2\"]");
List fields = fieldPath.selectNodes(doc);
return fields;
}
}
import java.util.*;
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.output.*;
import org.jdom.xpath.*;
public class DataMapper {
public static List getFieldList(int viewType) throws IOException,
JDOMException {
SAXBuilder builder = new SAXBuilder();
Document doc =
builder.build("http://localhost/xml/mapping.xml");
XPath fieldPath =
XPath.newInstance("//field[ui-display=\"Value1\" or
ui-display=\"Value2\"]");
List fields = fieldPath.selectNodes(doc);
return fields;
}
}