1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3
* The contents of this file are subject to the Mozilla Public License
4
* Version 1.1 (the "MPL"); you may not use this file except in
5
* compliance with the MPL. You may obtain a copy of the MPL at
6
* http://www.mozilla.org/MPL/
8
* Software distributed under the MPL is distributed on an "AS IS" basis,
9
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
10
* for the specific language governing rights and limitations under the
13
* The Initial Developer of this code under the MPL is Netscape
14
* Communications Corporation. Portions created by Netscape are
15
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
19
* Chris Waterson <waterson@netscape.com>
22
#include "nsISupports.idl"
23
#include "nsIRDFDataSource.idl"
24
#include "nsIStreamListener.idl"
27
[scriptable, uuid(1831dd2e-1dd2-11b2-bdb3-86b7b50b70b5)]
28
interface nsIRDFXMLParser : nsISupports
31
* Create a stream listener that can be used to asynchronously
33
* @param aSink the RDF datasource the will receive the data
34
* @param aBaseURI the base URI used to resolve relative
35
* references in the RDF/XML
36
* @return an nsIStreamListener object to handle the data
38
nsIStreamListener parseAsync(in nsIRDFDataSource aSink, in nsIURI aBaseURI);
41
* Parse a string of RDF/XML
42
* @param aSink the RDF datasource that will receive the data
43
* @param aBaseURI the base URI used to resolve relative
44
* references in the RDF/XML
45
* @param aSource a UTF8 string containing RDF/XML data.
47
void parseString(in nsIRDFDataSource aSink, in nsIURI aBaseURI, in AUTF8String aSource);