News Feed
Sections




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

Greg Beaver's Blog:
Update to libxml2 in PHP - progress hath been acquired
June 06, 2007 @ 11:45:00

Related to an issue from a previous post, Greg Beaver has posted a solution to his Relax NG schema problem in PHP.

Shortly after my last blog post, I got a very helpful email from Rob Richards, who offered to help me with my trials and tribulations. He took a quick look at the schema for package.xml, and a sample package.xml and was able to find two small tweaks to make parsing actually work (gasp). This changes everything. I am abandoning the creation of a relax NG schema in favor of the battle-tested xsd. The error messages for xsd validation are far clearer than the rng ones.

The code included shows how much simpler the error messages are with the XSD validation option versus the RNG ones.

0 comments voice your opinion now!
rng schema libxml2 validate error message rng schema libxml2 validate error message


blog comments powered by Disqus

Similar Posts

Derick Rethans' Blog: Five reasons why the shut-op operator (@) should be avoided

Alessandro Crugnola's Blog: AMFPHP issue referencing ByteArray

Vidyut Luther\'s Blog: Difference between \"require()\" and \"include()\" in PHP

SitePoint PHP Blog: Message Queues: Comparing Beanstalkd, IronMQ and Amazon SQS

Johannes Schluter's Blog: Goto your Christmas presents with PHP 5.3


Community Events





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


opinion interview composer series library introduction security list framework language voicesoftheelephpant podcast example symfony conference community version laravel tool package

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