Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple xml reader for a transmogrifier pipeline

Project Description

A simple transmogrifier blueprint to read xml files of the form

<container>
  <item>
    <field1>value</field1>
    <field2>value</field2>
    ...
  </item>
  ...
</container>

Example

The following example uses funnelweb and ploneremote to upload content in an xml file from the commandline

First create a custom pipeline.cfg

[transmogrifier]
pipeline =
    xmlsource
    ploneupload
    ploneupdate

[xmlsource]
blueprint = transmogrify.xmlsource
xmlfile = items.xml
pathtag = field1
itemtag = item
type = MyCustomType

[ploneupload]
blueprint = transmogrify.ploneremote.remoteconstructor
target = http://admin:admin@localhost/Plone/mycontent

[ploneupdate]
blueprint = transmogrify.ploneremote.remoteschemaupdater
target = ${ploneupload:target}

Now install funnelweb using a buildout.cfg

[buildout]
parts = convertxml

[convertxml]
recipe = funnelweb
pipeline=wynhotels.cfg
eggs = transmogrify.xmlsource

bootstrap

$> easy_install zc.buildout
$> buildout init
$> bin/buildout

and now run your custom converter

$> bin/convertxml

The converter parses the xml and uploads to plone via xmlrpc. or construct your own pipeline to transform the content into whatever or whereever.

Release History

Release History

This version
History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
transmogrify.xmlsource-1.0.zip (6.2 kB) Copy SHA256 Checksum SHA256 Source Feb 24, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting