Is it possible to parse namespaces and schema attributes with Digester? I need to parse XML documents that use xsi:type to indicate the type of the element. An example is shown below. (Note that Message / CompositeMessage form a "Composite" pattern that allow specification of recursive message structures.)
<message xmlns="http://www.user.org/user-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CompositeMessageType"> <message xsi:type="CreateUserMessageType"> <user> <username>user1</username> <password>user1</password> </user> </message> <message xsi:type="DeleteUserMessageType"> <username>user2</username> </message> </message> 1) Is it possible to parse this with Digester? 2) If not, are there any other packages you would recommend? 3) What package would you recommend to serialize my Java objects in to such documents? So far I have tried to use Castor's XML mapping feature, but running into problems trying to make it understand xsi:type. Thanks. Naresh