~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/extensions/transformiix/source/xml/parser/txXMLParser.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/
 
6
 * 
 
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.
 
11
 * 
 
12
 * The Original Code is TransforMiiX XSLT processor.
 
13
 * 
 
14
 * The Initial Developer of the Original Code is The MITRE Corporation.
 
15
 * Portions created by MITRE are Copyright (C) 1999 The MITRE Corporation.
 
16
 *
 
17
 * Portions created by Keith Visco as a Non MITRE employee,
 
18
 * (C) 1999 Keith Visco. All Rights Reserved.
 
19
 * 
 
20
 * Contributor(s): 
 
21
 * Tom Kneeland
 
22
 *    -- original author.
 
23
 */
 
24
 
 
25
#ifndef MITRE_XMLPARSER_H
 
26
#define MITRE_XMLPARSER_H
 
27
 
 
28
#include "baseutils.h"
 
29
 
 
30
#ifdef TX_EXE
 
31
#include <iostream.h>
 
32
#endif
 
33
 
 
34
class nsAString;
 
35
class txXPathNode;
 
36
 
 
37
/**
 
38
 * API to load XML files into DOM datastructures.
 
39
 * Parsing is either done by expat, or by expat via the synchloaderservice
 
40
 */
 
41
 
 
42
/**
 
43
 * Parse a document from the aHref location, with referrer URI on behalf
 
44
 * of the document aLoader.
 
45
 */
 
46
extern "C" nsresult
 
47
txParseDocumentFromURI(const nsAString& aHref, const nsAString& aReferrer,
 
48
                       const txXPathNode& aLoader, nsAString& aErrMsg,
 
49
                       txXPathNode** aResult);
 
50
 
 
51
#ifdef TX_EXE
 
52
/**
 
53
 * Parse a document from the given stream
 
54
 */
 
55
extern "C" nsresult
 
56
txParseFromStream(istream& aInputStream, const nsAString& aUri,
 
57
                  nsAString& aErrorString, txXPathNode** aResult);
 
58
#endif
 
59
#endif