Projects / XML parser class

XML parser class

XML parser class is a PHP class that parses arbitrary XML input and builds an array with the structure of all tag and data elements. Optionally it can keep track of the positions of each element to locate elements that may be contextually in error. Supports a parsed file cache to minimize the overhead of parsing the same file repeatedly. Optimized parsing of simplified XML (SML) formats ignoring the tag attributes.

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  03 Oct 2012 21:13

    Release Notes: This release fixes the assignment of parse errors when extracting element data.

    •  05 Sep 2012 21:31

      Release Notes: This release adds a new function that can validate and extract data from a whole XML document at once using given rules that define the accepted constraints for the tag structure and tag data values. Custom validation is possible using a subclass to implement custom validation rules. Full documentation of the class was added.

      •  27 Jun 2011 08:11

        Release Notes: This version adds support for extracting object tag and attribute namespaces.

        •  08 Jun 2009 09:02

          Release Notes: The file existence checks were removed to allow parsing XML remote files and virtual streams. A bug in the VerifyWhiteSpace function which was accessing the wrong object when the store_positions options is true was fixed.

          Release Notes: This release improves the clarity of the messages that are returned when errors on reading and writing parsed XML cache files occur.

          RSS Recent comments

          20 Jun 2007 03:36 bodolfo

          Good work!
          Your XML-parser is really good work.

          Thank you for providing it free and so helping to level up the quality of the internet.

          It's just what I was looking for to develop a SOAP-client.

          You should mention that application on the phpclasses.org page, too.

          Thank you very much. :) And keep on.

          23 Nov 2005 14:03 mlemos

          Re: A pity

          > His point, which I think you're still

          > missing, is that people might be

          > interested in giving your software a

          > look, crediting you (most people in the

          > OS community will), and even giving you

          > mention. But he (and others) are kept

          > from even assessing the code's worth by

          > sites like PHPClasses.

          >

          > I write PHP for a living, and NEVER use

          > nor recommend their site. If you have a

          > valid piece of code you want to share

          > openly, why bother with sites like that?

          > You could have the cure for cancer in

          > code form, but I and many others will

          > skip over it because we DON'T HAVE THE

          > TIME and DON'T WANT THE SPAM (from you

          > OR PHPClasses' advertisers)!

          There is a big misunderstanding. The PHP Classes site does not impose the login requirement. That is an option that any author can enable or not on a file by file basis, as it is explained in the site FAQ (www.phpclasses.org/faq...).

          As you may realize by now, it is always up to the authors that voluntarily submit their packages to the site. If they keep the login requirement it is because it serves their interests.

          Nobody that subscribes to the site receives any spam. You only fear that the site or anybody else will send spam after you subscribe, because you never subscribed. Your fear does not have foundation on the reality.

          The PHP Classes is a reputed site that exists since 1999. It has near 300,000 subscribers, and is growing at a rate of over 7,600 new subscribers a month. The reason why it attracts so many users is because it published over 2,700 classes of objects contributed by more than 1,200 authors.

          So, as you may understand by now, the only one that is loosing by refusing to join the site is yourself. It only depends on you to stop excluding yourself from benefit from the resources provided by the site.

          23 Nov 2005 12:34 JKCole Thumbs down

          Re: A pity
          His point, which I think you're still missing, is that people might be interested in giving your software a look, crediting you (most people in the OS community will), and even giving you mention. But he (and others) are kept from even assessing the code's worth by sites like PHPClasses.

          I write PHP for a living, and NEVER use nor recommend their site. If you have a valid piece of code you want to share openly, why bother with sites like that? You could have the cure for cancer in code form, but I and many others will skip over it because we DON'T HAVE THE TIME and DON'T WANT THE SPAM (from you OR PHPClasses' advertisers)!

          14 Oct 2003 18:45 mlemos

          Re: A pity

          > so what is it (that i have to register)
          > good for then anyway?

          Registering serves several purposes, including, but not limited, to discourage authors with intentions to commit fraud in the top downloads by creating many accounts. But for the users that are interested, registering allows to site to keep track of the packages that they download, so when those packages are updated they can be notified about the new releases.

          > look, i am looking for a piece of
          > software that i can use instead of
          > reinventing the wheel one more time.
          >
          > therefore i have to look at the source
          > code. most of the time a quick glance
          > tells me if it is worth working with or
          > not.
          >
          > i cant spend all day creating accouts
          > just to get a quick peek at someones
          > software. after a few of those
          > experiences i usually decide to write it
          > myself.
          >
          > i am very much willing to give you my
          > (regularly read) email address, if i
          > really _use_ your code.
          >
          > but not for a quick look at it. it
          > simlply consumes too much time.

          Sorry, with the time that you already consumed with this pointless complaint, you could have already created many accounts to download the classes that you want to try.

          11 Sep 2003 11:21 the_orcish_mage

          Re: A pity

          >
          > I am the author of these and other
          > classes and the whole site. I
          > don´t know why do you problem with
          > creating an account to access the site.
          > Anyway, you don´t have to supply
          > your personal details to subscribe. If
          > you have anything to hide about
          > yourself, just put in fake personal
          > details. You only have to provide a
          > valid reachable e-mail address. If you
          > don´t want to reveal your main
          > e-mail address, just create an e-mail
          > account in some free e-mail service.
          >

          so what is it (that i have to register) good for then anyway?

          look, i am looking for a piece of software that i can use instead of reinventing the wheel one more time.

          therefore i have to look at the source code. most of the time a quick glance tells me if it is worth working with or not.

          i cant spend all day creating accouts just to get a quick peek at someones software. after a few of those experiences i usually decide to write it myself.

          i am very much willing to give you my (regularly read) email address, if i really _use_ your code.

          but not for a quick look at it. it simlply consumes too much time.

          Screenshot

          Project Spotlight

          Nuxis

          An integrated solution for virtualization management.

          Screenshot

          Project Spotlight

          Transmageddon

          A video conversion tool.