I have a used JDO to query a DB and return Objects in this format, but
it is possible to make the sub-tags be attributes instead? 

I want to go from this: 

  <?xml version="1.0" encoding="UTF-8" ?> 
  <download xsi:type="java:showplan.model.Download">
    <name>Presentation Template</name> 
    <sort-order>1</sort-order> 
    <type>pdf</type> 
    <step>1000</step> 
    <link>/files/PS1/PS1.pdf</link> 
    <id>1000</id> 
  </download>

To this:

  <download xsi:type="java:showplan.model.Download" name="Presentation
Template" sort-order="1" type="pdf" step="1000"
link="/files/PS1/PS1.pdf" id="1000" />

Is this still considered well-formed XML? 

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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

Reply via email to