hi,
I have a XML in a String coming from an external input. The problem is that this string is getting some junk characters appended to in the last. I need to find the lenght of the string only till the correct part. once i get this lenght i can assign a char array for this lenght and put my string into this array and pass it for processiing. basically i have to get rid of the junk. any ideas?
example string
"<?xml version="1.0" encoding="UTF-16"?>
<Company>
<Division>
<Employee>
</Employee>
</Division>
</Company>
"