title: How to check with java, if a specific XML Element are existing in a XML Document
body: <p>I have the following question:</p>
  
  <p>I would like to check, whether a XML document contains a specific XML element. Is it possible to check, for example with a java method of a specific API, which returns a boolean value, wheter a specific XML element are available in a XML document?</p>
  
  <p>This is my XML document as example:</p>
  
  <pre><code>&lt;Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    &lt;ServiceRequest&gt;      
       &lt;RequestPayload&gt;
          &lt;LocationInformationRequest&gt;
              &lt;InitialInput&gt;
                  &lt;GeoRestriction&gt;
                      &lt;Area&gt;
                          &lt;PolylinePoint&gt;
                              &lt;Longitude&gt;11.0&lt;/Longitude&gt;
                              &lt;Latitude&gt;12.0&lt;/Latitude&gt;
                              &lt;Altitude&gt;13.0&lt;/Altitude&gt;
                          &lt;/PolylinePoint&gt;                            
                      &lt;/Area&gt;
                  &lt;/GeoRestriction&gt;
              &lt;/InitialInput&gt;
          &lt;/LocationInformationRequest&gt;
       &lt;/RequestPayload&gt;
    &lt;/ServiceRequest&gt;
  &lt;/Test&gt;
  </code></pre>
  
  <p>I need the information as a boolean value, wheter the XML element Area are existing or not existing. The XML Document is used in my own java classes as a type of string.</p>
  
  <p>Thanks for help !</p>