Method WriteSource
- Namespace
- DocWright.Dom.Bibliography
- Assembly
- DocWright.Dom.dll
WriteSource(XmlDocument, BibliographySource, XmlElement?)
A source's element as Word writes it: Tag, SourceType, Guid, the names (Author, Editor, Translator under one
b:Author), then the other elements in the source's order. Elements of kept this model
does not hold (a nested element, a role it does not name) are kept, in place of being dropped.
public static XmlElement WriteSource(XmlDocument owner, BibliographySource source, XmlElement? kept = null)
Parameters
ownerXmlDocumentThe XML document the element belongs to.
sourceBibliographySourceThe source.
keptXmlElementThe element the source was read from, or null for a new source.
Returns
- XmlElement
The element.