Пример #1
0
  private static Node mapXmlNodeToNode(XmlNode xmlNode) {

    Node node = new Node();

    node.setNodeText(xmlNode.getNodeText());
    return node;
  }
Пример #2
0
  private static XmlNode mapNodeToXmlNode(Node node) {

    XmlNode xmlNode = new XmlNode();
    if (node != null) {
      xmlNode.setNodeText(node.getNodeText());
    }

    return xmlNode;
  }