Example #1
0
 protected javax.xml.soap.Node getValueNode() {
   Iterator i = getChildElements();
   while (i.hasNext()) {
     javax.xml.soap.Node n = (javax.xml.soap.Node) i.next();
     if (n.getNodeType() == org.w3c.dom.Node.TEXT_NODE
         || n.getNodeType() == org.w3c.dom.Node.CDATA_SECTION_NODE) {
       // TODO: Hack to fix text node split into multiple lines.
       normalize();
       // Should remove the normalization step when this gets fixed in
       // DOM/Xerces.
       return (javax.xml.soap.Node) n;
     }
   }
   return null;
 }
Example #2
0
 // Node methods
 public String getValue() {
   javax.xml.soap.Node valueNode = getValueNode();
   return valueNode == null ? null : valueNode.getValue();
 }