Skip to content

XData

Bases: Component

Defining and Using XData Blocks

XData Name [ Keywords ]
{
    Content
}

content

Content of XData, can be data of any arbitrary format, as string or list of string.

Specify Mime type with keywords={"MimeType": type}.

keywords = field(default_factory=dict, kw_only=True)

XData Syntax and Keywords

Optional dict used to specify keywords for this component.

Use {"Keyword": None} for keywords that do not have a value.

Valid XData keywords
  • SchemaSpec — Optionally specifies an XML schema against which the XData can be validated.
  • XMLNamespace — Optionally specifies the XML namespace to which the XData block belongs. You can also, of course, include namespace declarations within the XData block itself.
  • MimeType — The MIME type (more formally, the Internet media typeOpens in a new tab) of the contents of the XData block. The default is text/xml.