4

Reading block by block in XML

view full story
linux-howto

http://www.unix.com – Hi , Can you pleas help me with below requirement? There is only one big line in the file. I need to parse block by block(particular tag values, 'Val' in below case) to get different parameters. Example:- Portion of the Input string:- <?xml version="1.1" encoding="UTF-8"?> <Data><Val Ti="1342750845538" Du="0" De="blackberry8520_ver1RIM" Db="encyclopedia" Pdb="" Uq="0" Dq="0" qry="sdsds?q=dsds" ab="dsds" Dc="4" Te=" Ca="xxx" Sc="320.24 (HowTos)