Hi,
I am trying to get the element from a Document object using Domparser by it seems that the element id is not recognized. How can I get a single element from my XML file using getElementById() method? Thank you for your help in advance.
#include "Poco/AutoPtr.h"
#include "Poco/DOM/Document.h"
#include "Poco/DOM/Element.h"
using Poco::AutoPtr;
using Poco::XML::Element;
using Poco::XML::Document;
AutoPtr<Document> pDoc = new Document;
pDoc->createElement("root");
pRoot->setAttribute("id", "0");
AutoPtr<Element> pRoot = pDoc->getElementById("0", "id");Users browsing this forum: No registered users and 1 guest