开发者

Dynamically appending text to XML with C#

开发者 https://www.devze.com 2023-03-05 10:45 出处:网络
I w开发者_运维问答ant to generate the XML as shown below. I generated the elements of it, but now I am struggling to append the text dynamically to it.

I w开发者_运维问答ant to generate the XML as shown below.

I generated the elements of it, but now I am struggling to append the text dynamically to it.

Can any one help me to do as shown above.

Dynamically appending text to XML with C#

Thanks.


If I understood your problem right, this will help:

        XmlElement node = doc.CreateElement("H_SENDER");
        node.InnerText = "BROYHILL ONLINE";
0

精彩评论

暂无评论...
验证码 换一张
取 消