类 XmlDocumnet

java.lang.Object
com.sh.common.util.XmlDocumnet

public class XmlDocumnet extends Object
Description: XML文档对象 Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 构造器详细资料

    • XmlDocumnet

      public XmlDocumnet()
  • 方法详细资料

    • loadInputXMLString

      public void loadInputXMLString(String xmlInput) throws Exception
      加载、解析XML格式的字符串
      参数:
      xmlInput - String
      抛出:
      Exception - Exception
    • loadXMLFileToEle

      public void loadXMLFileToEle(String path) throws Exception
      加载、解析XML文件
      参数:
      path - xml文件路径
      抛出:
      Exception - Exception
    • loadXMLFileToEle

      public void loadXMLFileToEle(InputStream is) throws Exception
      将XML文件输入流转化为文档结点对象
      参数:
      is - InputStream
      抛出:
      Exception - Exception
    • setText

      public void setText(String elPath)
    • setAttribute

      public void setAttribute(String elAttr)
    • toString

      public String toString()
      输出XML格式字符串
      覆盖:
      toString 在类中 Object
      返回:
      String