0
我有一個很多物品這樣的XML文檔:轉換節點部分成一條線
<item>
<key>
<unsignedShort>x</unsignedShort>
</key>
<value>
<unsignedShort>y</unsignedShort>
</value>
</item>
<item>
......
現在我想,它的每一部分將是這樣的:
<item><key><unsignedShort>x</unsignedShort></key><value><unsignedShort>y</unsignedShort></value></item>
Duplicate question(http://stackoverflow.com/questions/6111712/how-to-remove-carriage-returns-newlines-spaces-from-a-string)。 – skeletank
但我想每一個項目將是透水項目下: .. 我需要以檢測項目開始時,它的兩端 –