commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Upadhyay <gaurav.upadhyaya.i...@gmail.com>
Subject [CONFIGURATION] Create configuration out of XML String
Date Thu, 08 Oct 2009 11:08:54 GMT

I have a xml string and need to use commons configuration with it. 

How can i create a configuration on it?

Example:

String test = "<?xml version=\"1.0\"
encoding=\"utf-8\"?><username><firstname>Tom</firstname>
<lastname>Jay</lastname></username>"

and i just need to create a configuration and access :

config.getString("firstname");
-- 
View this message in context: http://www.nabble.com/-CONFIGURATION--Create-configuration-out-of-XML-String-tp25802002p25802002.html
Sent from the Commons - User mailing list archive at Nabble.com.


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


Mime
View raw message