windows-nt/Source/XPSP1/NT/admin/activec/locparser/xml_supp.h
2020-09-26 16:20:57 +08:00

29 lines
905 B
C++

//------------------------------------------------------------------------------
//
// File: xml_supp.h
// Copyright (C) 1995-2000 Microsoft Corporation
// All rights reserved.
//
// Purpose:
// defines helper functions for parsing XML document
//
//------------------------------------------------------------------------------
typedef std::map<int, std::wstring> CStringMap;
typedef std::map<std::wstring, CStringMap> CStringTableMap;
HRESULT OpenXMLStringTable(LPCWSTR lpstrFileName, IXMLDOMNode **ppStringTableNode);
HRESULT SaveXMLContents(LPCWSTR lpstrFileName, IXMLDOMNode *pStringTableNode);
HRESULT GetXMLElementContents(IXMLDOMNode *pNode, CComBSTR& bstrResult);
HRESULT ReadXMLStringTables(IXMLDOMNode *pNode, CStringTableMap& mapResult);
HRESULT UpdateXMLString(IXMLDOMNode *pNode, const std::wstring& strGUID, DWORD ID,
const std::wstring& strNewVal);