[fpc-pascal] XML - How to set and use a Namespace Prefix?

2011-10-28 Thread Daniel Gaspary
I'm trying to create an XML Document with multiple Namespaces. With the code below[1] a get as result the following XML: http://www.w3.org/2000/svg"; /> How can I set a second Namespace, should I use SetAttribute or SetAttributeNS ? : root.setattribute('xmlns:xlink', 'http://www.w3.org/1999/xli

[fpc-pascal] Debugging cgi applications

2011-10-28 Thread Ludo Brands
Dear all, Atached is a small unit that makes debugging cgi applications easier. When used in a program it will as part of the initialization launch a new process which opens a terminal (windows:cmd, linux:xterm) and starts gdb attaching to the calling proces. A short "sleep" makes sure gdb breaks