Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 WCF 服务,我在其中创建了以下方法
public List<AddTravelDetails> ReadXML(XmlDocument xDoc)
现在我想使用该服务。谁能帮我?如何XmlDocument作为ReadXML函数的输入参数传递?
XmlDocument
ReadXML
谢谢,拉胡尔
XmlDocument doc = new XmlDocument(); doc.Load(pathToYourFile);
其中 pathToYourFile 是例如:@"D:\yourfile.xml"
@"D:\yourfile.xml"