diff options
Diffstat (limited to 'src/dom/xpathparser.cpp')
| -rw-r--r-- | src/dom/xpathparser.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dom/xpathparser.cpp b/src/dom/xpathparser.cpp index f3c57f6f5..18d62d40a 100644 --- a/src/dom/xpathparser.cpp +++ b/src/dom/xpathparser.cpp @@ -618,6 +618,12 @@ int XPathParser::lexicalScan() //# X P A T H G R A M M A R P A R S I N G
//#########################################################################
+
+void XPathParser::tokAdd(Token *tok)
+{
+ tokens.add(tok);
+}
+
/**
* [1] LocationPath ::=
* RelativeLocationPath
@@ -873,7 +879,7 @@ int XPathParser::getNodeTest(int p0, int depth) if (t.getType() == NAME_TEST)
{
p++;
- printf("xxx\n");
+ tokAdd(new TokNameTest(t.getStringValue()));
return p;
}
if (t.getType() == NODE_TYPE)
|
