C# Class BloomTemp.TempFileUtils

Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
CleanupHtml5 ( string xhtml ) : string
CreateHtm5FromXml ( XmlNode dom ) : TempFile
CreateHtml5StringFromXml ( XmlNode dom ) : string

Create a string that could be the contents of an HTML5 file and which corresponds to the specified DOM (presumed to contain appropriate content). This method has no business in this class except that it is so parallel to CreateHtml5FromXml that I wanted to keep them together.

GetXmlWriterSettingsForHtml5 ( ) : XmlWriterSettings

Return the settings that should be used for an XmlWriter to write a DOM as HTML5. (The writer results should then be passed through CleanupHtml5.)

Method Details

CleanupHtml5() public static method

public static CleanupHtml5 ( string xhtml ) : string
xhtml string
return string

CreateHtm5FromXml() public static method

public static CreateHtm5FromXml ( XmlNode dom ) : TempFile
dom System.Xml.XmlNode
return TempFile

CreateHtml5StringFromXml() public static method

Create a string that could be the contents of an HTML5 file and which corresponds to the specified DOM (presumed to contain appropriate content). This method has no business in this class except that it is so parallel to CreateHtml5FromXml that I wanted to keep them together.
public static CreateHtml5StringFromXml ( XmlNode dom ) : string
dom System.Xml.XmlNode
return string

GetXmlWriterSettingsForHtml5() public static method

Return the settings that should be used for an XmlWriter to write a DOM as HTML5. (The writer results should then be passed through CleanupHtml5.)
public static GetXmlWriterSettingsForHtml5 ( ) : XmlWriterSettings
return System.Xml.XmlWriterSettings