2001-05-15 22:48:17 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License
|
|
|
|
* Version 1.1 (the "MPL"); you may not use this file except in
|
|
|
|
* compliance with the MPL. You may obtain a copy of the MPL at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* MPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the MPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Chris Waterson <waterson@netscape.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsIAtom.idl"
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "nsIRDFDataSource.idl"
|
|
|
|
|
2001-07-25 01:09:09 +04:00
|
|
|
[scriptable, uuid(8ae1fbf8-1dd2-11b2-bd21-d728069cca92)]
|
2001-05-15 22:48:17 +04:00
|
|
|
interface nsIRDFXMLSerializer : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Initialize the serializer with the specified datasource.
|
|
|
|
* @param aDataSource the datasource from which data will be
|
|
|
|
* serialized
|
|
|
|
*/
|
|
|
|
void init(in nsIRDFDataSource aDataSource);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Add the specified namespace to the serializer.
|
|
|
|
* @param aPrefix the attribute namespace prefix
|
|
|
|
* @param aURI the namespace URI
|
|
|
|
*/
|
|
|
|
void addNameSpace(in nsIAtom aPrefix, in DOMString aURI);
|
|
|
|
};
|