Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/org/apache/xml/serializer/ToStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -3020,6 +3020,14 @@ public boolean addAttributeAlways(
index = m_attributes.getIndex(rawName);
else {
index = m_attributes.getIndex(uri, localName);
/*
* SAX parser sometimes returns attributes with no
* uri and localName defined. In such situation
* attribute may be already defined but it is
* not accessible querying by uri and localName
*/
if(index < 0)
index = m_attributes.getIndex(rawName);
}

if (index >= 0)
Expand Down