Echo XML attribute in php?

  • Thread starter Thread starter yeoys2003
  • Start date Start date
Y

yeoys2003

Guest
I know for websites, its better to use Database and php together but becuz my database is so damn slow, i decided to use XML instead.

my simple xml code looks like this

<?xml version="1.0" encoding="ISO-8859-1"?>
<movie>
<title>Batman</title>
<cast>Christian Bale</cast>
<synopsis>Bruce Wayne is a .....</synopsis>
</movie>

=====

in the php, i would like to get the attributes but not using forloop so i can do something like this

<h1>Batman</h1>
<br/>
<i>Christian Bale</i>
<p>Bruce Wayne is .....</p>

======

so how do i do that?? i juz need the code to be real simple, no need too complicated. thanks.
please dont refer me to php.net

i dont really understand the codes as they dont include samples.
 
Back
Top