Importing XML into multiple tables?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bo

    #1

    Importing XML into multiple tables?

    I've got a XML file like the example below which I would like to import into
    a mysql database. I would like to import into multiple tables so each
    Channel Name gets its own table. How would I go about doing this? I normally
    use PremiumSoft Navicat for importing xml but I don't think it will
    sepearate to multiple tables?

    Thanks in advance for any help you may offer.

    <?xml version="1.0" encoding="iso-8859-1" ?>
    <EPG CreatedOn="2006-07-11 10:11:39">

    <Channel Name="Top Channel" ServiceID="1700 " TransportID="3" Typ="TV">
    <Event>
    <Start>2006-07-11 02:02:00</Start>
    <Duration>00:26 :00</Duration>
    <Titel>Lajme, moti</Titel>
    <Short>Redaks ia e Informacionit</Short>
    <Long>Lajmet kryesore te dites nga vendi dhe bota.</Long>
    </Event>
    <Event>
    <Start>2006-07-11 02:28:00</Start>
    <Duration>01:27 :00</Duration>
    <Titel>Top Select</Titel>
    <Short>Progra m per te rinj</Short>
    <Long>Emision argetues me muzike, te ftuar dhe informacionet e fundit nga
    bota e artit.</Long>
    </Event>
    </Channel>
    <Channel Name="DIGI+" ServiceID="1720 " TransportID="3" Typ="TV">
    <Event>
    <Start>2006-07-11 02:00:00</Start>
    <Duration>01:00 :00</Duration>
    <Titel>Shtrigat </Titel>
    <Short>Seria 2-sezoni VII</Short>
    <Long>Tri motra terheqese, misterioze, me fuqi te mbinatyrshme qe
    perballen me te keqen dhe perpiqen te mbijetojne. Ata qe bien ne rrjeten e
    tyre do ta pesojne.</Long>
    </Event>
    <Event>
    <Start>2006-07-11 03:00:00</Start>
    <Duration>01:00 :00</Duration>
    <Titel>Një dashuri e re</Titel>
    <Short>Seria 31</Short>
    <Long>Estrela Montieli, një grua e re dhe e bukur, së cilës i kanë
    mbajtur të fshehtë origjinën e vërtetë. Ajo është rritur nga Kandita, një
    grua e varfër. Do të njihet me Santiagon, një avokat i njohur, dhe te dy do
    të bien në dashuri marrëzisht.</Long>
    </Event>
    </Channel>
    </EPG>


Working...