2011-10-03 43 views
0

大家好我有像下面當我們點擊保存按鈕時如何保存xml標籤結果?

<root> 
<key> 
<Question>Is the color of the car</Question> 
<Ans>black?</Ans> 
</key> 
<key> 
<Question>Is the color of the car</Question> 
<Ans>black?</Ans> 
</key> 
<key> 
<Question>Is the news paper </Question> 
<Ans>wallstreet?</Ans> 
</key> 
<key> 
<Question>fragrance odor</Question> 
<Ans>Lavendor?</Ans> 
</key> 
<key> 
<Question>Is the baggage collector available</Question> 
<Ans></Ans> 
</key> 
</root> 

顯示在屏幕上顯示爲XML代碼:

列表形式 是車黑的顏色嗎?複選框 行李收集器是否可用?複選框

如果選中該複選框 - 否則爲vlaue爲否。 關於保存按鈕:我們需要將它保存到一個xml文件

這裏我得到的問題與我檢查時的答案,但我的問題是如何將檢查列表項目保存到XML文件後單擊保存按鈕給我你解決任何一個人的問題。

回答

相關問題