现在,我通过简单地重写用户请求的文件来保存我的数据。我的 xml 的结构是这样的:
Skeleons root
Skeleton with string name attribute
bone with attributes
bone with attributes
bone with attributes
bone with attributes
end Skeleton
Skeleton with string name attribute
bone with attributes
bone with attributes
bone with attributes
bone with attributes
end Skeleton
....
end Skeletons root
我遍历以查看所需名称的骨架是否存在,如果存在,我想完全重写它。如果没有,我想将它添加到根元素的底部。
有没有人有这方面的例子?
谢谢