Shahid4

xml.d edit 4

May 14th, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.63 KB | None | 0 0
  1. --- a/shd_xml.d 2012-05-14 23:00:08.153996173 +0100
  2. +++ b/shd_xml.d 2012-05-14 23:00:26.477995528 +0100
  3. @@ -1016,6 +1016,12 @@
  4.                 }
  5.                 res[j] = compareXPathPredicate( elem1, comparator, elem2, getAttribute(elem1), caseSen );
  6.             }
  7. +           else if (elem1.front == '.' && elem1.length == 1) {
  8. +               if( compareXPathPredicate( elem1, comparator, elem2, this.getCData, caseSen )) {
  9. +                   res[j] = true;
  10. +               }
  11. +               debug(xpath)if(!res[j]) logline("did not match this node\n");
  12. +           }
  13.             else if (true) {
  14.                 // assume elem1 is a tag
  15.                 //if (!comparator.length || !elem2.length) throw new XPathError("Is this really an Error?");
Advertisement
Add Comment
Please, Sign In to add comment