I am a brand spanking new Java programmer. I am using a SAX parser to Parse an XML file. I need to make the element searched for a dynamic variable with the value pulled from another XML file.
public void startElement(String namespaceURI,
String eName = lName; // Set element name equal to local name
if ("".equals(eName)) eName = qName;
if (eName.equals("w:t")) <<<<<<< this value needs to be pulled from another XML file
I would like to use a new seperate class to do this in the interest of reusable code. How do I call that outside class from the above code and pass the returned value. Also I am simply reusing the already created parser with a few modifications to do this, however it is written to pass the output to the Standard output,
out = new OutputStreamWriter(System.out, "UTF8");
What do I need to change in order for this to pass teh variable simply back to the code.
THanks for all your help in advancce.