2014年3月19日 星期三

[PHP] read XML file, then modify XML into another file

xml_data_result.xml:
change_xml_element_val.php
======================================
result as below: the status of second row will be replaced by 1.

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 =

bloger使用方法

1. paste resource code: pastebin

2. 日誌分類

3. how to post source code in blogger