Weird.. < becomes </

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Weird.. < becomes </

Post by ol4pr0 »

This is a small piece of what i have in my script..
almost 300 lines of these, the only differance is that the output screws up my xml document.

Code: Select all

$_xml .="\t<regi-aduero>91";$_xml .="\t</regi-aduero>\r\n";
$_xml .="\t<consol-courier-carga>5519";$_xml .="\t</consol-courier-carga>\r\n";
XML : OUTPUT ..

<puer-origen>USMIA </puer-origen>
<almac-depos>
<almac-aduero>7319 </almac-aduero>

</almac-depos>
</regi-aduero>91 </regi-aduero>
</consol-courier-carga>5519 </consol-courier-carga>
<fech-transac-operac>20031030 </fech-transac-operac>
As you might notice it has </ x2 beginning and end tag. </

300 lines and only those 2 lines makes the whole document go wild..

Did i miss something ?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Dont know why but somehow a hidden space made that go wild...

got it fixed ;-)
Post Reply