Table of Contents

Class XhtmlDocumentUtility

Namespace
Songhay.Xml
Assembly
SonghayCore.dll

Static members for XHTML Documents.

public static class XhtmlDocumentUtility
Inheritance
XhtmlDocumentUtility
Inherited Members

Properties

Xhtml

XHTML Namespace

public static XNamespace Xhtml { get; }

Property Value

XNamespace

Methods

GetDocument(XDocument?, string?)

Loads the XhtmlDocument.

public static XhtmlDocument? GetDocument(XDocument? document, string? webPath)

Parameters

document XDocument

The XML document.

webPath string

The public web path.

Returns

XhtmlDocument

GetDocument(XDocument?, string?, bool)

Loads the XhtmlDocument.

public static XhtmlDocument? GetDocument(XDocument? document, string? webPath, bool useXhtmlNamespace)

Parameters

document XDocument

The XML document.

webPath string

The public web path.

useXhtmlNamespace bool

if set to true use XHTML namespace (true by default).

Returns

XhtmlDocument

LoadDocument(string?, string?)

Loads the XhtmlDocument.

public static XhtmlDocument? LoadDocument(string? pathToDocument, string? webPath)

Parameters

pathToDocument string

The path to document.

webPath string

The public web path.

Returns

XhtmlDocument

WriteDocumentIndex(string?, string?, string?, string?, string?)

Writes the index of XHTML documents.

public static void WriteDocumentIndex(string? indexFileName, string? indexTitle, string? publicRoot, string? pathToDirectory, string? pathToOutput)

Parameters

indexFileName string

Name of the index file.

indexTitle string

The index title.

publicRoot string

The public root.

pathToDirectory string

The path to the specified directory.

pathToOutput string

The path to output.