ابحث عن اسم العنصر الجذر لخريطة XML
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
يمكنك العثور على ملفاسم عنصر الجذر لخريطة Xmlباستخدام Aspose.Cells معXmlMap.RootElementNameخاصية. تُظهر لقطة الشاشة التالية اسم العنصر الجذر لخريطة XML في Microsoft Excel.
عينة من الرموز
يقوم نموذج التعليمات البرمجية التالي بتحميل ملفنموذج لملف Excel والوصول إلى خريطة XML الأولى وطباعة ملفاتXmlMap.RootElementNameخاصية. يرجى الاطلاع على إخراج وحدة التحكم لعينة التعليمات البرمجية الواردة أدناه.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
//Load sample Excel file having Xml Map | |
Workbook wb = new Workbook("sampleRootElementNameOfXmlMap.xlsx"); | |
//Access first Xml Map inside the Workbook | |
XmlMap xmap = wb.Worksheets.XmlMaps[0]; | |
//Print Root Element Name of Xml Map on Console | |
Console.WriteLine("Root Element Name Of Xml Map: " + xmap.RootElementName); |
إخراج وحدة التحكم
Root Element Name Of Xml Map: MiscData