hey i am using set in my code to get fields from a reader xml which are being errored out but it is storing it in ordered form(i.e it is internally sorting it) not in accordance to how the reader xml has the fields.What should i do so that it write the errored file in accordance to the reader xml.
sets and maps will keep the data sorted at all times. You have to apply some other ways to do this..
like, you can put your data in a vector or list too to preserve the insertion order. for look ups you can use the set and for parsing/traversing, you can use the vector.