Populate MySQL DB from $xml
===

How to populate MySQL DB from $xml defined as follows?

    $xml = simplexml_load_string($line);

Is there any predefine function that automates some parts of this job? Or do I need to use DOM?