Re: xml to array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2006-02-05 at 06:32, Tod Thomas wrote:
> Just a quick shot it the dark...
> 
> http://www.w3.org/TR/REC-xml/#NT-Name
> 
> Go up about a half page to this:
> 
> "[Definition: A Name is a token beginning with a letter or one of a few 
> punctuation characters, and continuing with letters, digits, hyphens, 
> underscores, colons, or full stops, together known as name characters.] 
> Names beginning with the string "xml", or with any string which would 
> match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization 
> in this or future versions of this specification."...
> 
>  From quick read maybe if you wrap the numbers in quotes that might work?

Right on... Making it work is pretty much a non-issue... I can always
prepend something to the string, e.g.,
<idx_0>foo</idx_0>
<idx_1>bar</idx_1>
etc.

Just was not aware if an int. was actually and invalid token... Could
not recall ever seeing it used, but, could also not ever recall reading
it was not OK.... Learn something new everyday... Thanks for finding
that in the spec...

-Brian


-- 

s/:-[(/]/:-)/g


Brian        GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux