IXMLParser::LoadDTD
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 Values
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
Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: xmlparser.h
See Also
Send Feedback on this topic to the authors