
Discover how to manipulate XML data in Delphi with the dx document component, the primary tool for XML handling, while noting that namespaces and internal plumbing are not covered.
Learn how to build and manipulate an XML document in Delphi by adding child nodes, using element properties, and assigning attributes for elements such as hydrogen and helium.
Learn to handle characters not allowed in XML by using CDATA in Delphi, creating a root node and trunk, and storing data inside a CDATA section with ampersand.
Learn how to save XML to a file or stream, reload a saved XML file, and work with elements and strings in Delphi using simple file handling.
Traverse an XML document with a recursive procedure to populate a tree view, displaying elements and attributes like hydrogen, symbol, and atomic weight, even without knowing the structure.
Rename a node in the XML document by replacing the old element with a new one and transferring its children and attributes.
Explore cloning an XML node in Delphi by using cloneNode(true) to create a deep copy, insert it into the document, and reuse identical nodes while observing attributes and structure.
Explore next and previous sibling traversal in XML using Delphi, returning the next or previous sibling or nil when none, and iterating over element names with a while loop.
Explore HasChildNodes and IsTextElement in XML, showing how a symbol can have a child text node while being a text element, and how attributes may or may not appear.
Learn to manipulate child nodes in Delphi XML: begin and nest updates, access first and last nodes, and replace or delete nodes by index or name.
Explore TXMLDocument properties by inspecting file name and attributes, enabling or disabling namespace safety, and experimenting with whitespace handling, child elements, and external schema validation for ex-MIL documents.
Demonstrate TXMLDocument events in Delphi, tracing load, after open, before close, and no change and change type transitions, and show adding, reading, and removing elements and attributes.
Explore configuring TXMLDocument properties for cross-platform Delphi development, switching to cross-platform parsing, addressing deprecated settings, and validating with DTD and type attributes across Delphi versions.
Explore creating Excel documents at runtime, manage form ownership and freeing, and use interfaces for library use with cross-referencing between VCL and Maggie to avoid access violations.
Explore XML in Delphi Part 1 by examining bindings, SOAP web services, and simple APIs, while previewing transforms and next topics in Delphi development with the VCL.
Handling XML in Delphi can be tricky, and the primary tool to do this is the TXMLDocument component, which is not the most friendly tool to use. However, in this video, we strip away all the confusion and look at both producing and consuming XML. You will learn how to create XML files in a straightforward manner and also how to read and process XML. We look at several ways of doing this, both when the structure of the file is known and unknown. We then look at some methods for manipulating the structure of XML files. Delphi XE3 is used throughout, and we build our example code using the FireMonkey framework (the examples are simple enough to translate into the VCL). The video is over an hour and a half long, and anyone with a basic (or better) understanding of Delphi should be able to follow.
Whether you're just starting out or brushing up, this hands-on guide is tailored for developers with a basic or better grasp of Delphi. By the end, you’ll be equipped to tackle real-world XML tasks with ease.
While this was recorded with Delphi XE3, the code will work exactly the same in any more recent version of Delphi.