xml parsing and spliting in scala : I want to split a **sub xml from mail xml** with the help of the node name can some one help? 

sample.xml 

    <div>
    <a>A
    <b>B
    <c>C</c>
    </b>
    <d>D</d>
    </a>
    </div>

I want to split the sub xml that contains B using scala?please help




