Unicorn XML Toolkit
Version 1.50.00

Namespace Xml
Class CDomBase

class CDomBase: public CInterface {
public:
    CDomBase(CToolkitBase *pToolkitBase);
    ~CDomBase();
public:
    Dom::XDocument CreateDocument(const WCHAR *pszClass=_W(""));
    XDomReader CreateReader(Dom::INode *pNode=NULL);
    XDomWriter CreateWriter(Dom::INode *pNode=NULL);
    };
typedef XInterface<CDomBase> XDomBase;

Encapsulates toolkit functionality related to DOM/XDM documents, readers and writers.

Since:
1.50.00
Version:
1.50.00
Author:
Alexey Gokhberg
See Also:
CToolkitBase, CDomReader, CDomWriter, Dom::INode
Constructor/Destructor Summary
CDomBase (CToolkitBase *pToolkitBase);
����������Constructs the toolkit DOM base.
~CDomBase ();
����������Destroys the toolkit DOM base.

Function Summary
Dom::XDocument CreateDocument (const WCHAR *pszClass=_W(""));
����������Creates a new DOM/XDM document.
XDomReader CreateReader (Dom::INode *pNode=NULL);
����������Creates a new DOM reader.
XDomWriter CreateWriter (Dom::INode *pNode=NULL);
����������Creates a new DOM writer.

Constructor/Destructor Detail

CDomBase

CDomBase(CToolkitBase *pToolkitBase);

Constructs the toolkit DOM base.

Parameters:
pToolkitBase - the master toolkit base

~CDomBase

~CDomBase();

Destroys the toolkit DOM base.

Function Detail

CreateDocument

Dom::XDocument CreateDocument(const WCHAR *pszClass=_W(""));

Creates a new DOM/XDM document.

The document class must be specified to indicate the document model. Supported values are "DOM" for DOM and "XPath" for XDM. The default (empty) value indicates DOM.

The newly created document has initially empty content.

Parameters:
pszClass - the class specifying the document model
Returns:
the newly created document

CreateReader

XDomReader CreateReader(Dom::INode *pNode=NULL);

Creates a new DOM reader.

Parameters:
pNode - the optional root of the sub-tree in the DOM document serving as the source for this DOM reader. If this parameter is set to NULL , the node must be specified using the SetNode method before starting the DOM reader.
Returns:
the newly created DOM reader

CreateWriter

XDomWriter CreateWriter(Dom::INode *pNode=NULL);

Creates a new DOM writer.

Parameters:
pNode - the node serving as the parent for a sub-tree, which the DOM writer should build. If this parameter is set to NULL , the node must be specified using the SetNode method before starting the source stream of SAX content events.
Returns:
the newly created DOM writer

Unicorn XML Toolkit
Version 1.50.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.