|
TNB Library
|
XML ドキュメント管理クラス [詳解]
#include <TnbXml.h>
公開メンバ関数 | |
| CXmlDocumentFragment | CreateDocumentFragment (void) const |
| [作成] DocumentFragment作成. [詳解] | |
| CXmlDocument (void) | |
| コンストラクタ [詳解] | |
| CXmlNodeList | GetChildNodes (void) const |
| [取得] 子ノード群取得. [詳解] | |
| CXmlNodeList | GetElementsByTagName (LPCTSTR name) const |
| [検索] 条件一致ノード検索. [詳解] | |
| DWORD | GetLastError (void) const |
| [取得] エラーコード [詳解] | |
| CStr | GetLastErrorString (void) const |
| [取得] エラーコード文字列 [詳解] | |
| CXmlProcessingInstruction | GetProcessingInstruction (void) const |
| [取得] ProcessingInstruction ノード取得. [詳解] | |
| CXmlElement | GetRootElement (void) const |
| [取得] Element ノード取得. [詳解] | |
| void | Initialize (LPCTSTR lpszRootElementName, LPCTSTR lpszComment=NULL, LPCTSTR lpszTarget=NULL, LPCTSTR lpszData=NULL) |
| [操作] 初期化 [詳解] | |
| void | InitializeXml (LPCTSTR lpszRootElementName, LPCTSTR lpszComment=NULL) |
| [操作] 初期化 [詳解] | |
| void | Invalid (void) |
| [設定] 無効化. [詳解] | |
| bool | IsValid (void) const |
| [確認] 有効確認. [詳解] | |
| bool | LoadFile (LPCTSTR lpszFileName) |
| [設定] XMLファイル読込 [詳解] | |
| bool | LoadXml (LPCTSTR lpszXml) |
| [設定] XMLテキスト読込 [詳解] | |
| bool | SaveFile (LPCTSTR lpszFileName, bool boIsUtf8=true) const |
| [作成] XMLファイル作成 [詳解] | |
| bool | SaveFileEx (LPCTSTR lpszFileName, bool boIsUtf8=true) const |
| [作成] XMLファイル作成 [詳解] | |
| CXmlNodeList | SelectNodes (LPCTSTR expression) const |
| [検索] 条件一致ノード検索. [詳解] | |
| CXmlNode | SelectSingleNode (LPCTSTR expression) const |
| [検索] 条件一致ノード検索. [詳解] | |
| CStr | ToString (void) const |
| [作成] XMLテキスト作成 [詳解] | |
| virtual | ~CXmlDocument (void) |
| デストラクタ [詳解] | |
XML ドキュメント管理クラス
XML の管理クラスの一つ。XMLパーサのクラスをラップしていています。 本クラスのインスタンスでは ドキュメント一つを管理します。
| _com_error | 失敗するとスローされます。 |
| CXmlDocument | ( | void | ) |
|
virtual |
| CXmlDocumentFragment CreateDocumentFragment | ( | void | ) | const |
| CXmlNodeList GetChildNodes | ( | void | ) | const |
| CXmlNodeList GetElementsByTagName | ( | LPCTSTR | name | ) | const |
| CXmlProcessingInstruction GetProcessingInstruction | ( | void | ) | const |
| CXmlElement GetRootElement | ( | void | ) | const |
| void Initialize | ( | LPCTSTR | lpszRootElementName, |
| LPCTSTR | lpszComment = NULL, |
||
| LPCTSTR | lpszTarget = NULL, |
||
| LPCTSTR | lpszData = NULL |
||
| ) |
| void InitializeXml | ( | LPCTSTR | lpszRootElementName, |
| LPCTSTR | lpszComment = NULL |
||
| ) |
| bool IsValid | ( | void | ) | const |
| bool LoadFile | ( | LPCTSTR | lpszFileName | ) |
| bool LoadXml | ( | LPCTSTR | lpszXml | ) |
| bool SaveFile | ( | LPCTSTR | lpszFileName, |
| bool | boIsUtf8 = true |
||
| ) | const |
| bool SaveFileEx | ( | LPCTSTR | lpszFileName, |
| bool | boIsUtf8 = true |
||
| ) | const |
| CXmlNodeList SelectNodes | ( | LPCTSTR | expression | ) | const |
| CXmlNode SelectSingleNode | ( | LPCTSTR | expression | ) | const |