Posted by Peter van Schie on 07/18/05 19:41
Bob Bedford wrote:
>
> Thanks for the advice.
> Anyway for my first scripts I had to manage everything manually. Its'
> there any class or code that takes out all datas from a XML and put it
> in a simpler structure ? maybe an array, that let me create a simpler
> script ?
Hi Bob,
You could use a dtd parser and then dynamically create a mysql table
with that particular structure. Then after that you can put the data
from the xml files in the right mysql table which belongs to its dtd.
You'd get a column for each xml element. Handling nested xml data would
be a little tougher though.
--
http://www.phpforums.nl
Navigation:
[Reply to this message]
|