Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-11

How to make html files with dom unit

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sebastian Günther
to Karl Brandt
Karl Brandt wrote
I am looking for examples of how to make (simple) html/xml files using the fcl dom/htmldoc units Does anyone can help me?

You could have a look at the sources of FPDoc, this tool generates HTML files (besides from doing other things, of course ;) )

Basically, you create your document as DOM tree, and then use the HTML Writer (unit htmwrite) to write the document.

Regarding the htmldoc unit: I'll revise this unit very soon, so that it gets more useful. The current implementation doesn't seem to do anything useful at all :-/

And, expect some more helper classes for HTML generation soon...

- Sebastian

Reply by email