我想導出數據庫到XML,我使用的電子郵件地址作爲關鍵的DATAS:@在XML標籤名
<?xml version="1.0"?>
<DS>
<[email protected]>
<name>remrem</name>
<email>[email protected]</email>
<datetime>2014-09-23 07:41:57</datetime>
<lang>fr</lang>
</[email protected]>
<[email protected]>
<name>remrem</name>
<email>[email protected]</email>
<datetime>2014-09-23 07:41:57</datetime>
<lang>fr</lang>
</[email protected]>
</DS>
但在閱讀此出口,我一直因爲在「@」的錯誤鑰匙。 有人有我的解決方案? 轉義「@」? 使用另一個鍵? (保持電子郵件關鍵是更好的適合我)
僅供參考,我使用PHP(的SimpleXMLElement)
謝謝!
爲什麼不'測試 ... '這樣?順便說一下,這是不是一個CSV,它的XML –
Ghost
2014-09-23 08:04:05
另外這款以csv,但XML – fejese 2014-09-23 08:04:49
呀CSV是逗號分隔值(能如果你願意,實際上可以用另一個分隔符分隔)。顯示你的PHP代碼。 – Jonathon 2014-09-23 08:06:01