Skip to content

Commit b4df6eb

Browse files
committed
fix XMLWriter: write a DOM element with no local name
1 parent 3126b86 commit b4df6eb

File tree

1 file changed

+1
-0
lines changed
  • net.lecousin.core/src/main/java/net/lecousin/framework/xml

1 file changed

+1
-0
lines changed

net.lecousin.core/src/main/java/net/lecousin/framework/xml/XMLWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ public ISynchronizationPoint<IOException> addComment(CharSequence comment) {
276276
/** Write the given DOM element. */
277277
public ISynchronizationPoint<IOException> write(Element element) {
278278
String name = element.getLocalName();
279+
if (name == null) name = element.getNodeName();
279280
String uri = element.getNamespaceURI();
280281
String prefix = element.getPrefix();
281282
Map<String, String> namespaces = null;

0 commit comments

Comments
 (0)