KöMaL - Középiskolai Matematikai és Fizikai Lapok
Sign In
Sign Up


Problem S. 38. (October 2008)

S. 38. Web browsers create a document tree, when they display HTML pages. The root of the tree is a <HTML> element, and every other element is its descendant. The following example illustrates a HTML source and the corresponding document tree.

Write a program to create a document tree from a valid HTML 4.01 Strict DTD version page (that is, the page does not contain invalid formats and frames). Valid HTML elements are found at http://www.w3.org/TR/html401/index/elements.html

(only without marks D and L, altogether 80 elements). The first command line argument of your program is the name of the source file to be read, while the second command line argument is the name of the output text file containing the document tree in the above format.

The source code of your program (s38.pas, s38.cpp, ...) together with a short documentation (s38.txt, s38.pdf, ...) should be submitted, also containing a brief description of your solution and the name of the developer environment to use for compiling.

(10 pont)

Deadline expired on 17 November 2008.


24 students sent a solution.
10 points:Borsos 607 Zalán, Fejér 267 László, Kővágó Zoltán, Nagy Róbert, Para Attila, Véges Márton.
9 points:Bodosi Eszter, Englert Péter, Seregi Benjamin Martin, Weisz Ágoston, Weisz Gellért.
8 points:3 students.
7 points:3 students.
6 points:1 student.
5 points:4 students.
3 points:2 students.

Our web pages are supported by:   Ericsson   Cognex   Emberi Erőforrás Támogatáskezelő   Emberi Erőforrások Minisztériuma   Nemzeti Tehetség Program    
MTA Energiatudományi Kutatóközpont   MTA Wigner Fizikai Kutatóközpont     Nemzeti
Kulturális Alap   ELTE   Morgan Stanley