Hi guys,
I generated binding classes using an XSD give below.
When my XML file have the namespace and qualified names the
unmarshalling works well.But I need to get rid of the namespaces ,so
when i delete them jaxme gives me the error
*"javax.xml.bind.UnmarshalException: The encoding declaration is
required in the text declaration."*
ie.when my XMLis like:
"<?xml version="1.0" encoding="UTF-8"?>
<ns1:configuration
xmlns:ns1="http://idre.argosypublishing.com/configuration/model"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://idre.argosypublishing.com/configuration/model
configuration.xsd ">
<ftp-settings>
<host>util.ftp.aeturnum.com</host>
<port>21</port>"
JaxMe unmarshalls well.
But when my XML is like:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<ftp-settings>
<host>util.ftp.aeturnum.com</host>
<port>21</port>
JaxMe give above error!
How to ignore the namespaces and qualified names?I want my XML file to
be simple as latter one.
thanks in advance
My XSD is like follows:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://idre.argosypublishing.com/configuration/model"
targetNamespace="http://idre.argosypublishing.com/configuration/model"
attributeFormDefault="unqualified">
<xs:complexType name="ftpsettingsType">
<xs:sequence>
<xs:element name="host" type="xs:string"/>
.
.
.