Add a document to the manifest. The manifest must hold all files that make up the package of an epub publication, so the manifest must be updated when the user adds a document to an epub.

Namespace:  net.hazelhurst.epub
Assembly:  ePubLib (in ePubLib.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void AddDocument(
	string id,
	string href,
	string media_type
)
Visual Basic (Declaration)
Public Sub AddDocument ( _
	id As String, _
	href As String, _
	media_type As String _
)
Visual C++
public:
void AddDocument(
	String^ id, 
	String^ href, 
	String^ media_type
)

Parameters

id
Type: System..::.String
The id attribute for the new manifest item. This value must be unique across the whole package document.
href
Type: System..::.String
The href attribute for the new manifest item. The href holds the name of the new document e.g. "chapter02.xml".
media_type
Type: System..::.String
The media_type attribute for the new manifest item.

Examples

For an XHTML content document the media-type would be "application/xhtml+xml"

See Also