How can I extract the data for a specific XML element and convert it into byte array
My XML file;
<?xml version="1.0" encoding="utf-8" ?>
<root>
<creditcard>
<number>19834209</number>
<expiry>02/02/2002</expiry>
</creditcard>
<name>
<first>Mary</first>
<mi>V</mi>
<last>Jones</last>
</name>
<personal>
<dob>01011966</dob>
<gender>male</gender>
</personal>
</root>
I want to extract the element <creditcard> and all nodes only within the <creditcard> element and convert it into ByteArray?
Can someone pl. show me the example.