ws-jaxme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashika Umanga <>
Subject Unmarshall without namespace?
Date Wed, 21 May 2008 12:03:15 GMT
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"?>
configuration.xsd ">

JaxMe unmarshalls well.
But when my XML is like:

<?xml version="1.0" encoding="UTF-8"?>

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="" 
    <xs:complexType name="ftpsettingsType">
            <xs:element name="host" type="xs:string"/>

View raw message