Hi
I reviewed different questions related to XML, but I haven't found a solution to this. I already know how parse this type of xml where you have a repeated pattern:
PASSED 2015-06-18T10:10:21 2015-06-18T10:11:05 Rivera, Pedro 501 FAILED 2015-06-18T10:11:05 2015-06-18T10:12:30 Rivera, Pedro 502
The issue is how to parse some headers elements. In this case, I want the TEST, CONF, and DESC fields available to all RESULTS. In my current configuration, I have a line breaker that divides this xml log and makes each RESULTS an event which is what I'm looking for, but none of those events have information about the TEST, CONF, and DESC. I'm looking in a way to provide those fields to all RESULTS events.
AA-3ER34556 W34R-VDS Some test description... PASSED 2015-06-18T10:10:21 2015-06-18T10:11:05 Rivera, Pedro 501 FAILED 2015-06-18T10:11:05 2015-06-18T10:12:30 Rivera, Pedro 502
I understand that the best thing is to have the TEST, CONF and DESC elements inside of each RESULTS, but this a xml log and I cannot change it. Thanks
↧