1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/xml/public/nsISAXXMLFilter.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#include "nsISupports.idl" 1.10 +#include "nsISAXXMLReader.idl" 1.11 + 1.12 +/** 1.13 + * Interface for an XML filter. 1.14 + * 1.15 + * An XML filter is like an XML reader, except that it obtains its 1.16 + * events from another XML reader rather than a primary source like an 1.17 + * XML document or database. Filters can modify a stream of events as 1.18 + * they pass on to the final application. 1.19 + */ 1.20 +[scriptable, uuid(77a22cf0-6cdf-11da-be43-001422106990)] 1.21 +interface nsISAXXMLFilter : nsISAXXMLReader { 1.22 + 1.23 + /** 1.24 + * The parent reader. 1.25 + * 1.26 + * Allows the application to query the parent reader (which may be 1.27 + * another filter). It is generally a bad idea to perform any 1.28 + * operations on the parent reader directly: they should all pass 1.29 + * through this filter. 1.30 + */ 1.31 + attribute nsISAXXMLReader parent; 1.32 +};