Skip to content
Permalink
Browse files

#7744 XML parser fix (element body extraction)

  • Loading branch information
serge-rider committed Feb 7, 2020
1 parent d0f95c8 commit fb277d3791912bfc85015e1ec78dc0de1c5a232f
Showing with 1 addition and 9 deletions.
  1. +1 −9 bundles/org.jkiss.utils/src/org/jkiss/utils/xml/XMLUtils.java
@@ -104,15 +104,7 @@ public static String getChildElementBody(Element element,

@Nullable
public static String getElementBody(Element element) {
org.w3c.dom.Node valueNode = element.getFirstChild();
if (valueNode == null) {
return null;
}
if (valueNode.getNodeType() == org.w3c.dom.Node.TEXT_NODE) {
return valueNode.getNodeValue();
} else {
return null;
}
return element.getTextContent();
}

// Get list of all child elements of specified node

0 comments on commit fb277d3

Please sign in to comment.
You can’t perform that action at this time.