我已经编写了 xml 文件,其中包含 html 标签作为元素,例如
<component>
<input type="button">
<button id="1">
<class="mytest1">
</component>
现在我想先用这些标签编写一个 html 文件,例如
<input type="button" class="mytest" id="1">
.当我将按钮更改为文本时,在 xml 中也应该将按钮更改为文本。
最佳答案
您可以创建一个监视服务,如图 here 。该服务将通知您任何更改,您可以采取适当的操作。
关于java - 如何在java中动态更改xml?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9800654/