Good idea. Still, since most of the envelopes are simple, it looks easier to use the methods of the OMElement (getFirstChildWithName etc.). For complex once we can go for XPath.
Chamikara
On 4/28/06, Eran Chinthaka <[EMAIL PROTECTED]> wrote:
How abt validating based on XPath expressions for required values ?
-- Chinthaka
Chamikara Jayalath wrote:
> Hi All,
>
> I'm trying to fix some of the failing whitemesa interop tests in the
> integration/itest folder.
>
> It seems that the validation of the results is done by a XML comparison
> of a pre-saved result envelope (which are located in the
> integration/itest-resources/interop/whitemesa folder), with a newly
> obtained result. Is this way correct ? I mean the test cases would fail
> in any change of the result XML. (For e.g. if the result env. contain
> any additional headers/attributes or by a prefix change of any namespace).
>
> Chamikara
