HTML XML DTD

Jonathan Schmidt-Dominé - Developer devel at the-user.org
Wed Mar 24 13:45:55 UTC 2010


Hi!

XML- and DTD-parsing do not need any document-specific information.
So it would never be a problem to parse them. For HTML you could create a 
simple implementation of this interface until parsing of XML, HTML and DTD 
works. Then there could be an implementation for DTD providing support for any 
SGML-document. SGML: There are elements with optional closing-tags, e.g. <li> 
in HTML. So you would have to check that in the parser. Contact me, if you 
need any help with building the trees.
Maybe there are some kinds of SGML-nodes:
1. Normal, <a>...</a>
2. Without closing, <img>
3. Optional closing, <li>text ?(</li>)
4. Like the <p> in docbook, <p>text

Jonathan

------------------------
Automatisch eingefügte Signatur:
Es lebe die Freiheit!
Stoppt den Gebrauch proprietärer Software!
Operating System: GNU/Linux
Kernel: Linux 2.6.31.8-0.1-default
Distribution: openSuSE 11.2
Qt: 4.6.3
KDE: 4.4.67 (KDE 4.4.67 (KDE 4.5 >= 20100310)) "release 3"
KMail: 1.13.1
http://gnu.org/
http://kde.org/
http://windows7sins.org/




More information about the KDevelop-devel mailing list