commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gao Di <jaoy...@yahoo.com.cn>
Subject [Digester]some problem when parsing xml
Date Thu, 26 Aug 2004 03:26:25 GMT
i have defined 2 javabeans,device.java and
subdevice.java,and i have the folllowing xml file:
1.
<OBJ>
  <device name="n1"/>
</OBJ>
......

2.
<OBJ>
  <device name="n1">
    <subdevice name="m1"/>
  </device>
</OBJ>
......

on the first format,i want to parse the xml content to
device.java,while on the second format,i want to fill
the xml content to subdevice.java,but the question is
i don't know which format i will meet,it appears
randomly,what should i do to distinguish them?


_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message