Is it possible to use a BeanReader to parse xml into a mapped property.
For example, I wish to parse the following xml:

<contextproperties>
                  <contextproperty
                    key= "java.naming.factory.initial"
                    value = "com.sun.jndi.ldap.LdapCtxFactory"/>
                  <contextproperty
                    key= "java.naming.provider.url"
                    value = "ldap://mudsharks:389/o=Verticon,c=US"/>
</contextproperties>

into a bean that has the following methods:
 
 public Properties getContextproperties(){
    return properties;
  }

  public void setContextproperty(String key, String value){
    properties.setProperty(key,value);
  }

  public String getContextproperty(String key){
    return properties.getProperty(key);
  }

thanks,
John

--
To unsubscribe, e-mail:   <mailto:commons-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-user-help@;jakarta.apache.org>

Reply via email to