Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Getting Castor to use SAX

  1. #11
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    After some digging into the Castor codebase, I think I've figured out why this is the case. While marshalling to DOM nodes, castor uses a SAX2DOMHandler to publish SAX events into the DOM tree. This handler is a SAX 1 DocumentHandler, which has no native namespace support. There is a DocumentHandlerAdapter, which tries to correct this, but obviously that is failing.

    Now that I've found the reason, it should be relatively easy to fix it, and get Castor working with SAAJ. Once again, it just shows that XML parsing in Java is a mess .
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  2. #12
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    I've created an issue for this, which has been fixed. Using Castor with SAAJ should now work, let me know if it does for you.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •