I am trying to browse a xml file with JDOM. and here the xml file :
<?xml version="1.0" encoding= "UTF-8" ?>
<definitions name="Web Service Mediation"
targetNamespace="http://ift.tt/1NGgtzo Service Mediation"
xmlns="http://ift.tt/1EPZZ8g online" >
<binding name="ConnTWS" type="wsdlns:SimplePortType">
<soap:binding style="rpc" transport="http://ift.tt/LcBaVu"/>
<operation name="soap">
<soap:operation soapAction="http://ift.tt/1NGgvXU"/>
</operation>
</binding>
</definitions>
But when I run the class .java, I would have the following errors:
org.jdom.input.JDOMParseException: Error on line 6 of document file:/C:/Users/samsung/Desktop/copie%20de%20workspace/PluginFinal/plugin/eclipsehelio%20avec%20atl%20-%20Copie/workspace/Jdom2/Grammaire.xml: The prefix "soap" for element "soap:binding" is not bound.
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
at JDOM.main(JDOM.java:24)
Caused by: org.xml.sax.SAXParseException: The prefix "soap" for element "soap:binding" is not bound.
Anyone can help to correct the xml file. Thank you very much .
No comments:
Post a Comment