如何将xml文件作为参数传递 [英] how to pass a xml file as a parameter

查看:497
本文介绍了如何将xml文件作为参数传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将xml文件作为参数传递到c#.net(窗口应用程序)中的存储过程中

迫切

在此先感谢

how to pass a xml file as a parameter in to stored procedure in c#.net(window application)

its urgent

thanks in advance

推荐答案

cshuhh写道:

紧急



不,这不对.如果您在任何需要紧急处理的地方,都应该拥有一些参考书,并且会费心寻找答案.

您是要存储XML,还是要使用XML为查询指定值? OpenXML是将XML用于参数的方式.

[



No, it''s not. If you were in a place where any task would be urgent, you''d own some reference books, AND you''d bother to search for an answer.

Do you mean you want to store XML, or do you mean you want to use XML to specify values for the query ? OpenXML is how you use XML for paramaters.

This[^] might both answer your question and give you ideas on how to use a search engine. If you want to respond to fill in the gaps in your question ( like what you expect to do with this XML file ), edit your post to add those details.


AR @ JR,您的忠告无可厚非.您今天花了很多时间来寻找问题的答案,我尊重您的努力,但是如果您没有值得一说的内容,为什么还要发布?至于你的侮辱,我以为你认为我可能会在意,这让我感到很高兴,但我只是对你感到难过.考虑到您提供的错误答案,您显然已经超出了您的联盟,并且正在寻求您尚未能够赚钱的批准.很遗憾成为你.

XML只是文本,您可以将其作为字符串传递.使用webcontrols命名空间传递XML是一个荒谬的想法.如果需要将XmlDocument验证为XML,则使用XmlDocument更有意义.
AR@JR, your advice is beyond terrible. You''ve spent today looking back for questions to answer, and I respect the effort, but if you don''t have something worthwhile to say, why post at all ? As for your insults, it amuses me to think that you think I might care, but I just feel bad for you. you''re obviously out of your league, given the bad answers you''re offering, and looking for approval that you''re not yet capable of earning. Sucks to be you.

XML is just text, you can pass it as a string. Using the webcontrols namespace to pass XML is a ludicrious notion. Using an XmlDocument would make more sense, if it needs to be validated as XML.


亲爱的Graus先生,
根据我的经验,我发布的答案很好.我只是通过提示跟随您的示例.现在可能是您要我呕吐整个代码.东方或西方男人像你一样发臭.....
Dear sir Graus,
The answer I posted works fine in my experience. I was following your example by giving only hints. Now may be you want me to vomit the whole code. East or west man something like you stinks.....


这篇关于如何将xml文件作为参数传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆