Re: DOMDocument::schemaValidate() -> libxml_get_errors()
| From: | Sébastien WENSKE | Date: | Thu, 05 Apr 2007 20:21:17 +0000 |
| Subject: | Re: DOMDocument::schemaValidate() -> libxml_get_errors() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252110@lists.php.net to get a copy of this message | ||
Yes it's exactly the error, see the output :
DOMDocument::schemaValidate() Generated Errors!
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 33326 <- that's right
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
Error 1871: Element 'EcheanceRMC': This element is not expected. in
file:///D%3A/wamp/www/XML%20Validator/xml/Edit4.xml on line 65535 <- that's wrong the real
line number is upper
[...]
is it du to the integer ?? (16bits ??)....
----- Original Message -----
From: "JM Guillermin" <jm@jmgdev.net>
To: "Tijnema !" <tijnema@gmail.com>; "Sébastien WENSKE"
<canardwc@canardwc.com>
Cc: <php-general@lists.php.net>
Sent: Thursday, April 05, 2007 4:23 PM
Subject: Re: [PHP] DOMDocument::schemaValidate() -> libxml_get_errors()
> If the error occure after the line 65535, libxml_get_errors() returns 65535.
>
> Maybe this can help you Sébastien :
>
> Class: LibXMLError
> Properties (Read-Only):
> (int) level
> (int) code
> (int) column
> (string) message
> (string) file
> (int) line
>
>
> jm
>
> ----- Original Message -----
> From: "Tijnema !" <tijnema@gmail.com>
> To: "Sébastien WENSKE" <canardwc@canardwc.com>
> Cc: <php-general@lists.php.net>
> Sent: Thursday, April 05, 2007 3:56 PM
> Subject: Re: [PHP] DOMDocument::schemaValidate() -> libxml_get_errors()
>
>
> On 4/5/07, Sébastien WENSKE <canardwc@canardwc.com> wrote:
>> Hello all, (sorry for my bad english)
>>
>> I've this script, it checks an XML file with an XSD file.
>> it reports errors in the XML with line number, but i've large XML file (up
>> to 560MB) and the line number
>> doesn't exceed 65535. for upper lines he return always 65535.
>>
>> An idea ?
>>
>> Thx in advance.
>>
>
> I don't really understand what you're saying, but i might be able to
> help you if you post the output of the script you posted, and then
> tell what the expected output is.
>
> Tijnema
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>