Auto-create XML structure with create-nodes

By setting create-nodes on the fx-fore element, Fore will create missing nodes in the XML structure from the binding expressions in the UI. Hierarchy and namespaces will be respected.

The most commmon use case are XML documents that contain only parts of the possible data. When loading such documents the structure needs to be completed to allow entry of optional data.

In this example an empty UBL document will be loaded - once the UI starts up it will examine if the referenced node is present and if not create it.

If you examine this example with Lens you will see a full-blown UBL document with elements in 2 namespaces all created from the ref attributes on Controls, Groups and Repeats.

This is an extremely heavy-weighted example with long data lists to fill options lists. It's also used for streamlining, performance-testing

PROCESS CONTROL
PRECEDING INVOICE REFERENCE
SELLER
SELLER POSTAL ADDRESS
SELLER CONTACT
BUYER
BUYER POSTAL ADDRESS
BUYER CONTACT
PAYEE
SELLER TAX REPRESENTATIVE PARTY
SELLER TAX REPRESENTATIVE POSTAL ADDRESS
DELIVERY INFORMATION
INVOICING PERIOD
DELIVER TO ADDRESS
PAYMENT INSTRUCTIONS
CREDIT TRANSFER
PAYMENT CARD INFORMATION
DIRECT DEBIT
DOCUMENT LEVEL ALLOWANCES
DOCUMENT LEVEL CHARGES
DOCUMENT TOTALS
VAT BREAKDOWN
ADDITIONAL SUPPORTING DOCUMENTS
INVOICE LINE