commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gda...@free.fr
Subject [betwixt] XML to java question
Date Fri, 27 Aug 2004 09:44:59 GMT
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


Mime
View raw message