Code example for Element

Methods: getFirstChildgetParentNode

0
    //then this returns false.  The local part of the faultcode is then check to see 
    //if it is one of the permitted values. 
    if (faultCodeElem == null)
      return true; 
 
    String faultCode = faultCodeElem.getFirstChild().getNodeValue().trim();
    if (faultCode == null)
      return false; 
 
    // FIX: This is not correct, since this element can not be namespace qualified 
    String faultCodeElemPrefix = faultCodeElem.getParentNode().getPrefix();
 
    // If this is not a QName then return false 
    int index;
    String faultCodePrefix = null;
    String faultCodeName = faultCode;
    if ((index = faultCode.indexOf(':')) != -1)
    { 
      faultCodePrefix = faultCode.substring(0, index);
      faultCodeName = faultCode.substring(index + 1, faultCode.length());
Connect your IDE to all the code out there  Get Codota for Java