This class lets you build a complete xml document and render it.
It automatically creates the root xml tag that will contain all of the content. The name of the tag is the first parameter to the constructor. You can add/change the attributes to the root tag via the set_root_attributes() or the set_root_attribute() methods.
Located in /widgets/xml/XMLDocumentClass.inc (line 29)
Container | --XMLDocumentClass
Class | Description |
---|---|
WMLDocumentClass | This class lets you build a complete WML document and render it |
SVGDocumentClass | This class lets you build a complete SVG document. |
Holds the url of dtd
Holds the name of the root xml
element as well as the DOCTYPE document_element attribute
This contains the doctype links
attributes. There can be a maximum of 2 according to the XML spec
the DOCTYPE source attribute
The http content-type
The root xml tag for all data
this is a hack to show the character encoding or not.
DEFAULT: on
This flag tells if we should output the header content type.
this is usefull for folks using this class for output not destined for a browser.
holds the xml tag object that
all content will be wrapped in
The container for all the xml-stylesheet tags
The constructor
we override this class to make sure we push all content inside the local _xml_obj tag
push content onto content stack adds content to tag as a FIFO. You can have n number of parameters. each one will get added in succession to the content.
we override this class to make sure we push all content inside the local _xml_obj tag
push content onto content stack adds content to tag as a FIFO You can only add 1 element at a time, and it will be added as a reference. So you can't do push_reference("something");, since "something" is a static.
This function is used to add a new xml-stylesheet tag to the top portion of the document.
This will automatically get added after the xml tag and before the <!DOCTYPE > tag
This function is used to output the http header for this document.
It makes a call to php's Header() to set the Content-type
This function returns the current DOCTYPE tag's source attribute
This function gets the current encoding type
This function returns the current value of the http header content type
This function is used to get the root xml tag's attributes
This function gets the document name
Same as add().
NOTE: only exists for 1.1.x compatibility
Same as add_reference NOTE : only exists for compatibility with 1.1.x
function that will render the XML Document.
we override this class to make sure we push all content inside the local _xml_obj tag
destroy existing content and start with new content.
This method is used to set the link attributes
for the DOCTYPE tag
this function is used to change the DOCTYPE tag's source attribute. By default it is set to SYSTEM.
(ie <!DOCTYPE html SYSTEM > ) ^^^^^^
NOTE: only 2 valid values 'SYSTEM', 'PUBLIC'
set the character set
This function is used to set the http header content-type for output to browsers
This sets 1 root tag attribute value pair
This function is used to set the root xml tag's attributes
Set the document name and the root tag's name.
method to update the flag that lets us know to show/render the character encoding string in the xml tag or not
this function is used to set the flag that tells this class to automatically output the content type in the http header
This method builds the DOCTYPE tag for the document
This function builds the root xml
tag that will contain all of the Document's xml tags
This function builds the _xml_stylesheet_container
This function builds the local
xml container object that holds all xml tags that are pushed into this class
function that will render the XML Document header portion upto the root tag.
Inherited From Container
Container::Container()
Container::add()
Container::add_reference()
Container::count_content()
Container::get_element()
Container::get_indent_flag()
Container::push()
Container::push_reference()
Container::render()
Container::reset_content()
Container::set_collapse()
Container::set_indent_flag()
Documentation generated on Fri, 28 Jan 2011 08:53:28 -0500 by phpDocumentor 1.4.3