Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmlExtensions.cs
1using System.Text;
2using System.Threading.Tasks;
3using System.Xml;
5
7{
11 public static class XmlExtensions
12 {
18 public static async Task<string> ExportXml(this MarkdownDocument Document)
19 {
20 StringBuilder Xml = new StringBuilder();
21 await Document.ExportXml(Xml);
22 return Xml.ToString();
23 }
24
30 public static Task ExportXml(this MarkdownDocument Document, StringBuilder Xml)
31 {
32 return Document.ExportXml(Xml, XML.WriterSettings(true, true));
33 }
34
41 public static async Task ExportXml(this MarkdownDocument Document, StringBuilder Xml, XmlWriterSettings Settings)
42 {
43 Settings.ConformanceLevel = ConformanceLevel.Fragment;
44
45 using (XmlRenderer Renderer = new XmlRenderer(Xml, Settings))
46 {
47 await Document.RenderDocument(Renderer);
48 }
49 }
50 }
51}
Contains a markdown document. This markdown document class supports original markdown,...
async Task RenderDocument(IRenderer Output)
Renders the document using provided output format.
Markdown rendering extensions for Xamarin.Forms XAML.
static async Task< string > ExportXml(this MarkdownDocument Document)
Exports the parsed document to XML.
static async Task ExportXml(this MarkdownDocument Document, StringBuilder Xml, XmlWriterSettings Settings)
Exports the parsed document to XML.
static Task ExportXml(this MarkdownDocument Document, StringBuilder Xml)
Exports the parsed document to XML.
Renders XML from a Markdown document.
Definition: XmlRenderer.cs:17
Helps with common XML-related tasks.
Definition: XML.cs:19
static XmlWriterSettings WriterSettings(bool Indent, bool OmitXmlDeclaration)
Gets an XML writer settings object.
Definition: XML.cs:1177