diff --git a/tools/qa/cppunit/test_xmlwalker.cxx b/tools/qa/cppunit/test_xmlwalker.cxx index d18f3f5db487..9ddc586ef410 100644 --- a/tools/qa/cppunit/test_xmlwalker.cxx +++ b/tools/qa/cppunit/test_xmlwalker.cxx @@ -78,6 +78,19 @@ void XmlWalkerTest::testReadXML() { CPPUNIT_ASSERT_EQUAL(std::string_view("adobe:ns:meta/"), aWalker.namespaceHref()); CPPUNIT_ASSERT_EQUAL(std::string_view("xx"), aWalker.namespacePrefix()); + + aWalker.children(); + while (aWalker.isValid()) + { + if (aWalker.name() == "namespace-child") + { + CPPUNIT_ASSERT_EQUAL(std::string_view("adobe:ns:meta/"), + aWalker.namespaceHref()); + CPPUNIT_ASSERT_EQUAL(std::string_view("xx"), aWalker.namespacePrefix()); + } + aWalker.next(); + } + aWalker.parent(); } aWalker.next(); } diff --git a/tools/qa/data/test.xml b/tools/qa/data/test.xml index c2736e8bb6ac..53944f767d73 100644 --- a/tools/qa/data/test.xml +++ b/tools/qa/data/test.xml @@ -9,5 +9,6 @@ +