News Feed
Sections




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

Raphael Stolt's Blog:
Validating XML files within PHP 4 applications
April 24, 2007 @ 14:49:10

Raphael Stolt has posted a new tutorial today talking about how to validate the content of XML files within a PHP 4 application.

Today I ran into a small problem, validating import XML data against a DTD(Document Type Definition), and discovered a neat way to solve this without PHP4's own means, as the PHP 4 version on the running system wasn't supporting the DOM XML Functions. Xmllint, a command line XML tool, parses provided XML files and can be used to verify that these files are well formed and are satisfying an associated DTD/XML Schema.

In his example he shows a simple implementation of the tool, grabbing the file's information and pushing it through a command line request to check the file.

0 comments voice your opinion now!
validate xml file php4 application xmllint schema dtd validate xml file php4 application xmllint schema dtd


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Transferring Huge XML Documents in PHP with an Ajax-driven Web Interface

Paul Jones\' Blog: Solar 0.15.1 alpha released

IBM developerWorks: Understanding the Zend Framework, Part 1: The basics

Brian Swan's Blog: Interview with Ben Waine, 2011 PHP on Azure Contest Winner

Patrick Allaert's Blog: Coding standards: converts PHP4 style constructors to PHP5 one


Community Events

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


introduction community laravel framework opinion series version api podcast example voicesoftheelephpant release conference extension interview application php7 library performance symfony2

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