You can use DOMParser here to create a dom object for verifying the smil string is validate or not. (And access / verify child nodes as well )