gecko-dev/rdf/base/idl/nsIRDFXMLSerializer.idl

43 строки
1.4 KiB
Plaintext

/* -*- 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"
[scriptable, uuid(8ae1fbf8-1dd2-11b2-bd21-d728069cca92)]
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);
};