I want to select only the first child elements of the Row. that is <MID></MID> <MCC></MCC> <Merch_Name></Merch_Name> <Merch_City></Merch_City> <Merch_Zip></Merch_Zip> <Merch_State></Merch_State> <RunDate></RunDate> <Bank></Bank> <Rpt_ID></Rpt_ID> <Rpt_Start_Date></Rpt_Start_Date> <Rpt_End_Date></Rpt_End_Date> <Rpt_Title></Rpt_Title> i dont want to hardcode but i want to fetch if the values of the first child. Does any of you have the solution for this.
Was the example you gave supposed to be what you want as output? Because it isn't anything like the description you gave. The first element children of your Row elements are just
I don't know how to describe your example at all. You don't seem to want Trans elements. And you seem to want the elements you do want to have no text children. So, sorry, I don't get it. Could you try a different explanation?
Originally posted by Kranti Aella: hope i am clear this time.
No. You just provide an incomplete list of elements you want. (At least I think you want the elements, it's not clear.) They look arbitrary to me. There is no way to guess what "..." means.
Okay, let's pick an element at random.
Do you want to write this element to the output? If so, why? If not, why not? And do you want just the start and end tags, or do you want the text content as well, or just the text content?
Joined: Apr 04, 2006
Paul thanks for your intrest to help me. I could finally achieve the ouput what i wanted. I wanted to retreive all the text of "for each ROW element print the text of all childs of "ROW" and text of elements of Trans"