diff options
Diffstat (limited to 'Swiften/Parser')
-rw-r--r-- | Swiften/Parser/LibXMLParser.cpp | 6 | ||||
-rw-r--r-- | Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Swiften/Parser/LibXMLParser.cpp b/Swiften/Parser/LibXMLParser.cpp index 91ff72b..f43ed00 100644 --- a/Swiften/Parser/LibXMLParser.cpp +++ b/Swiften/Parser/LibXMLParser.cpp @@ -26,6 +26,12 @@ static void handleCharacterData(void* client, const xmlChar* data, int len) { } static void handleError(void*, const char*, ... ) { + /* + va_list args; + va_start(args, m); + vfprintf(stdout, m, args); + va_end(args); + */ } static void handleWarning(void*, const char*, ... ) { diff --git a/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp b/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp index 5a2be8d..81cc207 100644 --- a/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp +++ b/Swiften/Parser/PayloadParsers/UnitTest/RawXMLPayloadParserTest.cpp @@ -20,9 +20,9 @@ class RawXMLPayloadParserTest : public CppUnit::TestFixture PayloadParserTester parser(&testling); String xml = - "<foo foo-attr=\"foo-val\" xmlns=\"foo-ns\">" - "<bar bar-attr=\"bar-val\" xmlns=\"bar-ns\"/>" - "<baz baz-attr=\"baz-val\" xmlns=\"baz-ns\"/>" + "<foo foo-attr=\"foo-val\" xmlns=\"ns:foo\">" + "<bar bar-attr=\"bar-val\" xmlns=\"ns:bar\"/>" + "<baz baz-attr=\"baz-val\" xmlns=\"ns:baz\"/>" "</foo>"; CPPUNIT_ASSERT(parser.parse(xml)); |