commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gao Di <jaoy...@yahoo.com.cn>
Subject Re: [betwixt] XML to java question
Date Sat, 28 Aug 2004 10:34:05 GMT
it can be done with digester,very easy.u should have
the get method in your bean

 --- gdansk@free.fr 的正文:
> Hi all,
> I want to passe from the following XML
> 
>  	<?xml version="1.0" encoding="ISO-8859-1"?>
>  	<!DOCTYPE form [ <!ELEMENT field (field*) >
> 	<!ATTLIST field code ID #REQUIRED>]>
>  	<form>
>  		<field code="txtNumClient">num1</field>
>  		<field code="chkSuiviICP">boolTrue</field>
> 	</form>
> 
> To the following java bean
> 
> 	public class Form {
> 		private String txtNumClient;
> 		private boolean chkSuiviICP;
> 		// ...
> 	}
> 
> How to use my ID attributes "code" from the XML to
> map my bean attributes in
> Java?
> Thank you for any suggestions.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
>  

_________________________________________________________
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