Leaked source code of windows server 2003
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.
|
|
//------------------------------------------------------------------------------
//
// 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);
|