LK-Test-Solutions / OpenTDK

The open tool development kit provides java libraries for efficient implementation of data processing tools. Primarily the libraries have been build to close gaps within the process of test automation, but they can be helpful for implementing any application that needs to collect data from different sources, transform the data and generate output in different formats (textual, graphical etc.).
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

XMLDataContainer.get without children #43

Open SoccerFive18 opened 1 year ago

SoccerFive18 commented 1 year ago

The XMLDataContainer.get method only allows to retrieve values from children.

<Parent name="parent">
 <Child>value</Child>
</Parent>

But having a direct value in an XML tag does not work:

<Parent name="parent">Value</Parent>

The get method correctly identifies the "Value" by calling xEdit.getElementsByXPath(frImpl.getValue()) but iterates over the children afterwards and only adds elements to the result list if there are some.