Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
905 B

  1. //------------------------------------------------------------------------------
  2. //
  3. // File: xml_supp.h
  4. // Copyright (C) 1995-2000 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // Purpose:
  8. // defines helper functions for parsing XML document
  9. //
  10. //------------------------------------------------------------------------------
  11. typedef std::map<int, std::wstring> CStringMap;
  12. typedef std::map<std::wstring, CStringMap> CStringTableMap;
  13. HRESULT OpenXMLStringTable(LPCWSTR lpstrFileName, IXMLDOMNode **ppStringTableNode);
  14. HRESULT SaveXMLContents(LPCWSTR lpstrFileName, IXMLDOMNode *pStringTableNode);
  15. HRESULT GetXMLElementContents(IXMLDOMNode *pNode, CComBSTR& bstrResult);
  16. HRESULT ReadXMLStringTables(IXMLDOMNode *pNode, CStringTableMap& mapResult);
  17. HRESULT UpdateXMLString(IXMLDOMNode *pNode, const std::wstring& strGUID, DWORD ID,
  18. const std::wstring& strNewVal);