GdomeDOMImplementation

Name

GdomeDOMImplementation -- 

Synopsis



struct      GdomeDOMImplementation;
GdomeDOMImplementation* gdome_DOMImplementation_mkref
                                            (void);
void        gdome_DOMImplementation_ref     (GdomeDOMImplementation *self,
                                             GdomeException *exc);
void        gdome_DOMImplementation_unref   (GdomeDOMImplementation *self,
                                             GdomeException *exc);
void*       gdome_DOMImplementation_query_interface
                                            (GdomeDOMImplementation *self,
                                             const char *interface,
                                             GdomeException *exc);
GdomeBoolean gdome_DOMImplementation_hasFeature
                                            (GdomeDOMImplementation *self,
                                             GdomeDOMString *feature,
                                             GdomeDOMString *version,
                                             GdomeException *exc);
GdomeDocumentType* gdome_DOMImplementation_createDocumentType
                                            (GdomeDOMImplementation *self,
                                             GdomeDOMString *qualifiedName,
                                             GdomeDOMString *publicId,
                                             GdomeDOMString *systemId,
                                             GdomeException *exc);
GdomeDocument* gdome_DOMImplementation_createDocument
                                            (GdomeDOMImplementation *self,
                                             GdomeDOMString *namespaceURI,
                                             GdomeDOMString *qualifiedName,
                                             GdomeDocumentType *doctype,
                                             GdomeException *exc);
GdomeDocument* gdome_DOMImplementation_parseFile
                                            (GdomeDOMImplementation *self,
                                             const char *uri,
                                             GdomeException *exc);
GdomeDocument* gdome_DOMImplementation_validateFile
                                            (GdomeDOMImplementation *self,
                                             const char *uri,
                                             GdomeException *exc);
GdomeBoolean gdome_DOMImplementation_saveFile
                                            (GdomeDOMImplementation *self,
                                             const char *filename,
                                             GdomeDocument *doc,
                                             GdomeException *exc);
void        gdome_DOMImplementation_freeDoc (GdomeDOMImplementation *self,
                                             GdomeDocument *doc,
                                             GdomeException *exc);

Description

Details

struct GdomeDOMImplementation

struct GdomeDOMImplementation {
	const GdomeDOMImplementationVtab *vtab; /* deprecated */
	GdomePrivateList *private;
};


gdome_DOMImplementation_mkref ()

GdomeDOMImplementation* gdome_DOMImplementation_mkref
                                            (void);

Constructor of the DOMImplementation interface.

Returns : the reference to the DOMImplementation structure.


gdome_DOMImplementation_ref ()

void        gdome_DOMImplementation_ref     (GdomeDOMImplementation *self,
                                             GdomeException *exc);

Increase the reference count of the DOMImplementation structure.

self : DOMImplementation Object ref
exc : Exception Object ref


gdome_DOMImplementation_unref ()

void        gdome_DOMImplementation_unref   (GdomeDOMImplementation *self,
                                             GdomeException *exc);

Decrease the reference count of the DOMImplementation. Free the structure if DOMImplementation will have zero reference.

self : DOMImplementation Object ref
exc : Exception Object ref


gdome_DOMImplementation_query_interface ()

void*       gdome_DOMImplementation_query_interface
                                            (GdomeDOMImplementation *self,
                                             const char *interface,
                                             GdomeException *exc);

NOT IMPLEMENTED

self : 
interface : 
exc : 


gdome_DOMImplementation_hasFeature ()

GdomeBoolean gdome_DOMImplementation_hasFeature
                                            (GdomeDOMImplementation *self,
                                             GdomeDOMString *feature,
                                             GdomeDOMString *version,
                                             GdomeException *exc);

Tests whether the DOM implementation implements a specific feature.

self : The DOMImplementation Object ref
feature : The name of the feature to test (case-insensitive).
version : This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return TRUE.
exc : Exception Object ref
Returns : TRUE if the feature is supported, FALSE otherwise.


gdome_DOMImplementation_createDocumentType ()

GdomeDocumentType* gdome_DOMImplementation_createDocumentType
                                            (GdomeDOMImplementation *self,
                                             GdomeDOMString *qualifiedName,
                                             GdomeDOMString *publicId,
                                             GdomeDOMString *systemId,
                                             GdomeException *exc);

Creates an empty DocumentType node. Entity declarations and notations are not made available. Entity reference expansions and default attribute additions do not occur. It is expected that a future version of the DOM will provide a way for populating a DocumentType.

GDOME_NAMESPACE_ERR: Raised if the qualifiedName is malformed.

self : The DOMImplementation Object ref
qualifiedName : The qualified name of the document type to be created
publicId : The external subset public identifier
systemId : The external subset system identifier
exc : The Exception Object ref
Returns : A new DocumentType node.


gdome_DOMImplementation_createDocument ()

GdomeDocument* gdome_DOMImplementation_createDocument
                                            (GdomeDOMImplementation *self,
                                             GdomeDOMString *namespaceURI,
                                             GdomeDOMString *qualifiedName,
                                             GdomeDocumentType *doctype,
                                             GdomeException *exc);

Creates an XML Document object of the specified type with its document element.

GDOME_NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is NULL, or if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace"

self : DOMImplementation Object ref
namespaceURI : The namespace URI of the document element to create
qualifiedName : The qualified name of the document element to be created
doctype : The type of document to be created or NULL
exc : Exception Object ref
Returns : a new Document node.


gdome_DOMImplementation_parseFile ()

GdomeDocument* gdome_DOMImplementation_parseFile
                                            (GdomeDOMImplementation *self,
                                             const char *uri,
                                             GdomeException *exc);

Parse a XML file and build the DOM tree.

self : DOMImplementation Object ref
uri : the XML file to load
exc : Exception Object ref
Returns : The Document Object of the created tree.


gdome_DOMImplementation_validateFile ()

GdomeDocument* gdome_DOMImplementation_validateFile
                                            (GdomeDOMImplementation *self,
                                             const char *uri,
                                             GdomeException *exc);

Parse and Valid a XML file and build the DOM tree.

self : DOMImplementation Object ref
uri : the XML file to load
exc : Exception Object ref
Returns : The Document Object of the created tree.


gdome_DOMImplementation_saveFile ()

GdomeBoolean gdome_DOMImplementation_saveFile
                                            (GdomeDOMImplementation *self,
                                             const char *filename,
                                             GdomeDocument *doc,
                                             GdomeException *exc);

Save the DOM tree of the Document specified to file.

self : DOMImplementation Object ref
filename : the XML filename to save
doc : the Document of which the tree is wanted to be saved
exc : Exception Object ref
Returns : FALSE in case of failure, TRUE otherwise.


gdome_DOMImplementation_freeDoc ()

void        gdome_DOMImplementation_freeDoc (GdomeDOMImplementation *self,
                                             GdomeDocument *doc,
                                             GdomeException *exc);

Free all objects and structures associated to the Document specified.

self : DOMImplementation Object ref
doc : The Document Object ref to be freed
exc : Exception Object ref