Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: XML Parser

  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XML Parser

    Hello, I want to work with XML, so I took a look at expat, but it seems like it doesn't offer some of the fflexibility that I need. For instance, I need a way to parse only certain parts of a document or count the number of child tags that a tag has. Is there a parser that I would be able to access nodes in a more random order? Thanks a lot.
    ~evlich

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Alternatively, you could try the DOMXML extension. Though as I understand, it also parses the complete tree into memory. Depending on the size of your document, that might be quite resource demanding.
    http://www.php.net/manual/en/ref.domxml.php

    There's also lot of stuff in the XML department of PEAR:
    http://pear.php.net/packages.php?catpid=22&catname=XML

    Maybe you find something of interest to you there. Good luck.


  •  

    Posting Permissions

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