Is it possible to parse a loaded HTML file to extract some data from it? I’m trying to do so using ofxXmlSettings - I assume this would work since HTML is structurally the same as XML, but I’m getting an error when I try to pushTag into the body of the html.
here’s my (pseudo) code:
ofxXmlSettings xmlData; xmlData.loadFromBuffer(response.data); //response loaded using ofLoadURLAsync xmlData.pushTag("html"); //this works xmlData.pushTag("body"); //this is where I get the error: ofxXmlSettings: pushTag(): tag "body" not found
Any idea why this isn’t working, or what an alternative approach might be would be greatly appreciates thanks!