[gxml] Added CDATA interface



commit c17888d041b061005cd49b4ffa9e4f65f36f08df
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue May 12 11:54:38 2015 -0500

    Added CDATA interface

 gxml/CDATA.vala               |   28 ++++++++++++++++++++++++++++
 gxml/Makefile.am              |    1 +
 gxml/libxml-CDATASection.vala |    2 +-
 3 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/gxml/CDATA.vala b/gxml/CDATA.vala
new file mode 100644
index 0000000..a694a18
--- /dev/null
+++ b/gxml/CDATA.vala
@@ -0,0 +1,28 @@
+/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 0; tab-width: 2 -*- */
+/* ObjectModel.vala
+ *
+ * Copyright (C) 2015  Daniel Espinosa <esodan gmail com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ *      Daniel Espinosa <esodan gmail com>
+ */
+
+using Gee;
+
+/**
+ * CDATA sections in XML documents.
+ */
+public interface GXml.CDATA : Object, GXml.Text {}
diff --git a/gxml/Makefile.am b/gxml/Makefile.am
index af97ed5..8bd1021 100644
--- a/gxml/Makefile.am
+++ b/gxml/Makefile.am
@@ -15,6 +15,7 @@ sources = \
        namespace-info.vala \
        Attribute.vala \
        Comment.vala\
+       CDATA.vala \
        Document.vala \
        Element.vala \
        Namespace.vala \
diff --git a/gxml/libxml-CDATASection.vala b/gxml/libxml-CDATASection.vala
index ad625b9..e7cb4ec 100644
--- a/gxml/libxml-CDATASection.vala
+++ b/gxml/libxml-CDATASection.vala
@@ -36,7 +36,7 @@ namespace GXml {
         * {{{ <![CDATA[Here contains non-XML data, like code, or something that requires a lot of special 
XML entities.]]>.}}}
         * It is a type of Text node. For more, see: 
[[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-667469212]]
         */
-       public class CDATASection : xText {
+       public class CDATASection : xText, GXml.CDATA {
                internal CDATASection (Xml.Node *cdata_node, xDocument doc) {
                        base (cdata_node, doc);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]