开发者

Move/Copy XMLBean object to another Bean

<xml-fragment>
<currentClinicalNote>
    <patientFamilyHistory disorderName="CurrentCN" id="23423"/>
    <patientFamilyHistory disorderName="CurrentCN1" id="23424"/>
    <patientFamilyHistory disorderName="CurrentCN1" id="23424"/&开发者_运维百科gt;
  </currentClinicalNote>
</xml-fragment>

I have an XMLBean like above, now I want to replace the node[@id=23423] with a new same type node. How can I do that?

Below is sample code I tried to work..

XmlCursor xmlCursor = cursor.execQuery(nameSpace + pathExpression1);

I found the node with above code, now I have that node in cursor, How do I replace that with another?

Any replies would be appreciated.


DOM3 is not yet implemented in XML Beans,so need to work with DOM Nodes directly to fetch by finding first child in cursor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜