Java XML QName getFirstChild(SOAPElement body, QName elementName)

Here you can find the source of getFirstChild(SOAPElement body, QName elementName)

Description

get First Child

License

Open Source License

Declaration

public static SOAPElement getFirstChild(SOAPElement body, QName elementName) 

Method Source Code

//package com.java2s;

import java.util.Iterator;
import javax.xml.namespace.QName;

import javax.xml.soap.SOAPElement;

public class Main {
    public static SOAPElement getFirstChild(SOAPElement body, QName elementName) {
        Iterator updateRequest = body.getChildElements(elementName);
        if (!updateRequest.hasNext())
            return null;
        return (SOAPElement) updateRequest.next();
    }/*from  w  w w.  j  a v a2s.  co  m*/
}

Related

  1. findNode(Node node, QName name)
  2. formatQName(QName qname)
  3. getClassForDatatype(QName qname)
  4. getClassName(QName qname)
  5. getDirectChildElementsOnly(QName qName, Element element)
  6. getKey(QName name)
  7. getLocalAddress(QName port)
  8. getMatchingExtensionProvider(Map extensionMap, String namespaceURI, String prefix, String localName)
  9. getMediaTypeFromAttributes(Map attributes)