Constructor
new PodcastWriter(header)
Parameters:
Name | Type | Description |
---|---|---|
header |
String | Optional XML header. |
- Source:
Extends
Members
(static, readonly) XMLHEADER :String
A typical XML header as default.
Type:
- String
- Source:
Methods
addCategory(name, domain, parent)
Add a category element to an arbitrary element.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the category. |
domain |
String | The domain of the category. |
parent |
jala.XmlWriter.XmlElement | The optional parent element. |
- Inherited From:
- Source:
addItem(item)
Add an item element to the channel element.
Parameters:
Name | Type | Description |
---|---|---|
item |
jala.XmlWriter.XmlElement | The item element to add. |
- Inherited From:
- Source:
addItunesCategory(name, subName, parent)
Add an iTunes Podcast category.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The category's name. |
subName |
String | The (optional) sub-category's name. |
parent |
jala.XmlWriter.XmlElement | Optional parent element to add the category to. |
- Source:
addNamespace(name, url)
Add a namespace to this writer.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | The name of the namespace. |
url |
String | The URL string of the namespace. |
- Inherited From:
- Source:
Returns:
The XML root element.
clone(The)
Clone this XML writer.
Parameters:
Name | Type | Description |
---|---|---|
The |
Object | clone templare. |
- Inherited From:
- Source:
Returns:
The cloned XML writer.
createElement(data)
Get a newly created XML element.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The XML data as object tree. |
- Inherited From:
- Source:
Returns:
The resulting XML element.
createItem(data)
Get a new and innocent item element.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | An XmlWriter-compliant object structure. |
- Inherited From:
- Source:
Returns:
A new and innocent item element.
extend(template, ext)
Extend a template object.
Parameters:
Name | Type | Description |
---|---|---|
template |
Object | The template object. |
ext |
Object | The extension object. |
- Inherited From:
- Source:
Returns:
The XML writer.
extendChannel(ext)
Add child elements to the channel template.
Parameters:
Name | Type | Description |
---|---|---|
ext |
Array | List of additional child elements. |
- Inherited From:
- Source:
extendItem(ext)
Add child elements to the item template.
Parameters:
Name | Type | Description |
---|---|---|
ext |
Array | List of additional child elements. |
- Inherited From:
- Source:
getChannel()
Get the writer's channel element.
- Inherited From:
- Source:
Returns:
The writer's channel element.
getRoot()
Get the writer's root element.
- Inherited From:
- Source:
Returns:
The writer's root element.
setChannel(data)
Populate the channel element with data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | An XmlWriter-compliant object structure. |
- Inherited From:
- Source:
Returns:
The populated channel element.
setImage(data)
Populate the image element with data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | An XmlWriter-compliant object structure. |
- Inherited From:
- Source:
setTextInput(data)
Populate the textInput element with data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | An XmlWriter-compliant object structure. |
- Inherited From:
- Source:
toString()
Get the XML output as string.
- Inherited From:
- Source:
Returns:
The XML output.
write()
Write the XML to the response buffer.
- Inherited From:
- Source: