简体   繁体   English

从Oracle Reader将XML数据加载到文件

[英]Load xml data to file from oracle reader

I am calling oracle package, to get xml file from the package into oracleDataReader. 我正在调用oracle包,以将xml文件从该包获取到oracleDataReader中。 How can i load that into xmldocument? 如何将其加载到xmldocument中? Here is the code: 这是代码:

OracleDataReader reader = new OracleDataReader();

     //calling package here and reading xml file into reader... 

     reader = cmd.ExecuteReader();

    while(reader.Read())
    {                            
        XmlDocument doc = new XmlDocument();
        doc.LoadXml("what should i enter here to add the reader xml file???");    

    }    

try 尝试

doc.LoadXml(reader.GetString(0));

IF the above does not work for you please provide information on the statement that is run by cmd and the DB structure/field definition etc. 如果以上内容对您不起作用,请提供有关由cmd运行的语句以及数据库结构/字段定义等的信息。

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

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