Did I find the right examples for you? yes no

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
XML model information and metadata extraction cues from an examplotron document

src/a/k/Akara-2.0.0a4/lib/demo/moincms.py   Akara(Download)
from amara.namespaces import *
from amara.bindery.model import generate_metadata
from amara.bindery.model.examplotron import examplotron_model
from amara.writers.struct import *
from amara.bindery.html import parse as htmlparse

src/a/m/Amara-2.0.0/test/bindery/test_examplotron_model.py   Amara(Download)
from amara import bindery
from amara.bindery.model import generate_metadata
from amara.bindery.model.examplotron import examplotron_model
 
 
    def test_metadata_extraction(self):
        """Test metadata extraction"""
        model = examplotron_model(MODEL_A)
        doc = bindery.parse(INSTANCE_A_1, model=model)
        metadata = generate_metadata(doc)