Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML parser plugin for Embulk

Parser plugin for Embulk.

Embulk parser plugin for XML with XPath support ? Edit

Overview

  • Plugin type: parser
  • Load all or nothing: yes
  • Resume supported: no

Configuration

parser:
  type: xpath
  root: /rdf:RDF
  schema:
    - {name: //si:title[1], type: string}
    - {name: //si:author[1], type: string}
  namespaces:
    "rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    "si" : "http://www.w3schools.com/rdf/"
  • type: specify this plugin as xpath
  • root: root property to start fetching each entries, specify in xpath style, required
  • schema: specify the attribute of table and data type, required
  • namespaces: xml namespaces

Then you can fetch entries from the following xml:

<?xml version="1.0"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:si="http://www.w3schools.com/rdf/">
  <rdf:Description rdf:about="http://www.w3schools.com">
    <si:title>W3Schools</si:title>
    <si:author>Jan Egil Refsnes</si:author>
  </rdf:Description>
</rdf:RDF>

About

Embulk parser plugin for XML with XPath support

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages