title: SAXParseException error in XML Parsing
body: <p>Using web service call ,I got the following response from server. Now i need to parse this response, Extract all field values and store it in String values</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ecomexpress-objects version="1.0"&gt;&lt;object pk="1" model="awb"&gt;
      &lt;field type="BigIntegerField" name="awb_number"&gt;102019265&lt;/field&gt;
      &lt;field type="CharField" name="orderid"&gt;8008444&lt;/field&gt;
      &lt;field type="FloatField" name="actual_weight"&gt;2&lt;/field&gt;
      &lt;field type="CharField" name="origin"&gt;DELHI-DSW&lt;/field&gt;
      &lt;field type="CharField" name="destination"&gt;Mumbai - BOW&lt;/field&gt;
      &lt;field type="CharField" name="current_location_name"&gt;Mumbai - BOW&lt;/field&gt;
      &lt;field type="CharField" name="current_location_code"&gt;BOW&lt;/field&gt;
      &lt;field type="CharField" name="customer"&gt;Ecom Express Private Limited - 32012&lt;/field&gt;
      &lt;field type="CharField" name="consignee"&gt;BEECHAND VERMA&lt;/field&gt;
      &lt;field type="CharField" name="pickupdate"&gt;22-Jan-2014&lt;/field&gt;
      &lt;field type="CharField" name="status"&gt;Undelivered&lt;/field&gt;
      &lt;field type="CharField" name="tracking_status"&gt;Undelivered&lt;/field&gt;
      &lt;field type="CharField" name="reason_code"&gt;221 - Consignee Refused To Accept&lt;/field&gt;
      &lt;field type="CharField" name="reason_code_description"&gt;Consignee Refused To Accept&lt;/field&gt;
      &lt;field type="CharField" name="reason_code_number"&gt;221 &lt;/field&gt;
      &lt;field type="CharField" name="receiver"&gt;&lt;/field&gt;
      &lt;field type="CharField" name="expected_date" &gt;15-Feb-2014&lt;/field&gt;
      &lt;field type="CharField" name="last_update_date" &gt;&lt;/field&gt;
      &lt;field type="CharField" name="delivery_date" &gt;&lt;/field&gt;
      &lt;field type="CharField" name="ref_awb" &gt;703063993&lt;/field&gt;
      &lt;field type="CharField" name="rts_shipment" &gt;0&lt;/field&gt;
      &lt;field type="CharField" name="system_delivery_update" &gt;&lt;/field&gt;
      &lt;field type="CharField" name="rts_system_delivery_status" Undelivered&lt;/field&gt;
      &lt;field type="CharField" name="rts_reason_code_number"&gt;777&lt;/field&gt;
      &lt;field type="CharField" name="rts_last_update"&gt;22 Jan, 2014, 12:44 &lt;/field&gt;
      &lt;field type="CharField" name="pincode" &gt;400037&lt;/field&gt;
      &lt;field type="CharField" name="city" &gt;MUMBAI&lt;/field&gt;
      &lt;field type="CharField" name="state" &gt;Maharashtra&lt;/field&gt;
      &lt;field name="scans"&gt;
  &lt;/ecomexpress-objects&gt;
  </code></pre>
  
  <p>If i try the following code to parse </p>
  
  <pre><code>    String xml=result.toString();
      try{
         DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
          DocumentBuilder db = dbf.newDocumentBuilder();
          InputSource is;
          is = new InputSource(new StringReader(xml));
          Document doc = db.parse(is);
          NodeList nodelist = doc.getChildNodes();
         }
        catch (SAXException e) {
          e.printStackTrace();
      } catch (ParserConfigurationException e) {
          e.printStackTrace();
      } catch (MalformedURLException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  </code></pre>
  
  <p>I get the following error. </p>
  
  <pre><code>    org.xml.sax.SAXParseException: expected: /field read: ecomexpress-objects (position:END_TAG &lt;/ecomexpress-objects&gt;@1:1917 in java.io.StringReader@39978dff) 
  </code></pre>
  
  <p>I need to store all field values in respective string variables</p>