0

我有一个xml,我需要根据它的值来限制一个属性标签。就像在下面的 xml 文件中一样,如果属性“permanent”的值为真,而不是仅在 xml 中出现

<Information >
<description>Worker information</description>
<A id="234" permanent="true" > 
    <name>xyz</name>
    <age>23</age> 
</A> 
<B id="244"> 
    <name>lkj</name>
    <age>27</age> 
</B>
<C id="204" permanent="true" > 
    <name>C</name>
    <age>27</age> 
</C>

</Information>
4

1 回答 1

0

我得到了解决方案使该属性为可选并分配在设计器中生成的“permanentFieldSpecified”布尔属性为真。

于 2013-05-24T07:22:47.580 回答