README.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Free Pascal XML units
  2. =====================
  3. DOM
  4. ---
  5. Implements most of the DOM level 1 specification and supports some of the
  6. DOM level 2 extensions.
  7. XMLRead
  8. -------
  9. Provides an XML reader, which can read XML data from a file or stream.
  10. The parser can read files encoded in UTF-8, UTF-16 (both endianness),
  11. and ISO-8859-1. It supports DTD validation.
  12. Regarding entity references: The pre-defined entities "lt", "gt", "amp", "apos"
  13. and "quot", and internal entities declared in DTD, are replaced by their
  14. defined values during reading. Ability to resolve external entities is
  15. currently limited to the file system.
  16. Regarding whitespace handling: By default, whitespace directly after the beginning of a
  17. tag is discarded, and sections of the XML file which contain only whitespace and
  18. no other text content are discarded as well. However, whitespace-preserving
  19. mode can be enabled by setting TDOMParser.Options.PreserveWhitespace property to
  20. True.
  21. XMLWrite
  22. --------
  23. Writes a DOM structure as XML data into a file or stream. It can deal both with
  24. XML files and XML fragments.
  25. At the moment it supports only the UTF-8 output endcoding.
  26. Please note that the writer replaces some characters by entity references
  27. automatically:
  28. For normal text nodes, the following replacements will be done:
  29. '<' => '&lt;'
  30. '>' => '&gt;'
  31. '&' => '&amp;'
  32. For attribute values, additionally '"' gets replaced by '&quot;', and characters
  33. #9, #10 and #13 are escaped using numerical references. Single apostrophes (')
  34. don't need to get converted, as values are already written using "" quotes.
  35. The XML reader (in xmlread.pp) will convert these entity references back to
  36. their original characters.
  37. XPath
  38. -----
  39. Just a XPath implementation. Should be fairly completed, but there hasn't been
  40. further development recently.
  41. HTMLDefs
  42. --------
  43. Contains basic HTML declarations.
  44. HTMLElements
  45. ------------
  46. Implements a DOM for HTML content. Contains a TDOMElement descendent for
  47. all valid HTML 4.1 tags.
  48. THtmlCustomElement:
  49. Basis for all HTML tag elements.
  50. THTMLDocument:
  51. TDOMDocument descendent
  52. THTMLIDElement:
  53. element representing <ID> tag
  54. All tags are in tagsintf.inc.
  55. HTMLWriter
  56. ----------
  57. Implements a verified HTML producer.
  58. THTMLwriter:
  59. This is a class which allows to write certified correct HTML.
  60. It works using the DOM for HTML.
  61. It also has forms support.
  62. Writing HTML is done as follows:
  63. StartBold;
  64. Write('This text is bold');
  65. EndBold;
  66. or
  67. Bold('This text is bold');
  68. But the following is also possible
  69. Bold(Center('Bold centered text'));
  70. Open tags will be closed automatically.
  71. wtagsintf.inc contains all possible tags.