summaryrefslogtreecommitdiffstats
path: root/parser/xml/nsISAXXMLFilter.idl
diff options
context:
space:
mode:
Diffstat (limited to 'parser/xml/nsISAXXMLFilter.idl')
-rw-r--r--parser/xml/nsISAXXMLFilter.idl29
1 files changed, 29 insertions, 0 deletions
diff --git a/parser/xml/nsISAXXMLFilter.idl b/parser/xml/nsISAXXMLFilter.idl
new file mode 100644
index 000000000..44b637db9
--- /dev/null
+++ b/parser/xml/nsISAXXMLFilter.idl
@@ -0,0 +1,29 @@
+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#include "nsISupports.idl"
+#include "nsISAXXMLReader.idl"
+
+/**
+ * Interface for an XML filter.
+ *
+ * An XML filter is like an XML reader, except that it obtains its
+ * events from another XML reader rather than a primary source like an
+ * XML document or database. Filters can modify a stream of events as
+ * they pass on to the final application.
+ */
+[scriptable, uuid(77a22cf0-6cdf-11da-be43-001422106990)]
+interface nsISAXXMLFilter : nsISAXXMLReader {
+
+ /**
+ * The parent reader.
+ *
+ * Allows the application to query the parent reader (which may be
+ * another filter). It is generally a bad idea to perform any
+ * operations on the parent reader directly: they should all pass
+ * through this filter.
+ */
+ attribute nsISAXXMLReader parent;
+};