استيراد XML إلى مصنف Excel
Contents
[
Hide
]
Aspose.Cells يسمح لك باستيراد مخطط XML داخل المصنف باستخدام ملفالمصنف .mportXml () طريقة. يمكنك استيراد خريطة XML باستخدام Microsoft Excel باتباع الخطوات التالية
- يختارمطور التبويب
- انقريستورد في قسم XML واتبع الخطوات المطلوبة.
ستحتاج إلى تقديم بيانات XML الخاصة بك لإكمال الاستيراد. هنا ملفعينة من بيانات XML التي يمكنك استخدامها للاختبار.
استيراد خريطة XML باستخدام Microsoft Excel
توضح لقطة الشاشة التالية كيفية استيراد خريطة XML باستخدام Microsoft Excel.
![]() |
---|
استيراد خريطة XML باستخدام Aspose.Cells
يُظهر نموذج التعليمات البرمجية التالي كيفية الاستفادة من ملحقالمصنف .mportXml () . يولدملف اكسل الناتج كما هو موضح في لقطة الشاشة هذه.
![]() |
---|
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 | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Create a workbook | |
Workbook workbook = new Workbook(); | |
// URL that contains your XML data for mapping | |
string XML = "http://www.aspose.com/docs/download/attachments/434475650/sampleXML.txt"; | |
// Import your XML Map data starting from cell A1 | |
workbook.ImportXml(XML, "Sheet1", 0, 0); | |
// Save workbook | |
workbook.Save(dataDir + "output_out.xlsx"); |