load properties from xml into objects



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
.



Relevant Pages

  • Re: force cast of object to mytype...
    ... Public Function Host_GetObject(ByVal FonctionName As String, ByVal ParamArray Parameters() As Object) As Object ... The ParamArray causes an object array to be implicitly created, unless you explicitly pass an array of object. ... i have made an app based on plugin architecture in VB.NET. ...
    (microsoft.public.dotnet.languages.vb)
  • Creating an argument list for sprintf
    ... I have a program that uses a scripting language that does not support formating ... I am writing a plugin to add the ... Where fmt is the string the user provided to be used as format, ...
    (comp.lang.c)
  • Programmatically determine if an assembly is compiled in debug or release mode?
    ... which mode a plugin is compiled. ... class and override it in the concrete plugin classes. ... string Version ... public virtual string DebugOrRelease { ...
    (microsoft.public.dotnet.framework)
  • [ANN] Hex Plugin
    ... Hex Plugin for REALbasic 5 and higher is a small plugin with only two ... You can give the plugin a string containing an unsigned ... decimal integer of essentially unlimited length and the plugin will ...
    (comp.lang.basic.realbasic)
  • Re: Try Finally...
    ... > Ask why you need string info to handle an exception... ... calling a plugin could produce one of three things: ... 32 or over, it was cast to an object reference), or a string message ...
    (comp.lang.pascal.delphi.misc)