如何修改XML元素

时间:2021-08-22 09:15:38

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. But in this XML document there are some element which I can't understand means How can I change them. 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文档文件,我想做一些更改,或者你可以说我想要更改这些元素中的值。但是在这个XML文档中有一些我无法理解的元素意味着我如何更改它们。这里有一个示例代码,请查看并告诉我这些突出显示的代码,这类代码是什么以及如何将我的价值放入其中。

 <?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中这个元素的类型,以及如何更改它的值

1 个解决方案

#1


0  

I think <param> means parameter. You can change/set the value like this:

我认为意味着参数。您可以像这样更改/设置值:

<param>yourValue</param>

#1


0  

I think <param> means parameter. You can change/set the value like this:

我认为意味着参数。您可以像这样更改/设置值:

<param>yourValue</param>