partial implementation of buildXmlNode in class Note