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?? please dont refer me to php.net
i juz need the code to be real simple, no need too complicated. thanks.
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?? please dont refer me to php.net
i juz need the code to be real simple, no need too complicated. thanks.