我有一个需要重写的组件,问题是我不知道怎么做。
我的XML如下所示:
<border-layout>
<component name="myFirstComponent">
<fix-layout>
<component name="myController">
some options...
</component>
<component name="needToOverride">
<fix-position x="222" y="222" width="111" height="10" opaque="false" visible="true"/>
</component>
</fix-layout>
</border-layout>我可以跳过结尾的一些结束标签,但不要领会它的洞察力。如何重写"needTOOverride“来修改我的位置?当前的XML是只读的,我不能修改它。
我尝试了一些谷歌的解决方案,但没有成功。很抱歉这个愚蠢的问题,如果是这样的话。
发布于 2021-10-20 10:02:26
为此,我会使用一些XML序列化和反序列化库,比如jackson或simplexml。
https://stackoverflow.com/questions/69643461
复制相似问题