News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Project:
Aleksey Martynov's lexa-xml-serialization Tool for PHP 5.3
September 07, 2010 @ 12:40:37

Aleksey Martynov has submitted a project that can come in quite handy of you do a lot of work with XML in your application - a XML serialization tool for PHP 5.3 that lets you easily translate objects into valid XML.

lexa-xml-serialization is a lightweight library for serializing PHP objects to XML like it's done in .NET. My xml serializer requires that you mark serializable properties of your classes with doc-comment annotations. The properties are not required to be public. The lettercase of annotations doesn't matter. Whitespaces are not essential. Parameters are optional: type defaults to string, xmlName defaults to the property name. Parameter values must not be enclosed in quotes. Empty brackets may be omitted.

The page on the Google Code site gives some examples of it in use as well as as "first look" tutorial about building a large, more complex XML file. If you want to try it out, head over to the download page to grab the latest.

0 comments voice your opinion now!
xml serialization object convert docblock comment


blog comments powered by Disqus

Similar Posts

Smashing Magazine: Ask SM [PHP]: Form Validation, Converting MySQL to XML

Vexxblog: How to convert/encode files to FLV using FFMPEG & PHP

Ryan Malesevich's Blog: Separate Trackbacks from Comments Revisited

Etienne Kneuss' Blog: SplObjectStorage for a fast and secure object dictionary

Matthew Weir O'Phinney's Blog: mbstring comes to the rescue


Community Events

Don't see your event here?
Let us know!


framework community introduction language library install series unittest opinion version laravel voicesoftheelephpant extension interview api release example podcast php7 laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework