Projects / crXml

crXml

crXml is an all-in-one, easy-to-use XML parser, generator, and editor created using PHP's DOM XML functions. The functionality of this class is similar to simpleXML. It differs from simpleXML in the way in which namespaced nodes are addressed. In simpleXML, namespaced nodes cannot be addressed directly. In this class, a namespaced node can be addressed directly as $crxmlObject->{'prefix:nodeName'}. It can also generate PHP code to access any of the nodes. It can also generate or manipulate any type of XML document. Please check the live demo so that you can try the class without downloading anything.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  27 Aug 2011 05:16

    Release Notes: A bug in the toString method which caused it to return an empty string if there were XML comments inside the node was fixed.

    •  27 Feb 2011 06:17

      Release Notes: A search function was added that searches for a nodename and returns the nodes together with the PHP statement that should be used to access that node. The crxml::factory static method was added to create crxml objects on the fly from a raw XML string. This can be used to use with the append, appendTo, and replaceWith functions. A function for getting errors was added. Errors are not displayed by default. This behavior may be changed in the future. Error reporting was added for string access on nonexistent child nodes. XML version and encoding were added to the object constructor. The documentation was updated.

      •  22 Feb 2011 09:33

        Release Notes: A function for getting errors was added. Error reporting was added for string access on nonexistent child nodes. Version and an encoding option were added to the object constructor. Error reporting was made passive, returning errors only through the getError() function.

        •  14 Feb 2011 19:34

          Release Notes: This release fixes an issue with old libxml versions when executing domxpath queries. It adds a live demo so that people can check out the class without downloading anything.

          Screenshot

          Project Spotlight

          OpenStack4j

          A Fluent OpenStack client API for Java.

          Screenshot

          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.