instance method REXML::Parent#index

index(child) -> Integer | nil[permalink][rdoc][edit]

child の子ノード列上での位置を返します。

child が子ノードでない場合には nil を返します。