It seems to be something like that, maybe try to find additional
informations on the LibXMLError class.
good luck.
jm
----- Original Message -----
From: "Sébastien WENSKE" <canardwc@xxxxxxxxxxxx>
To: "JM Guillermin" <jm@xxxxxxxxxx>; "Tijnema !" <tijnema@xxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, April 05, 2007 10:21 PM
Subject: Re: DOMDocument::schemaValidate() -> libxml_get_errors()
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@xxxxxxxxxx>
To: "Tijnema !" <tijnema@xxxxxxxxx>; "Sébastien WENSKE"
<canardwc@xxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, April 05, 2007 4:23 PM
Subject: Re: 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@xxxxxxxxx>
To: "Sébastien WENSKE" <canardwc@xxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, April 05, 2007 3:56 PM
Subject: Re: DOMDocument::schemaValidate() -> libxml_get_errors()
On 4/5/07, Sébastien WENSKE <canardwc@xxxxxxxxxxxx> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php