1

現在、xmlserialiser を使用して次のようなものを出力しています。

<Node1>
   <Child2 attr1="abc">
   <Child3 attr2="xyz">
<Node1>

次のような文字列があります。

String stringAttribute = "testAttribute='testAttributeValue'";

xmlserialiser を使用して文字列をノードに挿入する方法はありますか?

<Node1>
   <Child2 attr1="abc" testAttribute='testAttributeValue'>
   <Child3 attr2="xyz">
<Node1>

ありがとう

マーク

4

0 に答える 0