XmlReader.ReadStartElement メソッド ()
アセンブリ: System.Xml (system.xml.dll 内)




Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


XmlReader.ReadStartElement メソッド

名前 | 説明 |
---|---|
XmlReader.ReadStartElement () | 現在のノードが要素で、リーダーを次のノードに進めるかどうかを確認します。 .NET Compact Framework によってサポートされています。 |
XmlReader.ReadStartElement (String) | 現在のコンテンツ ノードが、指定した Name を持つ要素で、リーダーを次のノードに進めることを確認します。 .NET Compact Framework によってサポートされています。 |
XmlReader.ReadStartElement (String, String) | 現在のコンテンツ ノードが、指定した LocalName と NamespaceURI を持つ要素で、リーダーを次のノードに進めることを確認します。 .NET Compact Framework によってサポートされています。 |

XmlReader.ReadStartElement メソッド (String, String)
アセンブリ: System.Xml (system.xml.dll 内)

Dim instance As XmlReader Dim localname As String Dim ns As String instance.ReadStartElement(localname, ns)



Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


XmlReader.ReadStartElement メソッド (String)
アセンブリ: System.Xml (system.xml.dll 内)




Using reader As XmlReader = XmlReader.Create("book3.xml") ' Parse the XML document. ReadString is used to ' read the text content of the elements. reader.Read() reader.ReadStartElement("book") reader.ReadStartElement("title") Console.Write("The content of the title element: ") Console.WriteLine(reader.ReadString()) reader.ReadEndElement() reader.ReadStartElement("price") Console.Write("The content of the price element: ") Console.WriteLine(reader.ReadString()) reader.ReadEndElement() reader.ReadEndElement() End Using
using (XmlReader reader = XmlReader.Create("book3.xml")) { // Parse the XML document. ReadString is used to // read the text content of the elements. reader.Read(); reader.ReadStartElement("book"); reader.ReadStartElement("title"); Console.Write("The content of the title element: "); Console.WriteLine(reader.ReadString()); reader.ReadEndElement(); reader.ReadStartElement("price"); Console.Write("The content of the price element: "); Console.WriteLine(reader.ReadString()); reader.ReadEndElement(); reader.ReadEndElement(); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

