これは私のXMLファイルのスニペットです
<data page="1" totalpages="1" records="10" totalrecords="10">
<storylistsview>
<story_id>158</story_id>
親ノードの records 属性にアクセスしたい。誰でも簡単にそれを行う方法を説明できますか? xml の残りの部分に問題なくアクセスできます。
私は試しstage1 = $(xml).attr('records');
てみましたが、運がありません