Skip to main content

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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

transmogrify.xmlsource-1.0.zip (6.2 kB view details)

Uploaded Source

File details

Details for the file transmogrify.xmlsource-1.0.zip.

File metadata

File hashes

Hashes for transmogrify.xmlsource-1.0.zip
Algorithm Hash digest
SHA256 4e47307ca587520e3ba2fe2fb4b8d004211d9fb0c886199730b3a8808c245a62
MD5 4254a0457603068bd42d1b0968a28a2b
BLAKE2b-256 f9fb9babfd16224f49594cfef280218f310378caaa9565f8fc494b792972ddb4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page