---json
{
"page_id": "h1qpoox0hf2qaloon35oe"
}
---
====== Data Resource - Xml File ======
===== About =====
An ''xml'' is a [[text|text file]] that shows an ''XML'' format.
''XML'' files can be loaded into a [[docs:system:database:database|database]] for further processing.
===== Howto =====
===== Attributes =====
Because a ''xml'' file is a [[text|text file]], you can also set [[text#attributes|text attributes]]
===== Creation =====
You can create XML file with the [[docs:templating:templating|templating module]].
===== Loading =====
Tabulify supports the loading of XML file into a database. See [[howto:xml:load_db]]
===== How to see the first lines =====
By default, ''Tabulify'' treats one XML document as one record (line). By printing it, you would see then always the whole document.
If you want to see the first text lines of a document, you need to set the [[media-type|type]] to [[text|text]].
Example:
tabul data head --type text xml/relation.xml@howto
The first 10 rows of the data resource (xml/relation.xml@howto):
lines
-----------------------------------------------------------------------------------------------------------------------------------------------