summaryrefslogtreecommitdiff
path: root/tests/xmltest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/xmltest.cpp')
-rw-r--r--tests/xmltest.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/xmltest.cpp b/tests/xmltest.cpp
deleted file mode 100644
index dedc83f..0000000
--- a/tests/xmltest.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <utilxml.h>
-#include <iostream>
-
-using namespace sword;
-using namespace std;
-
-int main(int argc, char **argv) {
- XMLTag x((argc > 1) ? argv[1] : "<verse osisID=\"John.1.1\" type=\"test type\" yeah = \"stuff\" />");
-// x.setAttribute("newOne", "oneValue");
- cout << x.toString() << "\n";
- cout << "Tag name: [" << x.getName() << "]\n";
- StringList attributes = x.getAttributeNames();
- for (StringList::iterator it = attributes.begin(); it != attributes.end(); it++) {
- const char *name = it->c_str();
- cout << " - attribute: [" << name << "] = [";
- cout << x.getAttribute(name) << "]\n";
- }
- cout << " isEmpty: " << x.isEmpty() << "\n";
- cout << " isEndTag: " << x.isEndTag() << "\n";
- cout << "\n";
-}