Hi,

I've just been handed a project that needs to support pulling in and
manipulating an xml response from a legacy service. I've got most everything
bound in, but I'm running into a few problems and I don't know how to
resolve them. For the record I'm using castor 1.1 and the ant sourcegen
tools to build the classes.

sample xml looks like this

<playlist id=123>
 <id>123</id>
  <items videos=1 playlists=1>
     <video id=124>
        <id>124</id>
     </video>
     <playlist id=125>
        <id>125</id>
     </playlist>
  </items>
</playlist>

Do source generation with the id attribute in place in the schema causes a
conflict error. Big surprise, right? Is there anyway to resolve this?
Preferably I'd like to map to the same member in the class, but every time I
try to do "/[EMAIL PROTECTED]" it fails.

Is there a clean way to populate the videos/playlists count attributes with
the ArrayList<video>.size()?

Thanks

Reply via email to