Re: a few short notes

Iljitsch van Beijnum <[email protected]>
Newsgroups gmane.mail.ng
Message-ID <[email protected]>
On 3-feb-04, at 1:08, Paul Robinson wrote:

> It's a text string. It's de-limited with tags. Tags are text 
> surrounded by < and >. Sometimes they have /, " and = characters in 
> them that change the way to treat either the tag, or the data inside 
> the tag.

> That's it. It's BECAUSE of the incredibly strict rules you have to 
> follow that it is easy to write tools that handle XML.

> If you can't write something like the above in say 12-20 lines, plus 
> standard #include'ed files in C (stdio.h), perhaps you'd like to 
> consider hiring me as a consultant? :-)

I wrote a program in C that takes a Netscape bookmark file and stores 
the content in a database. This is just under 300 lines and it's pretty 
stupid, it certainly can't handle all variations of HTML.

It could be lack of programming prowess on my part, but I find parsing 
HTML / XML syntax incredibly inconvenient. The most troubleshome part 
is that you can't just work left to right, you have to look for close 
tags and so on.

Also, it just doesn't make any sense.

Why is it <input type=blah> but <title>blah</title> ? Something like 
input="blah" title="blah" would be much better.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.