Note sure if anyone cares or not, but I'll throw this out and see... Took a stab at generating source from the ACORD TXLife and XMLife standards over the weekend with Castor.
Got the whole thing to compile, running was an issue. A couple things I saw: * TXLife classes choked on the input, so I went back and just created classes for XMLife to whittle the problem down. * XMLife initially complained that "Type Code out of range". In XMLife, they do a lot of this: <element1 tc="1">Text Desc of #1, this element allows 0,1,2 for tc</element1> <element2 tc="45">Text Desc of #45, this element allows 0-65 for tc</element2> I don't know if the xsd or Castor is at fault, but attributes need to qualified per element... * I added the number of Type Codes needed to get through the load of XMLife. At that point, I had 1500 classes, and the load from XML took 29s. DOM parse of same XML took 250 ms. Needless to say, at that speed, something else need to happen. I was going to create my own classes and write a map file, but XMLife needs collections, where the add needs to be .add(element attribute,element Object) and Castor does not yet support that. So, if someone wants to have the XSD and the classes I generated to look at, let me know. XMLife and TXLife may not be not the best use of Castor, but they are real world schema. Jim Jim Brain, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> "Researching tomorrow's decisions today." (319) 369-2070 (work) Systems Architect, Individual ITS, Life Investors Insurance Company of America ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
