Date: Fri, 29 Mar 2024 10:38:03 +0200 (EET) Message-ID: <2121474710.1189.1711701483871@wiki.vertuna.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1188_974833706.1711701483854" ------=_Part_1188_974833706.1711701483854 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
In this tutorial we will show you how you can present the XML data (stor= ed as page attachment) to your end users
With ConfiDoc you can easily show the data from XML, JSON, CSV, RSS and = SQL sources using the same approach an methods.
The structure of the XML is as follows:
<use= rs> =09<user> =09=09<name>Sam Smith</name> =09=09<email>ss@domain.com</email> =09</user> =09<user> =09=09<name>John Doe</name> =09=09<email>jd@domain.com</email> =09</user> </users>
We will show the data in a Table (using TableView macro) and then as a b= ulleted list (using ListView macro)
Showing as Table
Will add a TableView macro
A choose the attachment to be used as source:
We also specify a root element to use, so our "user" nodes will be used as=
an array of nodes
Then we add 2 fields
Referencing Fields: name and email
End result (Live view using ConfiDoc TableView)
Name | |
---|---|
Sam Smith | ss@domain.com |
John Doe | jd@domain.com |
Showing the same dataset as bulleted list using ListView macro
We also set the root element to be "users.user" in the ListView
And the final config looks like:
End result (Live view using ConfiDoc ListView macro)
- Sam Smith ss@domain.com<= /span>
- John Doe jd@domain.com= span>
You can show the data from files attached to other pages, as long as the= user has an access to the page where the attachment is stored