mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-02 20:49:02 +00:00
Spring 3.0.4
This commit is contained in:
+2
-1
@@ -149,7 +149,8 @@ abstract class AbstractXMLStreamReader implements XMLStreamReader {
|
||||
public String getAttributeValue(String namespaceURI, String localName) {
|
||||
for (int i = 0; i < getAttributeCount(); i++) {
|
||||
QName name = getAttributeName(i);
|
||||
if (name.getNamespaceURI().equals(namespaceURI) && name.getLocalPart().equals(localName)) {
|
||||
if (name.getLocalPart().equals(localName) &&
|
||||
(namespaceURI == null || name.getNamespaceURI().equals(namespaceURI))) {
|
||||
return getAttributeValue(i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user