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