Coder Social home page Coder Social logo

feeds_xml_xsd's Introduction

Feeds XSD based Parser
===

This project parses a XML file based on a XSD Schema.

Import a XML file with XSD based mappings
---

- Install the required modules
- Configure a feed importer using this XSD Parser
- Run it.

Import a XML file then import referenced files
---

This needs feeds attached to a node.

Say you want to create nodes of type X. Then create content type feedX. Another feed creates content type Y
which are fetched by content type feedY. There is a relation between X and Y by a URL in a field from X say X.fieldY

To make this work you need to install `rules` module.

As feeds does not yet implement a rules compatible action to start an importer you need to create your own.

See the documentation for feeds and especially https://drupal.org/node/622700 which has a description for triggering this by rules.

PHP Unit
===

Run `vendor/bin/phpunit` to run the unit tests.

Manual tests
===

As an example run

```bash
$ ./tests/manual/testXsdToObject.php http://schemas.geonovum.nl/stri/2012/1.0/STRI2012.xsd

# This one fails now and then
$ ./tests/manual/testXsdToObject.php http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
$ ./tests/manual/testXsdToObject.php http://www.w3.org/2000/07/xmldsig-core/xmldsig-core-schema.xsd
```

This gives JSON output

TBD

feeds_xml_xsd's People

Contributors

clemens-tolboom avatar martijnbraam avatar lawri-van-buel avatar

Watchers

James Cloos avatar Yurii Boichenko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.