From: Stefan B. <bo...@ap...> - 2008-03-12 05:26:02
|
On Wed, 12 Mar 2008, Stefan Bodewig <bo...@ap...> wrote: On Tue, 11 Mar 2008, slowjoe <slo...@gm...> wrote: >> If I get a message like "Expected node type '1' but was '8' - >> comparing <c0...> at /a0[1]/b0[1]/c0[1] to <!-- some comment --> >> at /a0[1]/b0[1]/comment()[1]", do I have to interpret this as >> there is no <c0...> in the test document that matches >> /a0[1]/b0[1]/c0[1] in the control document? > > It means "there is no c0 in the test document that matched the c0 of > the control document (after consulting the ElementQualifier to find > a matching node), but there is a comment node as child of b0 in the > test document at the position where c0 is in the control document". where "at the position" must be qualified with "after removing all nodes that have different matching nodes". Looking into the two XML files in your zip, the first c0 of your test is matched against the second of your control document, making the comment the first node that your control's c0[1] could be matched against. Stefan |