commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naresh Bhatia" <>
Subject [Digester] Support for namespaces and schema
Date Mon, 24 Feb 2003 16:25:31 GMT
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 xsi:type="CreateUserMessageType">
  <message xsi:type="DeleteUserMessageType">

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.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message