Skip to content

Commit

Permalink
Minor improvement to SimpleOutputElement.getName()
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 5, 2024
1 parent 57d0c4b commit 35c687d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/ctc/wstx/sw/SimpleOutputElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ public String getNamespaceURI() {
}

public QName getName() {
if (mPrefix == null) {
return new QName(mURI, mLocalName);
}
return QNameCreator.create(mURI, mLocalName, mPrefix);
}

Expand Down

0 comments on commit 35c687d

Please sign in to comment.