There's error.
When I try it in Uni, it works. When I try it at home, it doesn't.
Uni platform Win XP Pro, Apache 2.0.X, PHP 5.0.X, IE6, Portable Apps Mozilla;
Home platform Win XP Home, Apache 2.2.X, PHP 5.2.X, IE7, Mozilla 2.0.0.1.
The XML view source is like this.
Code: Select all
<?xml version="1.0" ?>
<doc>
<1> abc aaa
</1><2> def
</2><3> ghi</3></doc>
I know each time when it loops, the abc aaa will consist of a newline at the end, that's why the </1> goes to the next line. For the last content, <3>, it doesn't go to next line, so i can show properly. How do I omit that newline together with the content stored in the variable?
So that I can get,
Code: Select all
<1>abc aaa</1>
<2>def</2>
<3>ghi</3>
Thanks a million for the help.