1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #include <anna/html/Parser.hpp>
14 const html::Node* html::Parser::getHead()
15 throw(RuntimeException) {
19 const html::Node* root = getRoot();
22 throw RuntimeException("anna::html::Parser::apply was not called", ANNA_FILE_LOCATION);
24 return a_head = root->find("head");
27 const html::Node* html::Parser::getBody()
28 throw(RuntimeException) {
32 const html::Node* root = getRoot();
35 throw RuntimeException("anna::html::Parser::apply was not called", ANNA_FILE_LOCATION);
37 return a_body = root->find("body");