commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Wood <jas...@auto-trol.com>
Subject [Betwixt] question
Date Tue, 04 Jan 2005 15:58:43 GMT
New user.

I want to produce the following xml and can't figure out how to accomplish
this using .betwixt files. Any help would be appreciated. I read the getting
started page (http://jakarta.apache.org/commons/betwixt/guide/start.html),
Example 1 is what I want the example to look like. This is what betwixt
generated by default (nice!)...

<?xml version='1.0' ?>
  <item>
    <attributes>
      <MyAttribute>
        <id>0</id>
        <subs>
          <MyIntSub>
            <id>0</id>
          </MyIntSub>
          <MyIntSub>
            <id>0</id>
          </MyIntSub>
          <MyIntSub>
            <id>0</id>
          </MyIntSub>
        </subs>
      </MyAttribute>
    </attributes>
    <id>0</id>
  </item>

but I want to remove the the underlined elements to produce...

<?xml version='1.0' ?>
  <item>
    <MyAttribute>
    <id>0</id>
      <MyIntSub>
        <id>0</id>
      </MyIntSub>
      <MyIntSub>
        <id>0</id>
      </MyIntSub>
      <MyIntSub>
        <id>0</id>
      </MyIntSub>
    </MyAttribute>
    <id>0</id>
  </item>

the betwixt files...

 <<Sub.betwixt>>  <<IntSub.betwixt>>  <<Attribute.betwixt>>

the java files...

 <<Sub.java>>  <<IntSub.java>>  <<Item.java>>  <<Attribute.java>>

Thanks
Jason




Mime
View raw message