michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef MITRE_XMLPARSER_H michael@0: #define MITRE_XMLPARSER_H michael@0: michael@0: #include "txCore.h" michael@0: michael@0: class txXPathNode; michael@0: michael@0: /** michael@0: * API to load XML files into DOM datastructures. michael@0: * Parsing is either done by expat, or by expat via the syncloaderservice michael@0: */ michael@0: michael@0: /** michael@0: * Parse a document from the aHref location, with referrer URI on behalf michael@0: * of the document aLoader. michael@0: */ michael@0: extern "C" nsresult michael@0: txParseDocumentFromURI(const nsAString& aHref, const txXPathNode& aLoader, michael@0: nsAString& aErrMsg, txXPathNode** aResult); michael@0: michael@0: #endif