1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
* The contents of this file are subject to the Mozilla Public
3
* License Version 1.1 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of
5
* the License at http://www.mozilla.org/MPL/
7
* Software distributed under the License is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the License for the specific language governing
10
* rights and limitations under the License.
12
* The Original Code is TransforMiiX XSLT processor.
14
* The Initial Developer of the Original Code is The MITRE Corporation.
15
* Portions created by MITRE are Copyright (C) 1999 The MITRE Corporation.
17
* Portions created by Keith Visco as a Non MITRE employee,
18
* (C) 1999 Keith Visco. All Rights Reserved.
25
#ifndef MITRE_XMLPARSER_H
26
#define MITRE_XMLPARSER_H
28
#include "baseutils.h"
38
* API to load XML files into DOM datastructures.
39
* Parsing is either done by expat, or by expat via the synchloaderservice
43
* Parse a document from the aHref location, with referrer URI on behalf
44
* of the document aLoader.
47
txParseDocumentFromURI(const nsAString& aHref, const nsAString& aReferrer,
48
const txXPathNode& aLoader, nsAString& aErrMsg,
49
txXPathNode** aResult);
53
* Parse a document from the given stream
56
txParseFromStream(istream& aInputStream, const nsAString& aUri,
57
nsAString& aErrorString, txXPathNode** aResult);