English 中文(简体)
阅读XML至Excel和背(主要关系)
原标题:Read XML to Excel and back (maintain relationships)

因此,我有能力将XML写到一个容易(使用Aspose.Cells)的Excel档案中,以便解决问题,我只需要说明我如何将其写进Excel,以便我能够保持原XML文件的关系。

例十 Doc:

<configData>
  <Items>
    <ItemId>1234</ItemId>
    <Description>Blah</Description>
  </Items>
  <Discounts>
    <Discount>
      <Detail>Heres the details</Detail>
      <Description>Description</Description>
    </Discount>
  </Discounts>
</configData>

这些XML文件实际上比这更严重,但只是例如。

我最初将XML输入一个数据Set物体,该物体运转良好,我可以将其直接撤回到XML档案中,并将保持适当格式,因为它有关系,而且被冻结的财产被确定为真实。

问题在于使用Auspose。 给Excel写这封信的单位,在我进口时,没有办法保持这些关系。 我出口的方法是将数据单中的每一数据输出到不同的工作表格中,因此数据可以易于编辑,然后很容易地重新输入数据单,但现在我需要将其重新输入适当的XML。

帮助! 提前感谢。

最佳回答

解决办法是将其出口到一个数据集,然后从数据集中提取斜线,该数据集是用于网络功能之一,并且仍在出口数据,以分离工作表格,以相反的速度进口,然后将斜线用于恢复关系。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签