Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit beed2c2

Browse filesBrowse files
exclude nested elements in XMLtools.getElementNode
This ensures that the description of a child suite is not used for a parent suite when the parent suite does not have a description. This was the root cause of issue #126.
1 parent ffb8ba5 commit beed2c2
Copy full SHA for beed2c2

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎sqldev/src/main/java/org/utplsql/sqldev/model/XMLTools.java

Copy file name to clipboardExpand all lines: sqldev/src/main/java/org/utplsql/sqldev/model/XMLTools.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ public Node getElementNode(final Node node, final String tagName) {
130130
Node resultNode = null;
131131
if (node instanceof Element) {
132132
NodeList list = ((Element) node).getElementsByTagName(tagName);
133-
if (list != null && list.getLength() > 0) {
133+
if (list != null && list.getLength() > 0 && list.item(0).getParentNode() == node) {
134134
resultNode = list.item(0);
135135
}
136136
}
137137
return resultNode;
138138
}
139-
139+
140140
public DocumentBuilder createDocumentBuilder() {
141141
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
142142
try {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.