title: XML Parse ERROR : org.xml.sax.SAXParseException
body: <p>here shows my error</p>
  
  <pre><code>[Fatal Error] designations.xml:1:15: Open quote is expected for attribute "{1}" associated with an  element type  "value".
  org.xml.sax.SAXParseException; systemId: file:/home/priyan/hr_openerp/XMLParserPro/src/com/priyan/designations.xml; lineNumber: 1; columnNumber: 15; Open quote is expected for attribute "{1}" associated with an  element type  "value".
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
      at com.priyan.XmlParserMain.main(XmlParserMain.java:20)
  </code></pre>
  
  <p>here shows my code</p>
  
  <pre><code>public class XmlParserMain {
      public static void main(String argv[]) {
          try {
              File fXmlFile = new File("/home/priyan/hr_openerp/XMLParserPro/src/com/priyan/designations.xml");
              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
              Document doc = dBuilder.parse(fXmlFile);//ERROR COMES IN THIS LINE
              doc.getDocumentElement().normalize();
              System.out.println("Root element :"+ doc.getDocumentElement().getNodeName());
              NodeList nList = doc.getElementsByTagName("staff");
              System.out.println("----------------------------");
              for (int temp = 0; temp &lt; nList.getLength(); temp++) {
                  Node nNode = nList.item(temp);
                  System.out.println("\nCurrent Element :" + nNode.getNodeName());
                  if (nNode.getNodeType() == Node.ELEMENT_NODE) {
                      Element eElement = (Element) nNode;
                      System.out.println("Designation: "+ eElement.getAttribute("OPTION"));
                  }
              }
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>
  
  <p>here is my xml file which i'm going to parse</p>
  
  <pre><code>&lt;designations&gt;
  &lt;OPTION value=3D777&gt;3D Graphic Designer&lt;/OPTION&gt;
  &lt;OPTION value=3D382&gt;Account Executive&lt;/OPTION&gt;
  &lt;OPTION value=3D108&gt;Account Manager&lt;/OPTION&gt;
  &lt;OPTION = value=3D1&gt;Accountant&lt;/OPTION&gt;
  &lt;OPTION = value=3D501&gt;Accountant Inventory to Accountant = Payble
  &lt;/OPTION&gt;
  &lt;OPTION value=3D304&gt;Accountant Payable&lt;/OPTION&gt;
  &lt;OPTION value=3D84&gt;Accounts Assistant&lt;/OPTION&gt;
  </code></pre>