Re: [xml] xmllint: validating a document that doesn't specify a DTD
| From: | Hannes Magnusson | Date: | Wed, 25 Nov 2009 19:56:16 +0000 |
| Subject: | Re: [xml] xmllint: validating a document that doesn't specify a DTD | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381158@lists.php.net to get a copy of this message | ||
On Tue, Nov 24, 2009 at 22:20, Rob Richards <rrichards@php.net> wrote:
> Hannes Magnusson wrote:
>>
>> On Sat, Nov 21, 2009 at 02:12, Hannes Magnusson
>> <hannes.magnusson@gmail.com> wrote:
>>
>>
>> Actually, I just tried it with xmllint.
>> --dtdvalid doesn't inject the referenced dtd into the doc so entities
>> aren't "copied over", its pure validation against the dtd :(
>>
>> Rob: You wouldn't happen to know of any neat "workarounds" for that?
>>
>>
>>
>
> I just cant find any decent way to do this. Using that flag just causes
> xmllint to build then doc and then do a validation against the DTD. There is
> no function to allow an external DTD to be passed to the parser while the
> document is built, which is where it's needed. I'll still poke around a bit
> to see if there is any other way to get it to work, but not holding my
> breath.
>
Thanks for looking into it atleast :]
-Hannes