No commit activity in last 3 years
No release in over 3 years
XPath parser plugin is Embulk plugin to fetch entries in xml format use XPath.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0
~> 10.0

Runtime

~> 1.6
 Project Readme

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>