4D Blog

Home Product Structure Definition Export in HTML

Structure Definition Export in HTML

January 17, 2024

Product

Sharing structure definitions with colleagues, users, or customers is simplified through HTML formatting.

In 4D, structure definitions are presented in XML+XSL, which browsers render as HTML for easy human readability and computer-based content parsing.

However, recent browser restrictions prevent local files from using certain external resources unless sourced from the web. To overcome this issue, 4D has now re-factored this export in an HTML+CSS format, providing the option to export either XML as before or directly as HTML.

Starting from 4D v20 R4, the generated file is in HTML format when you select the “File/Export/Structure definition to HTML…” menu item. This way, the file is ready to be opened by any browser.

The export design remains largely the same, with the addition of some useful missing information, such as relation names, and the removal of obsolete ones.

All the external resources the HTML file needs are placed in the “html_export_resources” subfolder. This folder won’t be overwritten if it already exists, so feel free to override the provided CSS stylesheet with your own.

As a bonus, you can export the structure in HTML format with the EXPORT STRUCTURE command using an optional parameter:

var $xml; $html : Text

EXPORT STRUCTURE($xml) // Export in XML format
File("/PACKAGE/myStructure.xml").setText($xml)

EXPORT STRUCTURE($html; html format) // Export in HTML format
File("/PACKAGE/myStructure.html").setText($html)

We constantly strive to provide our users with the best possible experience, and we encourage you to share your thoughts and feedback on the 4D forum. Your feedback helps us better understand your needs and continuously improve our products and services.

Discuss

Tags 21, v20 R4

Latest related posts

  • October 23, 2025

    Starting Qodly studio is just two clicks away

  • October 22, 2025

    Localize your Qodly Pages: A Practical Guide

  • October 21, 2025

    New Way to Control Your HTTP Responses

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy