Dear all,
i want to transform current Song-Title, Artist and Album from an autogenerated xml-file:
<?xml version="1.0" encoding="UTF-8"?>
<now_playing playing="1" timestamp="2016-10-28T12:59:41Z">
<song timestamp="2016-10-28T12:59:40Z">
<title>Salva Mea</title>
<artist>Faithless</artist>
<album>Salva Mea</album>
<genre>Dance</genre>
<kind>MPEG-Audiodatei</kind>
<track>1</track>
<numTracks>1</numTracks>
<year>1996</year>
<comments></comments>
<time>226</time>
<bitrate>256</bitrate>
<disc>1</disc>
<numDiscs>1</numDiscs>
<playCount>2</playCount>
<compilation>No</compilation>
<urlAmazon/>
<urlApple>https://itunes.apple.com/us/album/salva-mea/id263689576?i=263689894&uo=4&partnerId=11&at=11lp2h</urlApple>
<imageSmall/>
<image/>
<imageLarge/>
<composer></composer>
<grouping></grouping>
<file></file>
<artworkID>6e005f4de1b24bab7e34dcdc0ccd59e6</artworkID>
</song>
</now_playing>
i tried this with the following .items-file:
String 21_Title "Title [%s]" { http="<[http://192.xxx.xxx.xx:8080/static/iTunes/now_playing.xml:30000:XPATH(/now_playing/song[1]/title)]" }
String 21_Artist "Artist [%s]" { http="<[http://192.xxx.xxx.xx:8080/static/iTunes/now_playing.xml:30000:XPATH(/now_playing/sing[1]/artist)]" }
String 21_Album "Artist [%s]" { http="<[http://192.xxx.xxx.xxx:8080/static/iTunes/now_playing.xml:30000:XPATH(/now_playing/song[1]/album)]" }
but nothing happens (XPath Transformation are installed), not even an error in the log as i got when i tried to write a xslt-Transformation.
Unfortunately the XPath-Transformationof oH1 or oH2 isn’t documented everywhere - i found only this in the wiki:
Do anybody works with oH2, XML-Files und XPATH-Transformation and can give me a working example?
Regards,
Heiko