[英]How to modify a XML element
I have a XML document file, and I want to do some changes or you can be say I want to change the values in these elements. 我有一个XML文档文件,我想做一些更改,或者可以说我想更改这些元素中的值。 But in this XML document there are some element which I can't understand means How can I change them.
但是在此XML文档中,有些元素我无法理解,这意味着如何更改它们。 A sample code is here, Please see and let me know about that highlighted code, what is that type of code and how can i place my value in it.
这里有一个示例代码,请查看并让我知道该突出显示的代码,什么类型的代码以及如何将我的价值放入其中。
<?xml version="1.0" encoding="ISO-8859-1"?>
<ServerConfig>
<rootLevel>ASIS</rootLevel>
<svpath>$../root/CMP/</svpath>
<vardes>Cobol</vardes>
<uname>root</uname>
<pname>ls_All</pname>
<param/> <!-- How can i edit this value and what is this, this type of element I have never seen before -->
</ServerConfig>
Please let me know about what type of this < param/> element in this xml and how can i change the value for it 请让我知道此xml中此<param />元素的类型以及如何更改其值
I think <param>
means parameter. 我认为
<param>
表示参数。 You can change/set the value like this: 您可以像这样更改/设置值:
<param>yourValue</param>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.