- A little tip for php-xml-dom
- Write the correct 404 erro page or codes
- Our new website template site will be online!
- 10 Best Css Tools - No.1
- New! SmartWins-AIcall
- url rewrite of wrodpress-1
- what’s SEO?
- outsourcing or not?
- Oscommerce templates
- php or asp?
- What can wordpress do?
- How begin to learn Joomla?
- 360 panorama show-1
- AI-Call,new msn products!
- Studying of xhtml-1
- Our New site was published!
- Common Mistakes In Web Design
Outsourcing Development Company : AmongChina IT Co.,Ltd
A little tip for php-xml-dom
Today,I tried to create a xml file by php, I used dom to create the xml file,but I found that the application can output xml file,but can not made it in correct and expect format.
I searched by google,but little useful points,I tried something,I found one easy and good tip,
Some codes are as follows:
header(’Content-Type:text/xml’);
$guestbook = new DomDocument();
$guestbook->formatOutput = true;
the bold codes are the main point,pls note it.
Hope it can helpe some one who met this problem.
Try it!


