User Activity

  • Modified a comment on discussion Open Discussion on XML Unit

    In our project, we are comparing two XMLs and are selectively updating the control XML based on this comparison. In certain cases the Control/Test node is null (as fetched from the Comparison.Detail object). Manipulating / updating the Control/Test XML in such a case requires us to compute the Parent Node using some other library that requires the XPath String from the getParentXPath() method. This computation of the Parent Node node is turning out to be expensive as we need to do this for every...

  • Posted a comment on discussion Open Discussion on XML Unit

    Hi Stefan, We had another question for you. Currently, we can only access the XPath of the ParentNode of a given target node (computed from the Comparison.Detail object). Is there a way to get a reference to the ParentNode directly from the Comparison.Detail object? Or atleast in a future version of XMLUnit? Have opened a new Discussion Topic for this here. Please advise.

  • Posted a comment on discussion Open Discussion on XML Unit

    In our project, we are comparing two XMLs and are selectively updating the control XML based on this comparison. In certain cases the Control/Test node is null (as fetched from the Comparison.Detail object). Manipulating / updating the Control/Test XML in such a case requires us to compute the Parent Node using some other library that requires the XPath String from the getParentXPath() method. This computation of the Parent Node node is turning out to be expensive as we need to do this for every...

  • Posted a comment on discussion Open Discussion on XML Unit

    Hi Stefan, We tested using 2.6.3 and it worked fine. This time the XPaths were preserved despite using NodeFilters in the Difference Evaluator. Thank you very much for such an expedited response and fix! This has been very helpful.

  • Posted a comment on discussion Open Discussion on XML Unit

    The problem we are facing is that, after we filter out the node Parent with id = 0, when we compute the XPath of the nodes from the Diff object, we get XPath values that are different from the original XPath values (as per the unfiltered document object). The filtering Nodes option in XMLUnit is removing all the filtered nodes from the document object before starting to evaluate. So, when we access the test and control nodes in the diff objects from the difference iterator - the test and control...

  • Posted a comment on discussion Help on XML Unit

    CASE 1: Control: <grandparent> <parent id="0"> </parent> <parent id="1"> <child id="1"></child> <child id="2"></child> </parent> </grandparent> Test: <grandparent> <parent id="1"> <child id="1"></child> </parent> </grandparent> In the above example, assume <parent id="0"> tag has been ignored. And we need to update the control xml to match the test xml. So, in our case we will have to remove the tag - <child id="2"></child>.</parent> The diff builder gives - control node:<child id="2"></child> and...

  • Modified a comment on discussion Open Discussion on XML Unit

    CASE 1: Control: <grandparent> <parent id="0"> </parent> <parent id="1"> <child id="1"></child> <child id="2"></child> </parent> </grandparent> Test: <grandparent> <parent id="1"> <child id="1"></child> </parent> </grandparent> In the above example, assume <parent id="0"> tag has been ignored. And we need to update the control xml to match the test xml. So, in our case we will have to remove the tag - <child id="2"></child>.</parent> The diff builder gives - control node:<child id="2"></child> and...

  • Modified a comment on discussion Open Discussion on XML Unit

    CASE 1: Control: <grandparent> <parent id="0"> </parent> <parent id="1"> <child id="1"></child> <child id="2"></child> </parent> </grandparent> Test: <grandparent> <parent id="1"> <child id="1"></child> </parent> </grandparent> In the above example, assume <parent id="0"> tag has been ignored. And we need to update the control xml to match the test xml. So, in our case we will have to remove the tag - <child id="2"></child>.</parent> The diff builder gives - control node:<child id="2"></child> and...

View All

Personal Data

Username:
monisha123
Joined:
2018-10-03 14:28:38

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB