Bloom.Book.BookData.SetInnerXmlPreservingLabel C# (CSharp) Method

SetInnerXmlPreservingLabel() private method

some templates have a element that javascript turns into a bubble describing the field these labels are temporary, so the go away and are not saved to data-book. But when we then take an xmatter template page and replace the contents with what was in data-book, we don't want to clobber the elements that are already in there. BL-3078
private SetInnerXmlPreservingLabel ( string key, XmlElement node, string form ) : void
key string
node System.Xml.XmlElement
form string
return void
        private void SetInnerXmlPreservingLabel(string key, XmlElement node, string form)
        {
            var labelElement = node.SelectSingleNode("label");
            SetNodeXml(key, form, node);
            if (labelElement != null)
                node.AppendChild(labelElement);
        }