Tuto WINDEV 25
402 Part 7: Advanced programming Handling XML files Overview XML (Extensible Markup Language) is a markup language, which means a language that presents information enclosed in tags. XML is a metalanguage that is used to invent new tags to isolate the elementary information that may be found in a Web page. XML is used to structure a document containing data. A HFSQL data file containing several items and records can be exported to an XML file for example ( XML* functions). WINDEV supports: • the files in XML format via a native access supplied with WINDEV. See the online help for more details. • the exports to XML ( TableToXML , TextToXML , HExportXML ). • import of XML data ( HImportXML ). • the use of an XML document via the advanced XMLDocument type and via the WLanguage functions starting with XML. The XML file can also be handled in the code editor directly. Simply: 1. Drag the XML file from the file explorer and drop it in the "Project explorer" pane tab, "External descriptions" folder. 2. Drag the XML file from the "Project explorer" pane and drop it in the code editor. The xmlDocument variable is automatically created as follows: <Variable name> is xmlDocument, description = <Document name> 3. You now have the ability to access the variable nodes by their names. These names are automatically proposed by the mechanism for automatic completion of the code editor.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==