VB 2010(47)XNamespaceオブジェクト

XNamespaceクラス

https://docs.microsoft.com/zh-cn/dotnet/api/system.xml.linq.xnamespace?view=netframework-4.8

XML名前空間を表します。このクラスは継承できません。

Dim root As New XElement( "Company"、_
                                           New XAttribute( "Type"、 "Publisher")、_
                                           New XElement( "CompanyName"、 "Wrox")、_
                                           New XElement( "CompanyAddress"、_
                                                        New XElement( "Street "、" 111 River Street ")、_
                                                        New XElement(" city "、" Hoboken ")、_
                                                        New XElement(" State "、" NJ ")、_
                                                        New XElement(" Counttr "、"USA ")、_
                                                        新しいXElement(" Zip "、" 07030-5774 ")))
        Console.WriteLine(root.ToString)
        Console.WriteLine( "Prss ENTER to exit")
        Console.Read()

146の元の記事を公開 賞賛0 訪問2742

おすすめ

転載: blog.csdn.net/ngbshzhn/article/details/105575057