hi everybody,

I have a xml structure like that;

<?xml version="1.0" encoding="iso-8859-1"?>
<content>
<nofm>4</nofm>
<msg>
<mno>1</mno>
<mid>3</mid>
<datetime>05102004105802</datetime>
<sender>test@localhost</sender-gsm>
<body>hi dear .... </body>
</msg>
<msg>
<mno>2</mno>
<mid>5</mid>
<datetime>05102004105923</datetime>
<sender>test@localhost</sender-gsm>
<body>hi dear .... </body>
</msg>
<msg>
<mno>3</mno>
<mid>11</mid>
<datetime>05102004110829</datetime>
<sender>test@localhost</sender-gsm>
<body>hi dear .... </body>
</msg>
<msg>
<mno>4</mno>
<mid>13</mid>
<datetime>05102004110852</datetime>
<sender>test@localhost</sender-gsm>
<body>hi dear .... </body>
</msg>
</content>


I want to parse it with a loop and write a mysql database.
but I can getting only first record when I using childnodes from xml.dom.minidom

how can I parse a xml block like that with a loop.
because I want check some fields from it before write to database.

best regards