Friday 5 August 2011

Create a new element

  
import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Utils {
  /**
   * Create a new element
   @param document Document to contain the new element
   @param name the element name
   @return new Element
   */
  public static Element createElement(Document document, String name) {
    Element element;

    return document.createElement(name);
  }
}

   
    
  

No comments:

Post a Comment