diff --git a/gxml/DocumentType.vala b/gxml/DocumentType.vala new file mode 100644 index 0000000000000000000000000000000000000000..fd0fa11229e684e6f5fac98c335e2bf04b3427dd --- /dev/null +++ b/gxml/DocumentType.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 + * + * 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 . + * + * Authors: + * Daniel Espinosa + */ + +using Gee; + +/** + * Interface to represent Document type definitions. + */ +public interface GXml.DocumentType : Object, GXml.Node {} diff --git a/gxml/Makefile.am b/gxml/Makefile.am index 8bd10213e166010d073d3ed0be6d918498efd987..79008b19ff30e8457a39a87e5f23f96a735b7431 100644 --- a/gxml/Makefile.am +++ b/gxml/Makefile.am @@ -17,6 +17,7 @@ sources = \ Comment.vala\ CDATA.vala \ Document.vala \ + DocumentType.vala \ Element.vala \ Namespace.vala \ Node.vala \ diff --git a/gxml/libxml-DocumentType.vala b/gxml/libxml-DocumentType.vala index 909620b6f90d6b5b285fb3d86bb95327e1abbf8f..4d9afc660317c20a1e959da9d8f4bc1385cd7685 100644 --- a/gxml/libxml-DocumentType.vala +++ b/gxml/libxml-DocumentType.vala @@ -29,7 +29,7 @@ namespace GXml { * * For more, see: [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-412266927]] */ - public class xDocumentType : xNode { + public class xDocumentType : xNode, GXml.DocumentType { private Xml.Doc* doc; private Xml.Dtd *int_subset; private Xml.Dtd *ext_subset;