title: Xml namspace parsing using JDOM
body: <p>I am trying to read following XML String response using JDOM but have no idea how to parse? can you please help me?
  I am trying following codes to parse:</p>
  
  <pre><code>org.jdom.Element rootNode =  document.getRootElement();
  
  List&lt;?&gt; list =  rootNode.getChildren("QuotationResponse");
  for(int i = 1 ; i &lt;= list.size() ; i++) {
     Element node = (Element) list.get(i);
     String documentDate = node.getAttribute("documentDate");
     String transactionType = node.getAttribute("transactionType");
  }
  </code></pre>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;S:Body&gt;&lt;VtEnvelope 
  
  xmlns="un:vtinc:o-series:tps:6:0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
  &lt;Login&gt;&lt;UserName&gt;user&lt;/UserName&gt;
  &lt;Password&gt;abcd&lt;/Password&gt;
  &lt;/Login&gt;
  &lt;QuotationResponse documentDate="2011-03-24" transactionType="SALE"&gt;&lt;Customer&gt;&lt;Destination taxAreaId="1230000"&gt;&lt;City&gt;Dallas&lt;/City&gt;
  &lt;MainDivision&gt;TX&lt;/MainDivision&gt;
  &lt;SubDivision&gt;Chester&lt;/SubDivision&gt;
  &lt;PostalCode&gt;75038&lt;/PostalCode&gt;
  &lt;Country&gt;USA&lt;/Country&gt;
  &lt;/Destination&gt;
  &lt;/Customer&gt;
  &lt;SubTotal&gt;1000.0&lt;/SubTotal&gt;
  &lt;Total&gt;1060.0&lt;/Total&gt;
  &lt;TotalTax&gt;60.0&lt;/TotalTax&gt;
  &lt;LineItem lineItemId="1" lineItemNumber="1" taxDate="2013-04-25"&gt;&lt;Product productClass="product class attribute value"&gt;product code value&lt;/Product&gt;
  &lt;Quantity&gt;1.0&lt;/Quantity&gt;
  &lt;FairMarketValue&gt;1000.0&lt;/FairMarketValue&gt;
  &lt;UnitPrice&gt;1000.0&lt;/UnitPrice&gt;
  &lt;ExtendedPrice&gt;1000.0&lt;/ExtendedPrice&gt;
  &lt;Taxes taxResult="TAXABLE" taxType="SALES" situs="DESTINATION" taxCollectedFromParty="BUYER"&gt;&lt;Jurisdiction jurisdictionLevel="STATE" jurisdictionId="3051"&gt;Texas&lt;/Jurisdiction&gt;
  &lt;CalculatedTax&gt;60.0&lt;/CalculatedTax&gt;
  &lt;EffectiveRate&gt;0.06&lt;/EffectiveRate&gt;
  &lt;Taxable&gt;1000.0&lt;/Taxable&gt;
  &lt;Imposition impositionType="General Sales and Use Tax"&gt;Sales and Use Tax&lt;/Imposition&gt;
  &lt;TaxRuleId&gt;121&lt;/TaxRuleId&gt;
  &lt;/Taxes&gt;
  &lt;TotalTax&gt;60.0&lt;/TotalTax&gt;
  &lt;/LineItem&gt;
  &lt;/QuotationResponse&gt;
  &lt;/VtEnvelope&gt;&lt;/S:Body&gt;&lt;/S:Envelope&gt;
  </code></pre>