Re: [PHP] XML problem
> I'm looking for a good tutorial in xml or a list with most of the xml > tags. I've googled for it but i can't find anything. Could someone send > me a link to that kind of tutorial? There are no "xml tags" as such; XML defines a grammar but not a vocabulary. The actual tags used depend on the specific application in question, e.g. XHTML defines one set of tags, SOAP another. You can define your own, if you want. A lot of parsers, like the xml_parse functions in PHP, can handle arbitrary XML input as long as it's "well-formed", that is, follows the syntax rules properly. Most of the syntax is described here: http://www.w3schools.com/xml/xml_syntax.asp - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML problem
Hi, >I know that this is not an "xml list" but maybe you could help me. >'m looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. >Could someone send me a link to that kind of tutorial? http://www.zend.com/zend/tut/index.php Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML problem
Try the one at http://www.w3schools.com/ Phpu wrote: Hi, I know that this is not an "xml list" but maybe you could help me. I'm looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. Could someone send me a link to that kind of tutorial? -- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) mjjimenez AT isotrol DOT com --- http://www.isotrol.com TLFNO. 955036800 ext. 111 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML Problem
Sebastian: On Mon, Jul 01, 2002 at 07:36:34PM +0200, Sebastian A. wrote: > I looked over the revised version of the document and unfortunately I still > don't fully understand. I know that I have to save the data on each line, > and then either display it or turn it into a variable. You put the data in > an array and then implode it into a string, however I am not 100% certain > about this process... There's nothing more I can do to clarify the situation. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML Problem
I looked over the revised version of the document and unfortunately I still don't fully understand. I know that I have to save the data on each line, and then either display it or turn it into a variable. You put the data in an array and then implode it into a string, however I am not 100% certain about this process... Could you give me any advice? -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 6:26 AM To: PHP List Subject: Re: [PHP] XML Problem Sire: On Sun, Jun 30, 2002 at 10:21:40PM +0200, Sebastian A. wrote: > > Later on, you make the $Cdata a string, $temp, and then the next time you > use it: $Temp = $Data['TRADE-DATETIME'] > You re-assign it again without using the data. Did I miss something? Yes. Further down was the default case, with the line: $Data[$Elem] = $Temp; But, that's not there any more. I reworked that file a bit to clarify that and add in more error checking. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- 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] XML Problem
Sire: On Sun, Jun 30, 2002 at 10:21:40PM +0200, Sebastian A. wrote: > > Later on, you make the $Cdata a string, $temp, and then the next time you > use it: $Temp = $Data['TRADE-DATETIME'] > You re-assign it again without using the data. Did I miss something? Yes. Further down was the default case, with the line: $Data[$Elem] = $Temp; But, that's not there any more. I reworked that file a bit to clarify that and add in more error checking. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML Problem
You were right, I found the following: # Declare the function that runs each time # character data is encountered. function CharacterHandler($Parser, $Line) { global $CData; # Place lines into an array because elements # can contain more than one line of data. $CData[] = $Line; This should, obviously solve the problem, but I am not sure how I should go about using it? Later on, you make the $Cdata a string, $temp, and then the next time you use it: $Temp = $Data['TRADE-DATETIME'] You re-assign it again without using the data. Did I miss something? -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 8:27 PM To: PHP List Subject: Re: [PHP] XML Problem On Sun, Jun 30, 2002 at 05:58:59PM +0200, Sebastian A. wrote: > > I am having some problems parsing XML with PHP. Here is an > example of my problem: The answer hasn't changed since the last time we had this same discussion back in early May. Search groups.google.com for message id [EMAIL PROTECTED] --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- 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] XML Problem
On Sun, Jun 30, 2002 at 05:58:59PM +0200, Sebastian A. wrote: > > I am having some problems parsing XML with PHP. Here is an > example of my problem: The answer hasn't changed since the last time we had this same discussion back in early May. Search groups.google.com for message id [EMAIL PROTECTED] --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php