Package com.anzsoft.client.utils

Source Code of com.anzsoft.client.utils.DOMHelper

package com.anzsoft.client.utils;

import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.Node;


public class DOMHelper
{
  static public Element textTag(final XmlDocument doc,final String name,final String content)
  {
    Element group = doc.createElement(name);
    Node textNode = doc.createTextNode(content);
    group.appendChild(textNode);
    return group;
  }
 
  static public Element emptyTag(final XmlDocument doc,final String name)
  {
    Element tag = doc.createElement("name");
    return tag;
  }
}
TOP

Related Classes of com.anzsoft.client.utils.DOMHelper

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.