On 4/5/07, Sébastien WENSKE <canardwc@xxxxxxxxxxxx> wrote:
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 ??)....
I don't think it has to do with integer, unless you're running in 16bit mode.. (PHP can't even run under 16bit i guess..). An integer could a lot more. I think there are 2 options that make this error: 1) The libxml library itself doesn't support it. 2) The PHP bindings with the libxml don't support it. In the first case you would need to contact the libxml authors, in the second case, you might want to write a patch that fixes it :) Tijnema
----- 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