hello,

in order to generate Java classes from XML schema I use Castor.

These classes have unmarshalling methods for loading and parsing XML
files.

In JDK I'd use Xerces as SAX DOM implementation.

As I understood Android it comes with its own implementation.

Trying to unmarshal the XML file in Android this Exception is thrown:

org.exolab.castor.xml.MarshalException: The 'namespace-prefix' feature
is not supported while the 'namespaces' feature is enabled.

Things are working fine in JDK.

So I think its thing of Androids SAX DOM implementation.

Can you please help me how to get rid of this error?

Here's a part of the XSD:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified" attributeFormDefault="unqualified">
        <xs:element name="sport">...

And here's part of the XML:

<?xml version="1.0" encoding="UTF-8"?>
<sports xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="sports.xsd">
        <sport id="soccer">...

Thanks for help.

Greetings,
DaRolla


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to