Code example for XPathFactory

Methods: newXPath

 * @author Greg Burgess  
public class WeatherReport {  
  private static XPathFactory factory = XPathFactory.newInstance();
  private static XPath xpath = factory.newXPath();  
  //private static final String weatherUrlTxt =  
  //private static final String astrologicalUrlTxt = 
  private static URL weatherUrl;
  private static URL astroUrl;
  private static String location;
  private static final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  private static DocumentBuilder db;
  private Map<String,Double> conditionMap;
  /** The String value of the area of interest,  
   * given by WeatherUndergound's API.**/ 
  private  static final String DC = "Washington%2c%20District%20of%20Columbia";
  /** The weather station nearest DC that we will pull data from. **/ 
  private static final String ECKINGTON = "Eckington%20Pl%2c%20NE%2c%20Washington";