SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot MrDiaz's Avatar
    Join Date
    Dec 2005
    Location
    Ontario, Canada
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML nodes in PHP?

    Hi could someone explain me how to access XML nodes in PHP? I have no idea how this works I will appreciate if someone could clarify this for me. Thanks in advance.
    My Website:
    www.planetdiaz.com

  2. #2
    As the name suggests... trickie's Avatar
    Join Date
    Jul 2002
    Location
    Melbourne, Australia
    Posts
    678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XML processing is/can be different across php 4 and 5.

    If you are using php5, then use Simplexml, it is very easy to use, and maps an xml structure to a PHP object.

    What version are you using?

  3. #3
    get into it! bigduke's Avatar
    Join Date
    May 2004
    Location
    Australia
    Posts
    847
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you should educate yourself with jvascript DOM methods first, since the node accessing methods used in PHP have pretty much the same interface as those used in javascript.

    If you wish to skip this step, you can always look up xml parsing on www.zend.com for both versions of PHP


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •