Re: [PHP] SimpleXML end of element/tag error
And with : foreach ($xml as $cs) { . } ?? jm - Original Message - From: "Don Don" <[EMAIL PROTECTED]> To: "PHP List" Sent: Thursday, April 05, 2007 10:32 AM Subject: [PHP] SimpleXML end of element/tag error I am using simple xml to parse an xml file, the program parses the file and produces an error at the end of the foreach loop when it reaches the end of the tag, it tries to look for an element/tag when there is none and produces an error "Call to a member function attributes() on a non-object" the foreach loop looks like this foreach($xml->CS as $CS) { //processing takes place here } when there are no more CS it fires an error How can i detect when there are no more elements/tags to parse and handle it? cheers - It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 !" <[EMAIL PROTECTED]> To: "Sébastien WENSKE" <[EMAIL PROTECTED]> Cc: Sent: Thursday, April 05, 2007 3:56 PM Subject: Re: [PHP] DOMDocument::schemaValidate() -> libxml_get_errors() On 4/5/07, Sébastien WENSKE <[EMAIL PROTECTED]> 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
Re: [PHP] DOMDocument::schemaValidate() -> libxml_get_errors()
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" <[EMAIL PROTECTED]> To: "JM Guillermin" <[EMAIL PROTECTED]>; "Tijnema !" <[EMAIL PROTECTED]> Cc: Sent: Thursday, April 05, 2007 10:21 PM Subject: Re: [PHP] 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" <[EMAIL PROTECTED]> To: "Tijnema !" <[EMAIL PROTECTED]>; "Sébastien WENSKE" <[EMAIL PROTECTED]> Cc: 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 !" <[EMAIL PROTECTED]> To: "Sébastien WENSKE" <[EMAIL PROTECTED]> Cc: Sent: Thursday, April 05, 2007 3:56 PM Subject: Re: [PHP] DOMDocument::schemaValidate() -> libxml_get_errors() On 4/5/07, Sébastien WENSKE <[EMAIL PROTECTED]> 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
Re: [PHP] Submitting as POST. Why?
Maybe this could help... GET http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3 POST http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5 URI http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2.1 jm - Original Message - From: "barophobia" <[EMAIL PROTECTED]> To: "php-general" Sent: Saturday, April 07, 2007 2:35 AM Subject: [PHP] Submitting as POST. Why? My Peeps, I only know of one reason to submit a form as POST and that is because you can submit more data in one shot. What other reasons are there? Chris. -- 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
Re: [PHP] Novice PHP Question - Listing Folder Contents
http://www.php.net/readdir cheers jmg - Original Message - From: "revDAVE" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 10, 2007 10:11 PM Subject: [PHP] Novice PHP Question - Listing Folder Contents I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list sub folders filenames - not their contents) 2 - List/ display the contents on the same Web-page Q: I'm sure this is most likely doable - but I sure could use some help - any ideas how to do this? Example list: file1.php file2.php file22.txt file1.pdf - that sort of thing -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] -- 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
Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Jay Blanchard" <[EMAIL PROTECTED]> Cc: "Jochem Maas" <[EMAIL PROTECTED]>; Sent: Thursday, April 12, 2007 1:05 AM Subject: RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer! On Wed, 2007-04-11 at 18:03 -0500, Jay Blanchard wrote: [snip] Robert Cummings wrote: > On Wed, 2007-04-11 at 18:53 -0400, Robert Cummings wrote: >> On Wed, 2007-04-11 at 17:43 -0400, Arbitrio, Pat wrote: >>> Other skills: >>> >>> * Dreamweaver >> *ROFLMFAO* > > Still *ROFLMFAO* I don't see what's so funny. there is great skill involved with becoming proficient in using Dreamweaver . [/snip] ROFLMMFAO I think I peed my pants :B me too :)) jm -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- 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