Hi
I need to generate some xml-code with php/mysql. This does not work correctly because the code is mixed up by misinterpreting the forward slashes.
When I try for example
PHP
<?php echo '<scene name="hallo">
<preview url="bla.blu" />
<view hlookat="0" />
<hotspot name="hs1" />
<hotspot name="hs2" />
</scene>';
?>
the source code looks correctly
Code
<scene name="hallo">
<preview url="bla.blu" />
<view hlookat="0" />
<hotspot name="hs1" />
<hotspot name="hs2" />
</scene>
but the generated source code is automatically adding cosing tags to the end, so all my code is garbage and does not work correctly anymore:
Code
<scene name="hallo">
<preview url="bla.blu">
<view hlookat="0">
<hotspot name="hs1">
<hotspot name="hs2">
</hotspot></hotspot></view></preview></scene>
is there a way to prevent this?