Witam
Jestem początkujący i mam mały problem z uzyskaniem nazwy pliku, który jest zapisany w pliku xml.
Prośiłbym bardzo o podanie funkcji jQuery która taka nazwę pliku zwróci.
Oto przykład:
Nazwa jaką chcę uzyskać to: "a_0_120_0_0.jpg"
teoszkę objaśnień nazy pliku
"a_" - jakaś nazwa
"0_" - seq
"120_" - value
"0_" - cols-1
"0_" - rows-1
A fragment kodu XML opisujący ten obrazek wygląda tak:
<?xml version="1.0" encoding="UTF-8"?>
<sequence maxHeight="4383" maxWidth="3211" name="a_" >
<img seq="0" ext="jpg" name="a_0" >
<scales>
<scale width="3211" cols="4" tile_width="803" tile_height="877" height="4383" rows="5" value="100.0" name="100.0%" />
<scale width="1605" cols="2" tile_width="803" tile_height="731" height="2191" rows="3" value="50.0" name="50.0%" />
<scale width="802" cols="1" tile_width="802" tile_height="548" height="1095" rows="2" value="25.0" name="25.0%" />
<scale width="385" cols="1" tile_width="385" tile_height="525" height="525" rows="1" value="12.0" name="12.0%" />
<scale width="224" cols="1" tile_width="224" tile_height="306" height="306" rows="1" value="7.0" name="7.0%" />
</scales>
</img>
<img seq="1" ext="jpg" name="a_1" >
<scales>
<scale width="3211" cols="4" tile_width="803" tile_height="877" height="4383" rows="5" value="100.0" name="100.0%" />
<scale width="1605" cols="2" tile_width="803" tile_height="731" height="2191" rows="3" value="50.0" name="50.0%" />
<scale width="802" cols="1" tile_width="802" tile_height="548" height="1095" rows="2" value="25.0" name="25.0%" />
<scale width="385" cols="1" tile_width="385" tile_height="525" height="525" rows="1" value="12.0" name="12.0%" />
<scale width="224" cols="1" tile_width="224" tile_height="306" height="306" rows="1" value="7.0" name="7.0%" />
</scales>
</img>
będę wdzięczny za każdą pomoc