Yes I know, xmldoc.getElementsByTagName('copyright')[0] can be memoized. Would make the code uglier though.