IXMLNodeSource::SetFactory

4/8/2010

This method plugs in a custom IXMLNodeFactory interface. The IXMLNodeSource interface (or the parser) delegates to this IXMLNodeFactory for each element it finds in the XML source. Use IXMLNodeSource::GetFactory to retrieve the custom IXMLNodeFactory later.

Syntax

HRESULT SetFactory( 
  IXMLNodeFactory * pNodeFactory
);

Parameters

  • pNodeFactory
    [in] Pointer to the IXMLNodeFactory interface to be plugged in

Return Value

This function returns S_OK if the function is successful. Otherwise, an error code is returned (E_FAIL).

Requirements

Header xmlparser.h
Library xmlparser.lib
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also

Reference

IXMLNodeSource
IXMLNodeFactory
IXMLNodeSource::GetFactory