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 CONTROLPRECEDING INVOICE REFERENCE
SELLERSELLER POSTAL ADDRESSSELLER CONTACTBUYERBUYER POSTAL ADDRESSBUYER CONTACTPAYEESELLER TAX REPRESENTATIVE PARTYSELLER TAX REPRESENTATIVE POSTAL ADDRESSDELIVERY INFORMATIONINVOICING PERIODDELIVER TO ADDRESSPAYMENT INSTRUCTIONSCREDIT TRANSFER
PAYMENT CARD INFORMATIONDIRECT DEBITDOCUMENT LEVEL ALLOWANCES
DOCUMENT LEVEL CHARGES
DOCUMENT TOTALSVAT BREAKDOWN
ADDITIONAL SUPPORTING DOCUMENTS
INVOICE LINE
INVOICE LINE PERIODINVOICE LINE ALLOWANCES
INVOICE LINE CHARGES
PRICE DETAILSLINE VAT INFORMATIONITEM INFORMATIONITEM ATTRIBUTES