source: trunk/Include/Classes/System/Xml/XmlDocument.ab@ 424

Last change on this file since 424 was 424, checked in by dai, 16 years ago

System.Xml関連のクラスを仮実装してみた(まだ満足な機能レベルではない…)。

File size: 1.4 KB
Line 
1Namespace System
2Namespace Xml
3
4/*!
5@brief XMLドキュメントを表す
6*/
7Class XmlDocument
8 Inherits XmlNode
9
10 Sub VerifyLocalName( name As String )
11 If Object.ReferenceEquals( name, Nothing ) Then
12 ' Throw System.ArgumentException()
13 ElseIf name.Length = 0 Then
14 ' Throw System.ArgumentException()
15 End If
16 End Sub
17
18Public
19
20 /*!
21 @brief コンストラクタ
22 */
23 Sub XmlDocument()
24 XmlNode( "", "#document", "", Nothing )
25 End Sub
26
27 /*!
28 @brief コンストラクタ
29 */
30 'Sub XmlDocument( xmlImplementation As XmlImplementation )
31 'End Sub
32
33 /*!
34 @brief コンストラクタ
35 */
36 'Sub XmlDocument( xmlNameTable As XmlNameTable )
37 'End Sub
38
39 /*!
40 @brief 指定した値を使用して、XmlDeclaration ノードを作成します。
41 */
42 Function CreateXmlDeclaration( version As String, encoding As String, standalone As String ) As XmlDeclaration
43 Return New XmlDeclaration( version ,encoding, standalone, This )
44 End Function
45
46 /*!
47 @brief 指定した名前を使用して要素を作成します。
48 */
49 Function CreateElement( name As String ) As XmlElement
50 VerifyLocalName( name )
51
52 Return New XmlElement( "", name, "", This )
53 End Function
54
55 /*!
56 @brief このノードとそのすべての子ノードを表すマークアップを取得します。
57 @return このノードとそのすべての子ノードを格納しているマークアップ。
58 */
59 Override Function OuterXml() As String
60 Return This.InnerXml
61 End Function
62
63End Class
64
65
66End Namespace
67End Namespace
Note: See TracBrowser for help on using the repository browser.