P6R::p6IDOMXML Interface Reference

P6R's interface of the DOM parser. More...

#include <p6domxml.h>

Inherits P6R::p6ICom.

List of all members.

Public Member Functions

virtual P6R::P6INT32 addref ()=0
 This method increases the reference count of the component instance by one.
virtual P6R::P6ERR createNodeSet (p6IXMLNode *pNode, p6IDOMNodeset **pSet)=0
 Given a single p6IXNLNode create and return a p6IDOMNodeset.
virtual P6R::P6ERR getRootNode (p6IXMLNode **pNode)=0
 There is always a root node to the DOM XML tree.
virtual P6R::P6ERR initialize (P6DOMXMLFLAGS flags, p6IDataStream *pErrorResult)=0
 Sets up the component to run properly.
virtual P6R::P6ERR isAncestorOf (const P6WCHAR *pName, P6UINT32 nameLength, const P6WCHAR *pURI, P6UINT32 uriLength, p6IXMLNode *pNode, p6IXMLNode **pFoundAncestor)=0
 Is there an XML node with pName that is an ancestor somewhere in the tree of the pNode XML node.
virtual P6R::P6ERR isParentOf (const P6WCHAR *pName, P6UINT32 nameLength, const P6WCHAR *pURI, P6UINT32 uriLength, p6IXMLNode *pNode, p6IXMLNode **pFoundAncestor)=0
 Is there an XML node with pName that is the immediate parent of the pNode XML node.
virtual P6R::P6ERR moveSubTree (p6IXMLNode *pParent, p6IXMLNode *pMoveNode)=0
 Move a subtree from the source DOM tree component into the destination DOM tree.
virtual P6R::P6ERR output (p6IDataStream *pStream, P6DOMOUTPUT flags)=0
 Serialize the DOM document into the pStream parameter in one of the supported formats: { XML, JSON }.
virtual P6R::P6ERR parse (p6IDataStream **pInData)=0
 This method returns an XML stream for the caller to stream the XML into.
virtual P6R::P6ERR preserveSpace (P6WCHAR *pElementName, P6UINT32 elemLength, P6WCHAR *pNamespaceURI, P6UINT32 uriLength)=0
 This method allows the application to define which XML elements should not have unnecessary white space stripped away from around the node.
virtual P6R::P6ERR queryInterface (const P6R::IID &iid, P6R::P6VOID **ppIface)=0
 This method queries the component for a specific interface.
virtual P6R::P6INT32 release ()=0
 This method decrements a components reference count.
virtual P6R::P6ERR resetPreserveSpace ()=0
 Deletes all previous values defined by calls to preserveSpace() method.
virtual P6R::P6ERR resetStripSpace ()=0
 Deletes all previous values defined by calls to stripSpace() method.
virtual P6R::P6ERR setJSONParser (p6IJSONReader *pReader)=0
 The caller can use their own implementation of the p6IJSONReader interface.
virtual P6R::P6ERR setSAXParser (p6ISAX2XMLReader *pReader)=0
 The caller can use their own implementation of the p6ISAX2XMLReader interface.
virtual P6R::P6ERR stripSpace (P6WCHAR *pElementName, P6UINT32 elemLength, P6WCHAR *pNamespaceURI, P6UINT32 uriLength)=0
 This method allows the application to define which XML elements should have unnecessary white space stripped off before they are placed into the DOM tree.

Detailed Description

P6R's interface of the DOM parser.

This interface is used by our XPath 2.0 interface P6R::p6IXpathExpression. This DOM component can represent both XML and JSON as a tree of nodes using XPath expressions and the following set of methods to access those nodes. An application could walk the DOM tree by using the functions in this interface along with the functions in the P6R::p6IXMLNode interface (e.g., getRootNode(), nextChild()). While such navigation is possible the use of XPATH and XSLT is easier and recommended.

Definition at line 82 of file p6domxml.h.


The documentation for this interface was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.