GXmlImplementation

GXmlImplementation — Describes the features available in this implementation of the DOM.

Functions

Types and Values

Description

This can be accessed from a GXmlxDocument object. Provided a possible feature and the feature's version, it can tell the client whether it is here implemented.

Version: DOM Level 1 Core

URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490

Functions

gxml_implementation_create_document ()

GXmlxDocument *
gxml_implementation_create_document (GXmlImplementation *self,
                                     const gchar *namespace_uri,
                                     const gchar *qualified_name,
                                     GXmlxDocumentType *doctype);

Creates a xDocument according to this GXmlImplementation.

Version: DOM Level 3 Core URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocument

Parameters

self

the GXmlImplementation instance

 

namespace_uri

 .

URI for the namespace in which this xDocument belongs, or NULL

.

[in][allow-none]

qualified_name

 .

A qualified name for the xDocument, or NULL

.

[in][allow-none]

doctype

 .

The type of the document, or NULL

.

[in][allow-none]

Returns

The new document


gxml_implementation_has_feature ()

gboolean
gxml_implementation_has_feature (GXmlImplementation *self,
                                 const gchar *feature,
                                 const gchar *version);

Reports whether we support a feature at a given version level.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#method-hasFeature

TODO: implement more of this, using libxml2's parser.h's xmlGetFeature, xmlHasFeature, etc.

Parameters

self

the GXmlImplementation instance

 

feature

 .

A feature we might support, usually something like 'xml' or 'html'

.

[in]

version

 .

A possible version of the feature, or NULL if any version will do

.

[in][allow-none]

Returns

true if we support the specified feature, false otherwise

Types and Values

GXML_TYPE_IMPLEMENTATION

#define GXML_TYPE_IMPLEMENTATION (gxml_implementation_get_type ())

The type for GXmlImplementation.


struct GXmlImplementation

struct GXmlImplementation {
	GObject parent_instance;
	GXmlImplementationPrivate * priv;
};

Describes the features available in this implementation of the DOM.

This can be accessed from a GXmlxDocument object. Provided a possible feature and the feature's version, it can tell the client whether it is here implemented.

Version: DOM Level 1 Core

URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-102161490


struct GXmlImplementationClass

struct GXmlImplementationClass {
	GObjectClass parent_class;
};

The class structure for GXML_TYPE_IMPLEMENTATION. All the fields in this structure are private and should never be accessed directly.

Members