File xml with php5

Discussion in 'PHP' started by alainalpe, Sep 16, 2008.

  1. #1
    Hi,
    I need some hel to a xml file :
    My file:
    
    
    <?xml version="1.0" encoding="utf-8"?>
    <content>
    <item num="1">
        <title>Emilie</title>
        <image_path>essai1.jpg</image_path>
        <target_url>http://www.monsite</target_url>
        <description>Génial</description>
    </item>
    <item num="2">
        <title>Alexis</title>
        <image_path>essai2.jpg</image_path>
        <target_url>http://www.monsite2</target_url>
        <description>Super</description>
    </item>
    <item num="3">
        <title>Alexis</title>
        <image_path>essai2.jpg</image_path>
        <target_url>http://www.monsite2</target_url>
        <description>Super</description>
    </item>
    </content/>
    
    PHP:
    I want read my file and changed the place of item.
    The item1 => item3 & item3 =>1 etc
    Each open file, the position change.
    I try with simpleXXML without succès .... If somebody can hem me

    Thanks in advance.

    Regards.

    Alain
     
    alainalpe, Sep 16, 2008 IP
  2. carfinance

    carfinance Peon

    Messages:
    156
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I want read my file and changed the place of item.
     
    carfinance, Sep 16, 2008 IP
  3. alainalpe

    alainalpe Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes and ?

    Regards
     
    alainalpe, Sep 16, 2008 IP
  4. adrevol

    adrevol Active Member

    Messages:
    124
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    adrevol, Sep 16, 2008 IP