Hi everyone,

Just a quick question about the XMLAttributes class.

The other structures in the pipeline (QName, XMLString') are read-only
and I copy the contents elsewhere if I want to modify them;
e.g.

private final QName fQName = new QName();
...
protected QName normalize(QName qname) {
 String prefix = qname.prefix != null ? normalize(qname.prefix) : null;
 // etc
 fQName.setValues(prefix, localpart, rawname, uri);
 return fQName;
}


XMLAttributes, however, are read-write [1], so does this mean I should
modifying the existing XMLAttributes directly or do I still need to
copy the contents to another structure?

thanks,
Richard

[1] 
http://xerces.apache.org/xerces2-j/javadocs/xni/org/apache/xerces/xni/XMLAttributes.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to