Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Kent Johnson
Liam Clarke wrote: Out of curiousity, having poked around XML while learning about the JScript DOM, what are you using it for? Lots...one project I worked on, we used XML as the native file format and dom4j trees as the object model. In other words, when you saved a document, you got an XML file;

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Liam Clarke
XML, XPath, XML Schema all have basic tutorials at www.w3schools.org Out of curiosity, how does a node function in a DOM? I'm not very good at manipulating DOM's, I can do the basics, mainly by passing object IDs to JS functions, which feels like cheating. On Wed, 12 Jan 2005 07:57:02 -0500, K

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Kent Johnson
Guillermo Fernandez Castellanos wrote: I have not been able to find any recent XML/Python tutorial on the web. There is a Python and XML topic guide at python.org http://pyxml.sourceforge.net/topics/ Uche Ogbuji writes regularly about Python and XML for xml.com http://www.xml.com/pub/au/84 Does th

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Yigal Duppen
On Wednesday 12 January 2005 09:40, Alan Gauld wrote: > > I ask that because I'm writting a little program that will make > > queries over a 1500 entries database, with very simple queries. I > > need > > > an answer in 1 or 2 seconds. I'm using SQLite now, but i wanted > > something that depends a

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Yigal Duppen
On Wednesday 12 January 2005 00:34, Max Noel wrote: > > As a bonus, I've decided to have a look at XSL, which allows me to > > format a XML file for display in a web browser. It entirely changed my > > perception of web programming. > > I intend to program an on-line browser-based game with

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Alan Gauld
> I have not been able to find any recent XML/Python tutorial on the > web. Does the xml.dom library have a XPath and XQuery or any SQL-like > support? I've understood that it's a pretty basic library... I don't thoink there's XPath or XQuery in Python yet. There is a thread on this on comp.lang.p

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Alan Gauld
> You are standing in front of a stump. A path leads north. > N Probably more like: you in front of stump path leads NOrth And the XSL will join the bits together using XPathstyle references to "fill in the blanks": are a . A > and you h

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Guillermo Fernandez Castellanos
> 1500 entries shouldn't be a problem for queries either using DOM > (in memory) or XPath or even XQuery. If your app grows to 15 > it might stat to be a problem, and if you get over a million > entries I'd definitely start thinking about regular RDBMS. Hi, No it will not go further... let's s

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Alan Gauld
> I ask that because I'm writting a little program that will make > queries over a 1500 entries database, with very simple queries. I need > an answer in 1 or 2 seconds. I'm using SQLite now, but i wanted > something that depends as little as possible of external dependencies > (as a database). 15

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Alan Gauld
> > 3) For the same reason, it will save bandwidth. The XML data will > > probably take less space than the fully-formatted stuff I'd have to > > spit out with "regular" HTML, and the XSL stylesheet can probably be > > cached by the user's browser. This is a common misperception that should have b

Re: [Tutor] More and more OT - Python/Java

2005-01-12 Thread Alan Gauld
> Only thing I've seen that uses XML (remember I'm a n00bie in Python, > Java, Jscript and HTML, so I don't see the real indepth stuff) is MSN > Messenger for it's logs. And MS IE can parse that XML. XML is rapidly becoming the de-facto standard in data exchange formats between businesses(B2B). In

Re: [Tutor] More and more OT - Python/Java

2005-01-11 Thread Max Noel
On Jan 12, 2005, at 01:40, Liam Clarke wrote: So, you've got the XML like - You are standing in front of a stump. A path leads north. N and you have a XSL that works like a CSS? descript {font:arial, align:center} exits style:bolder Is that a good paraphrasing? How browser dependent would th

Re: [Tutor] More and more OT - Python/Java

2005-01-11 Thread Max Noel
On Jan 12, 2005, at 00:49, Guillermo Fernandez Castellanos wrote: Does that mean that you use XML as a database to store data and make queries, or that you store your information as XML in a database (as MySQL)? Nope, nothing that fancy, I'm afraid. Just your run-off-the-mill "load from XML/save

Re: [Tutor] More and more OT - Python/Java

2005-01-11 Thread Liam Clarke
lt;[EMAIL PROTECTED]> wrote: > (yes, forgot to CC the list again -- argh!) > > Begin forwarded message: > > > From: Max Noel <[EMAIL PROTECTED]> > > Date: January 11, 2005 23:33:44 GMT > > To: Liam Clarke <[EMAIL PROTECTED]> > > Subject: Re: [Tut

Re: [Tutor] More and more OT - Python/Java

2005-01-11 Thread Guillermo Fernandez Castellanos
Hi, Just out of curiosity, > > Well, I plan to use it as a data storage format for a university > > project (crowd simulation in a shopping center -- coded in Java). I > > hate binary data formats, and XML is a good unified way to store data > > as ASCII text, so I figured I'd use it. > >

Fwd: [Tutor] More and more OT - Python/Java

2005-01-11 Thread Max Noel
(yes, forgot to CC the list again -- argh!) Begin forwarded message: From: Max Noel <[EMAIL PROTECTED]> Date: January 11, 2005 23:33:44 GMT To: Liam Clarke <[EMAIL PROTECTED]> Subject: Re: [Tutor] More and more OT - Python/Java On Jan 11, 2005, at 23:15, Liam Clarke wrote: Out o

Re: [Tutor] More and more OT - Python/Java

2005-01-11 Thread Liam Clarke
Out of curiousity, having poked around XML while learning about the JScript DOM, what are you using it for? AFAIK, you make up your own tags, and then parse them and display them, and anyone else could create data using your tags. Only thing I've seen that uses XML (remember I'm a n00bie in Pytho

Re: [Tutor] More and more OT - Python/Java

2005-01-10 Thread Max Noel
dom4j? What is it? Is it part of the standard Java distribution? If not, where can it be found? Update: Okay, looks like it's time to go to bed. The link was in bright blue and somehow I didn't see it. D'oh. -- Max maxnoel_fr at yahoo dot fr -- ICQ #85274019 "Look at you hacker... A pathetic c

Re: [Tutor] More and more OT - Python/Java

2005-01-10 Thread Max Noel
On Jan 11, 2005, at 01:38, Kent Johnson wrote: Max Noel wrote: A good follow-up to that would be McMillan & Wiggleswrorth's "Java Programming - Advanced Topics", through which I'm currently reading. It has some really good stuff, including things about XML parsing with SAX and DOM... I m

Re: [Tutor] More and more OT - Python/Java

2005-01-10 Thread Kent Johnson
Max Noel wrote: A good follow-up to that would be McMillan & Wiggleswrorth's "Java Programming - Advanced Topics", through which I'm currently reading. It has some really good stuff, including things about XML parsing with SAX and DOM... I may actually be about to understand how to use S

Re: [Tutor] More and more OT - Python/Java

2005-01-10 Thread Max Noel
On Jan 10, 2005, at 22:00, Liam Clarke wrote: Hehe, I'm not up to collections yet... working through Learning Java by O'Reilly. If you already know a bit about OOP, I would recommend that you read bruce Eckel's "Thinking in Java". An excellent book, freely available on-line (do a quick Google se