OM2
07-19-2007, 06:43 PM
I want to read in an XML file that has HTML code inside, like:
<text1>
<div>
// HTML code
<\div>
</text1>
<text2>
<div>
// HTML code
<\div>
</text2>
etc.
I want to display the HTML in a PHP file, so I will have something like:
<div id=text2>
<?PHP display XML field ?>
</div>
In total, I want something like:
<html>
<head>
<?php
read in XML file
store somewhere, like in an array
?>
</head>
<body>
<div id=text1>
<?PHP Display XML field?>
</div>
<div id=text2>
<?PHP Display XML field?>
</div>
</body>
</html>
Is there anything wrong with the above??
As far as I'm concerned... the above should be very straight forward and simple to do.
Or a I missing something?
I'm not the experienced in PHP... still learning.
Any help would be appreciated.
Thanks.
OM
<text1>
<div>
// HTML code
<\div>
</text1>
<text2>
<div>
// HTML code
<\div>
</text2>
etc.
I want to display the HTML in a PHP file, so I will have something like:
<div id=text2>
<?PHP display XML field ?>
</div>
In total, I want something like:
<html>
<head>
<?php
read in XML file
store somewhere, like in an array
?>
</head>
<body>
<div id=text1>
<?PHP Display XML field?>
</div>
<div id=text2>
<?PHP Display XML field?>
</div>
</body>
</html>
Is there anything wrong with the above??
As far as I'm concerned... the above should be very straight forward and simple to do.
Or a I missing something?
I'm not the experienced in PHP... still learning.
Any help would be appreciated.
Thanks.
OM