iam reading file and writing to another file by buffered reader and writer....
<edm:OrderItem><edm:OrderItemReconciliation orderREF="1036578"></edm:OrderItem>
for the above line i can handle this way...
end5Pos = line.indexOf("\">",start5Pos);
but below line how i hndle...
<edm:OrderItem><edm:OrderItemReconciliation orderREF="1036578"/></edm:OrderItem>
if i hndle above way stringndex out of bound because end .CAN u please tell me how hndle thid