I am not sure what a good way for representing NodeElement in code is. Here is the link to documentation http://telegra.ph/api#NodeElement