Compartir a través de


IXMLParser::LoadDTD

4/8/2010

This method fetches an external document type definition (DTD).

Syntax

HRESULT LoadDTD( 
  const WCHAR * pszBaseUrl,
  const WCHAR * pszRelativeUrl
);

Parameters

  • pszBaseUrl
    [in] The base URL of the DTD to be fetched.
  • pszRelativeUrl
    [in] The relative URL of the DTD to be fetched.

Return Value

This function returns S_OK if the function is successful, otherwise an error code is returned.

Remarks

After XML parsing has begun, it might be beneficial to fetch an external document type definition (DTD). For example, if the XML document contains <!DOCTYPE sample SYSTEM "somedtd.dtd">, load that DTD by calling IXMLParser::LoadDTD on the parser. The node factory will then be called to handle all the DTD nodes just as it does for a DTD internal subset.

Requirements

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

See Also

Reference

IXMLParser