Extract xml data

Hi all,

I have the following xml file :
<xmlhead><xmlelement1>element1value</xmlelement1>\0a<xmlelement2>jjasd</xmlelement2>...</xmlhead>

As you can see there are no lines or spaces seperating the elements, just the character \0a. How can i find and print the values of a specific element? For example i would like to print in stdout the values of xmlelement1 , for all its occurences.
This is what i would like to print
1) 1st value of xmlelement1
2) 2nd value of xmlelement1

Thanks

Try:

sed -e 's/\\0a/\n/g' -e 's/<[/]*xmlhead>//g' file | sed 's!<\(.*\)>\(.*\)</.*>$!Value of \1 is  \2!g'