如何轉換Java
以下的標籤,我認爲使用XTreams Framework
。如何轉換Java中的標籤
幫幫我!我在Google搜索中看到。
這
<?xml version="1.0" encoding="ISO-8859-1"?>
<fastbranch-xe-request project="Tech" transaction-id="massiveSelectBranchList_By_Institution_Facade" transaction-version="1.0">
<entity name="glb.credential">
<attribute name="channelId">8</attribute>
<attribute name="originBranchId">0</attribute>
<attribute name="dependencyId">1000</attribute>
</entity>
<entity id="Institution" name="in.institution">
<attribute name="institutionId">1111</attribute>
</entity> </fastbranch-xe-request>
對於這個
<?xml version="1.0" encoding="ISO-8859-1"?>
<massiveSelectBranchList_By_Institution_Facade>
<credential>
<channelId>8</channelId>
<originBranchId>0</originBranchId>
<dependencyId>1000</dependencyId>
</credential>
<institution>
<institutionId>1111</institutionId>
</institution>
</massiveSelectBranchList_By_Institution_Facade>
感謝您的回答! – WhoAre 2015-02-28 23:06:44
很高興幫助!讓我知道是否需要幫助解析值或在您解析出信息後編寫新的XML;我剛剛完成了一個大型項目,完全按照您所描述的內容進行。 – roflplanes 2015-03-02 23:29:22