PDA

View Full Version : new in xml



mike^
November 3rd, 2007, 01:24 PM
hello to all....i am new at ubuntu and so at xml.i check some tutorials and i want some help.first i want to find out how can i write my username.for example my username is mike,i want to write a message "Hello mike"
second i have some quotes in a text file.it goes like this:
quote1
%
quote2
%
etc
how can i load each quote everytime at random?
thanks for all.i hope i didn't tied you

ankursethi
November 3rd, 2007, 06:44 PM
XML is for markup, not for doing stuff. For example, you can *store* data using XML, but you need to use something else to retrieve that data.

You want to check out Python if you want to do programming. http://docs.python.org/tut/tut.html

If you want to program your web browser, check out JavaScript. http://w3schools.com

htor
November 6th, 2007, 06:29 PM
Is there good book / tutorial for learning xml ? I am working a lot with python and I think xml files is good way to store information...

Can you tell me how you have learned it ?

pmasiar
November 6th, 2007, 06:33 PM
Of course it depends of your needs, but in average, XML is **bad** way to store info. hard to search, hard to change.

If you need to store lots of info, SQL database is the way IMHO. SQLite is simple nice SQL storage without the hassle of SQL server.

CptPicard
November 6th, 2007, 06:36 PM
I've got The XML Companion by Bradley on my bookshelf... it's ok, although the 2nd edition is getting a little bit old, you should see if there is a newer one in print.

And you should really reconsider that XML part ;) Java development has been infected with horrible amounts of XML and I am not really sure if has been for the better. It's barely human-readable and actually a bit heavy to parse (properly) and process...

htor
November 7th, 2007, 05:14 PM
Thanks for the answers, I will use SQL.