Title: RE: [castor-dev] JAXB

Hi!
  First JAXB version was designed using DTD instead XSDs. So,
types for all the attributes were Strings. Obviously, the code
to use this JDO was really dirty because you need to convert types.
  Now, they are trying to use schemes, but this new version doesn't
support DTD any more. And the code that you can reach is pretty
dirty because it's similar to SAX. You need to ask for instances
(instead asking for Strings like SAX does).
  Here is an example:

     List mainList = xml.getContent();
        Object mainTag;
        for (ListIterator i = mainList.listIterator(); i.hasNext();) {
            mainTag = i.next();
            if (mainTag instanceof Header) {
                ok = process( (Header)mainTag );
                ....  // continue the process
 
  An finally, is a beta, first release, early access or
use-programmer-as-tester edition.


-----Mensaje original-----
De: Darrel Riekhof
Para: [EMAIL PROTECTED]
Enviado el: 01/11/2002 03:50 p.m.
Asunto: [castor-dev] JAXB

Does Castor support the JAXB API, and if not, will it?

What are some of the advantages Castor has over the built in XML
marshalling/unmarshalling features in the 1.4 JDK?

Darrel

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to