summaryrefslogtreecommitdiff
path: root/project2/commonObjects.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-25 14:53:40 +0000
committerrandomdan <randomdan@localhost>2011-02-25 14:53:40 +0000
commit8faab38b589a99b316ba41960ad8ce43b4339387 (patch)
treed79f16f16ecb190edf1cac3d8d2f554e403632f3 /project2/commonObjects.cpp
parentFinally convert ytfs to use boost stuff (untested, but it does build) (diff)
downloadproject2-8faab38b589a99b316ba41960ad8ce43b4339387.tar.bz2
project2-8faab38b589a99b316ba41960ad8ce43b4339387.tar.xz
project2-8faab38b589a99b316ba41960ad8ce43b4339387.zip
Build a common base for loading p2 xml scripts with proper error checking
Extend cgiAppEngine to be able to return data documents specifying an error (requires Apache 2.2.16 and to have filter-errordocs set) Allow cgi requests to return a default document, suitable for 'yes, I did that' type responses Updates to GentooBrowse to use these features
Diffstat (limited to 'project2/commonObjects.cpp')
-rw-r--r--project2/commonObjects.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/project2/commonObjects.cpp b/project2/commonObjects.cpp
index fcf479c..b6a3b7d 100644
--- a/project2/commonObjects.cpp
+++ b/project2/commonObjects.cpp
@@ -1,7 +1,6 @@
#include "commonObjects.h"
#include "xmlObjectLoader.h"
-#include <libxml++/parsers/domparser.h>
-#include <libxml/xinclude.h>
+#include "xmlScriptParser.h"
CommonObjects::~CommonObjects()
{
@@ -22,8 +21,7 @@ CommonObjects::getSource(const std::string & name) const
CommonObjects::DataSources::index<bySOName>::type::const_iterator
CommonObjects::loadDataSource(const std::string & name) const
{
- xmlpp::DomParser xml("datasources/" + name + ".xml");
- while (xmlXIncludeProcessFlags(xml.get_document()->cobj(), XML_PARSE_NOXINCNODE) > 0);
+ XmlScriptParser xml("datasources", name, true);
LoaderBase loader("http://project2.randomdan.homeip.net", true);
loader.supportedStorers.insert(Storer::into(&datasources));