Andy Clark wrote:
> 
> [EMAIL PROTECTED] wrote:
> > what do you think about mapping of setAttribute in javax.xml.parsers
> > .DocumentBuilderFactory to
> > setFeature and setProperty in org.apache.xerces.parsers.DOMParser and then
> 
> I asked Edwin Goei (of Sun) about this and he's getting a
> ruling on whether this was the intented behavior for the
> setAttribute method in the API.

The DocumentBuilderFactory#[gs]etAttribute() methods are implementation
dependent so you can define them to do whatever you want them to do. 
However, I think we should try to avoid possible "name" argument clashes
with other implementations, which should easily be possible.

So the setAttribute() method takes an Object as a value similar to
DOMParser#setProperty().  So the setAttribute() can be directly mapped
to setProperty.  There needs to be some additional processing done to
map DOMParser#setFeature() though if we wanted to expose this.

-Edwin

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

Reply via email to