2014年3月7日 星期五

[PHP] XML show element value and save file

xml_data.xml: xml_show.php
---------------------------------------------------------------------------------

result:


=======module1: save to be text2.xml==========

=======module2: print the context without format=============
Amy Amy@gmail.com 1 Bill Bill@gmail.com 1 Candy Candy@gmail.com 0

=======module3: print root tag context=============
#text =
USER = Amy Amy@gmail.com 1
#text =
USER = Bill Bill@gmail.com 1
#text =
USER = Candy Candy@gmail.com 0
#text =

=======module4: print specific tag context=============
#text =
NAME = Candy
#text =
EMAIL = Candy@gmail.com
#text =
STATUS = 0
#text =

沒有留言:

張貼留言