load properties from xml into objects
- From: Petterson Mikael <mikael.petterson@xxxxxxxxxxxxxxx>
- Date: Wed, 25 Oct 2006 16:11:14 +0200
Hi,
I have an xml file with properties:
<?xml version="1.0" encoding="UTF-8"?>
<plugins>
<plugin>
<featureid>org.eclipse.platform</featureid>
<version>3.0.0</version>
<actiontype>install</actiontype>
<description></description>
<url>http://update.eclipse.org/updates/3.0</url>
</plugin>
<plugin>
<featureid>org.eclipse.check</featureid>
<version>3.1.0</version>
<actiontype>update</actiontype>
<description></description>
<url>http://update.eclipse.org/updates/3.1</url>
</plugin>
</plugins>
Plugin class
------------
ublic class Plugin {
private String featureId = null;
public Plugin(String featureId, String version, String actionType, String description, String url){
}
//Then apply get and set methods.
}
I need to read this file and create plugin objects containing this information. Any hints on how I can do this easily?
cheers,
//mikael
.
- Follow-Ups:
- Re: load properties from xml into objects
- From: Bart Cremers
- Re: load properties from xml into objects
- Prev by Date: Re: help,ImageIO
- Next by Date: Re: load properties from xml into objects
- Previous by thread: help,ImageIO
- Next by thread: Re: load properties from xml into objects
- Index(es):
Relevant Pages
|