Eli wrote:
> Hi,
>
> I want to validate an XML structure using PHP.
> I thought of using PHP's DOM and XSD or DTD for validation. This does
> the job ok, except on invalid XML structure I get the same error code.

There are schema validation techniques within the DOM extension... those
error messages aren't the greatest, but they're going to improve soon.
If this is a new project / area that you're venturing into (and it
sounds like that's the case) then just wait for the dev team to release
PHP 5.1 (I think this is slated to be fixed in 5.1 anyhow)

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to