-
- header = doc.createElement("FarHeader")
- name = doc.createElement("FarName")
- name.appendChild(doc.createTextNode(far.FarName))
- header.appendChild(name)
- guidVal = doc.createElement("GuidValue")
- guidVal.appendChild(doc.createTextNode(genguid()))
- header.appendChild(guidVal)
- ver = doc.createElement("Version")
- ver.appendChild(doc.createTextNode(far.Version))
- header.appendChild(ver)
- abstract = doc.createElement("Abstract")
- abstract.appendChild(doc.createTextNode(far.Abstract))
- header.appendChild(abstract)
- desc = doc.createElement("Description")
- desc.appendChild(doc.createTextNode(far.Description))
- header.appendChild(desc)
- copy = doc.createElement("Copyright")
- copy.appendChild(doc.createTextNode(far.Copyright))
- header.appendChild(copy)
- lic = doc.createElement("License")
- lic.appendChild(doc.createTextNode(far.License))
- header.appendChild(lic)
- spec = doc.createElement("Specification")
- spec.appendChild(doc.createTextNode("FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052"))
- header.appendChild(spec)
+
+ header = XmlAppendChildElement(doc.documentElement, "FarHeader")
+
+ XmlAppendChildElement(header, "FarName", far.FarName)
+ XmlAppendChildElement(header, "GuidValue", genguid())
+ XmlAppendChildElement(header, "Version", far.Version)
+ XmlAppendChildElement(header, "Abstract", far.Abstract)
+ XmlAppendChildElement(header, "Description", far.Description)
+ XmlAppendChildElement(header, "Copyright", far.Copyright)
+ XmlAppendChildElement(header, "License", far.License)
+ XmlAppendChildElement(header, "Specification", "FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052")