我需要使用xslt將xml結構轉換爲文本字符串。我有一個XML結構是這樣的:如何將node = value對與&seprator連接起來
<index>
<account index="0">00000000000</account>
<customerId index="0">1112xxxxxxx</customerId>
<authorization>1</authorization>
<access>1</access>
<documentGroup>1</documentGroup>
<documentType>165200</documentType>
<!-- Any number of child nodes -->
</index>
我需要改變這個作爲後的參數是這樣的:
account=00000000000&customerId=1112xxxxxxx&authorization=1.....
就如何實現這一目標的任何想法?
這是所有三種解決方案中的最佳解決方案,比接受的答案要好得多。 +1。 –
謝謝@Dimitre,你讓我興奮起來。 –
酷:-),我也是+1。 – actionshrimp