Xml Php

Discussion in 'PHP' started by wizzard, Aug 30, 2006.

  1. #1
    Hello,

    I'm new with xml and i have to grab out data from an xml file.

    I have a xml document and i want to grab the element and it childs from a person with the name test <person="test">.

    Because there are 200+ users so i need only from 1 :)

    Does someone knows an easy way how i can do that?
     
    wizzard, Aug 30, 2006 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    hans, Aug 30, 2006 IP
  3. tonyrocks

    tonyrocks Active Member

    Messages:
    1,574
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    88
    #3
    use Xpath scalar operators. Wait, i think that is ASP, not php. check out php.net...there are plenty of examples
     
    tonyrocks, Aug 30, 2006 IP
  4. wizzard

    wizzard Peon

    Messages:
    160
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well i cannot find an easy way to filter out the specific data from a xml file. I tried to find on the php.net site but i cannot find what i want.

    I know that xpath is for asp but i look for something similar
     
    wizzard, Aug 30, 2006 IP
  5. Litewebsite

    Litewebsite Guest

    Messages:
    26
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Litewebsite, Aug 30, 2006 IP
  6. wizzard

    wizzard Peon

    Messages:
    160
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have not yet version 5. But i'll ask my system administrator to install it for me.
     
    wizzard, Aug 30, 2006 IP
  7. wizzard

    wizzard Peon

    Messages:
    160
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Got bad news from my systemadmin it's not possible to install the 5 on my server because they work with plesk 8 and its not yet supported by plesk.

    Is there no other way then SimpleXML
     
    wizzard, Aug 30, 2006 IP
  8. Litewebsite

    Litewebsite Guest

    Messages:
    26
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Litewebsite, Aug 30, 2006 IP
  9. wizzard

    wizzard Peon

    Messages:
    160
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks i'll give it tomorrow a try :)
     
    wizzard, Aug 30, 2006 IP