<base> : CookXml Common Tag
This tag is used to refer to the parent tag and parent object passed to xmlDecode call. It really should be used only as the root of the document, where such difficulty arises.
Additional Notes
Usually, when the parent object can be referenced via id or a variable, one can also use idref or varref tags to do the same thing. The advantage of using the base tag is that one can be blind about the parent.Examples
The following XML code adds a menu to the parent object, without knowing if the parent is a menubar object or another menu object.<base> <menu text="abc"/> <menu text="def"/> <menu text="ghi"/> </base>
PDF
History


