michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIAtom.idl" michael@0: #include "nsISupports.idl" michael@0: #include "nsIRDFDataSource.idl" michael@0: michael@0: [scriptable, uuid(8ae1fbf8-1dd2-11b2-bd21-d728069cca92)] michael@0: interface nsIRDFXMLSerializer : nsISupports michael@0: { michael@0: /** michael@0: * Initialize the serializer with the specified datasource. michael@0: * @param aDataSource the datasource from which data will be michael@0: * serialized michael@0: */ michael@0: void init(in nsIRDFDataSource aDataSource); michael@0: michael@0: /** michael@0: * Add the specified namespace to the serializer. michael@0: * @param aPrefix the attribute namespace prefix michael@0: * @param aURI the namespace URI michael@0: */ michael@0: void addNameSpace(in nsIAtom aPrefix, in DOMString aURI); michael@0: };