Menu

json-to-xml cannot extract data

Help
2013-05-13
2013-05-15
  • Patrick Cailly

    Patrick Cailly - 2013-05-13

    what's wrong with this config ( simple test ? ! )

    <config>
    <var-def name="params">
    <xpath expression="data(//height)">
    <json-to-xml>
    <http url="http://gallica.bnf.fr/proxy?method=M&amp;ark=btv1b7710894p.f1"/>
    </json-to-xml>
    </xpath>

    </var-def>
    
    <file action="write" path="/home/metronome/harvest/bnf_image/params.txt" charset = "utf-8" >
        <template>
            WIDTH : {$height}
        </template>
    
    </file>
    

    </config>

     
  • Patrick Cailly

    Patrick Cailly - 2013-05-13

    the config has been cut

     
  • nutcracker

    nutcracker - 2013-05-15

    you could add a root code. like this:

    <var-def name="p">
    <template>&lt;aaa&gt;${params}&lt;/aaa&gt;</template>
    </var-def>
    
     

Log in to post a comment.