I am getting the error "The prefix "c" for element "c:de" is not bound." Any clue will be very appreciated.
javax.xml.parsers.DocumentBuilderFactory fac = new org.apache.xerces.jaxp.DocumentBuilderFactoryImpl( ); fac.setNamespaceAware(true); org.w3c.dom.Document d = null; javax.xml.parsers.DocumentBuilder builder = fac.newDocumentBuilder(); d = builder.parse("C:/my_folder/my_file.xml"); //the error rises in this line my_file.xml is exactly and complete pasted here.
<?xml version="1.0" encoding="UTF-8"?> <c:de format="N" lengthField="0" maxLength="012" minLength="012" name="AMOUNT, TRANSACTION" number="004" subFields="00"/>