Data Resource - Xml File

Undraw Environment

About

An xml is a text file that shows an XML format.

XML files can be loaded into a database for further processing.

Howto

Attributes

Because a xml file is a text file, you can also set text attributes

Creation

You can create XML file with the templating module.

Loading

Tabulify supports the loading of XML file into a database. See HowTo - How to load XML files into a database with Tabulify

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 type to text.

Example:

tabli data head --type text xml/relation.xml@howto
The first 10 rows of the data resource (xml\relation.xml@howto): 
lines                                                                               
---------------------------------------------------------------------------------   
<?xml version="1.0"?>                                                               
<api batchcomplete="">                                                              
  <query>                                                                           
    <normalized>                                                                    
      <n from="Relation_(database)" to="Relation (database)"/>                      
    </normalized>                                                                   
    <pages>                                                                         
      <page _idx="23720058" pageid="23720058" ns="0" title="Relation (database)">   
        <categories>                                                                
          <cl ns="14" title="Category:Articles with example SQL code"/>




Related HowTo
Undraw Environment
HowTo - How to load XML files into a database with Tabulify

This database howto will show you how to load Xml file and document into a database.

Task Runner