You are here: Re: TCL/PHP/XML problem: I need to convert an XML file into a TCL list « All PHP « IT news, forums, messages
Re: TCL/PHP/XML problem: I need to convert an XML file into a TCL list

Posted by comp.lang.tcl on 11/27/06 21:38

Cameron Laird wrote:
> In article <1164575063.770613.309370@l12g2000cwl.googlegroups.com>,
> Steve Ball <Steve.Ball@explain.com.au> wrote:
> .
> .
> .
> >So, a bunch of <entry> elements where the real data is in attributes.
> >This looks like a dump of a relational database to me.
> >
> >> Into this:
> >>
> >> id 1101 triviaID 233 question {Who wrote &quot;Trilogy of
> >> Knowledge&quot;?} answerID 1 correctAnswerID 1 answer Believer expDate
> >> 113963500
> >
> >Yup, and then you're recreating the relational data in Tcl.
> >
> >NB. XML is not the problem here - you may as well have just used CSV
> >rather than XML.
> I think this part VERY MUCH deserves repetition.
> It is indeed ... silly to serialize relational
> data into XML on the way to Tcl.
> .
> .
> .
> >Notes:
> >
> >1. This solution is single-threaded. It is an exercise for the reader
> >to have it run multi-threaded.
> >2. Attributes as Tcl lists is probably not ideal - a dict would be
> >better. However, in this case lists are necessary to represent the
> >relational data.
> I'm all in favor of dicts.

Dicts? What is a dict? Again I don't know your terminology

BTW I use XML and not CSV because I would have to rewrite too much of
the site to handle CSV instead of XML, and BTW did I mention that I
have no idea how to handle CSV via TCL in the first place, much less
XML?

I think that you may have to understand that I am not exactly on the
same learning curve with the rest of comp.lang.tcl, apparently a gaggle
of very seasoned engineers with multiple TCL experience, and I'm this
web guy that has ADD. I'm learning as best as I can, but Cameron,
please, you're making me drink from a firehose here!

Oh and BTW this is not a database relational dump. There is no
database; the server that hosts that site has no database and no
business plans to ever implement one.

Phil

>
> I don't understand the comment about threading.
> How is concurrency an issue at all?
> .
> .
> .

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация