Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 2 made on Sunday October 31, 2010 at 11:26
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,157
XML is just ascii text. It has an indented structure, but since white space has no meaning if not in quoted strings, it is just for "pretty printing".

The metadata return looks like ascii text but the question in my mind is how are lines delimited? Carriage Return ("\r"), Line Feed ("\n") Both ("\r\n")? That is what you need to know to do the high level split e.g. A=metadata.split("\r\n"). Then for each member of the array A you can do B=A[i].split("="). B[0] will be the tag, and B[1] will be the value. Put it all in a loop for(i=......) and it should be easy.

Hope that helps


Hosting Services by ipHouse