سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد استفاده از MoveToFirstAttribute و XmlTextReader در #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
کد استفاده از MoveToFirstAttribute و XmlTextReader در #C :
using System;
using System.Xml;
class MainClass
{
static void Main(string[] args)
{
XmlTextReader reader = new XmlTextReader(@"C:\books.xml");
reader.MoveToContent();
reader.MoveToFirstAttribute();
Console.WriteLine("First Attribute Value" +reader.Value);
using System.Xml;
class MainClass
{
static void Main(string[] args)
{
XmlTextReader reader = new XmlTextReader(@"C:\books.xml");
reader.MoveToContent();
reader.MoveToFirstAttribute();
Console.WriteLine("First Attribute Value" +reader.Value);