I'm having a problem with getting an attribute from a Configuration object. The attribute is optional and so my code looks like this:

m_className = config.getAttribute( "type", "" );

So I'm expecting at least a blank string to be returned and looking at AbstractConfiguration this should be the case, but I'm getting a ConfigurationException saying that "No attribute named "type" is associated with the configuration element "value" at null:105:67

The config snippet looks like:
<value business-object="person" null="disallow" />

Where the business-object attribute can be substituted for the 'type' attribute.
I'm using avalon-framework-4.1.3.jar and avalon-excalibur-4.0b4.jar.

Any thoughts?

Thanks,
Robert



--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to