txXMLParser.h (863B)
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef MITRE_XMLPARSER_H 7 #define MITRE_XMLPARSER_H 8 9 #include "txCore.h" 10 11 class txXPathNode; 12 13 namespace mozilla { 14 template <typename V, typename E> 15 class Result; 16 } // namespace mozilla 17 18 /** 19 * API to load XML files into DOM datastructures. 20 * Parsing is either done by expat, or by expat via the syncloaderservice 21 */ 22 23 /** 24 * Parse a document from the aHref location, with referrer URI on behalf 25 * of the document aLoader. 26 */ 27 mozilla::Result<txXPathNode, nsresult> txParseDocumentFromURI( 28 const nsAString& aHref, const txXPathNode& aLoader, nsAString& aErrMsg); 29 30 #endif