简体   繁体   English

使用JCO创建XML之后,使用readXML进入JCO.table

[英]using readXML into a JCO.table after the XML was created using JCO

I created a JCO.table and transformed it into XML using myTable.writeXML (JCO method) now I'm trying to re-load the XML into a JCO.table and work with the table created from the XML. 我创建了一个JCO.table并使用myTable.writeXML(JCO方法)将其转换为XML,现在我试图将XML重新加载到JCO.table中并使用从XML创建的表。

I tried to use myNewTable.readXML (another JCO method) but I need to create an instance to my new table before and I suspect it is created empty and the XML doesn't fill it up. 我尝试使用myNewTable.readXML(另一个JCO方法),但是我需要在新表之前创建一个实例,并且我怀疑它创建为空并且XML不能填充它。

any suggestions? 有什么建议么?

thanks!!! 谢谢!!! :) :)

Working with JCo 2.x? 使用JCo 2.x? A rather simply (hopefully not too simply) solution: 一个相当简单的(希望不是太简单)的解决方案:

Table myNewTable=Table.readXML("theXML.xml");

Or could you already solve the problem? 还是已经解决了这个问题? Could you remind, where your suspicion comes from? 您能提醒一下,您的怀疑来自何处?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM