TiXmlNode* parent = doc.FirstChild("parent"); for (TiXmlNode* child = parent->FirstChild(); child != nullptr; child = child->NextSibling()) { if (child->Type() == TiXmlNode::TINYXML_ELEMENT) { std::cout << child->Value() << std::endl; } }In this example, we first load an XML document using TinyXML and get a pointer to the "parent" node. We then loop through each child node of the parent node using the FirstChild() and NextSibling() methods of TiXmlNode. We filter out non-element nodes using the Type() method, and print the name of each child element using the Value() method. This code uses the TinyXML package and library.