$CLASSNAME$
	XMLTag
$SUMMARY$
	Class XMLTag
$LANG_RU$
	 XMLTag
$ABOUT$
	Class of XML tag. This class is used in XML parsing.
$LANG_RU$
	   XML.     XML.
$SYNTAX$
	XMLTag(<name>)	--> XMLTag object
$LANG_RU$
	XMLTag(<name>)	-->  XMLTag
$ATTRIBUTES$
	<className>	- Class name. Value should be "XMLTag".
$LANG_RU$
	<className>	-  . : "XMLTag".

$METHODNAME$
	XMLTag()
$SUMMARY$
	Constructor. Create tag object.
$LANG_RU$
	.   .
$SYNTAX$
	XMLTag(<name>)	--> XMLTag object
$ARGUMENTS$
	<name>		- String. Name of tag.
$LANG_RU$
	<name>		- .  .
$ENDMETHOD$

$METHODNAME$
	getName()
$SUMMARY$
	Get tag name.
$LANG_RU$
	  .
$SYNTAX$
	getName()	--> <cName>
$RETURNS$
	Tag name.
$LANG_RU$
	 .
$ENDMETHOD$

$METHODNAME$
	addChild()
$SUMMARY$
	Add child tag.
$LANG_RU$
	  .
$SYNTAX$
	addChild(<tag>,[<position>])
$ARGUMENTS$
	<tag>		- XMLTag object. Child tag to be added.
	<position>	- Number. Tag position.
$LANG_RU$
	<tag>		-  XMLTag.   .
	<position>	- .    .
$ENDMETHOD$

$METHODNAME$
	removeChild()
$SUMMARY$
	Remove child tag.
$LANG_RU$
	  .
$SYNTAX$
	removeChild(<position>)
$ARGUMENTS$
	<position>	- Number. Child tag position.
$LANG_RU$
	<position>	- .    .
$ENDMETHOD$

$METHODNAME$
	countChilds()
$SUMMARY$
	Get child tag count.
$LANG_RU$
	  .
$SYNTAX$
	countChilds()	--> <nCount>
$RETURNS$
	Number of child tags.
$LANG_RU$
	  .
$ENDMETHOD$

$METHODNAME$
	getChild()
$SUMMARY$
	Get child tag by its number.
$LANG_RU$
	     .
$SYNTAX$
	getChild(<position>) --> <oTag>
$ARGUMENTS$
	<position>	- Number. Child tag position.
$LANG_RU$
	<position>	- .   .
$RETURNS$
	Child tag.
$LANG_RU$
	 .
$ENDMETHOD$

$METHODNAME$
	getChilds()
$SUMMARY$
	Get all child tags.
$LANG_RU$
	   .
$SYNTAX$
	getChilds() --> <aTags>
$RETURNS$
	Array of child tags.
$LANG_RU$
	  .
$ENDMETHOD$

$METHODNAME$
	setAttribute()
$SUMMARY$
	Set value to attribute.
$LANG_RU$
	  .
$SYNTAX$
	setAttribute(<attrName>,<attrValue>)
$ARGUMENTS$
	<attrName>	- String. Attribute name.
	<attrValue>	- Any type. Attribute value. If type of value is number, boolean or date value will be converted to string.
$LANG_RU$
	<attrName>	- .  .
	<attrValue>	-  .  .    - ,    ,     .
$ENDMETHOD$

$METHODNAME$
	attribute()
$SUMMARY$
	Get child tag by its number.
$LANG_RU$
	     .
$SYNTAX$
	attribute(<attrName>,<defVal>) --> <cValue>
$ARGUMENTS$
	<attrName>	- String. Attribute name.
	<defVal>	- Any type. Default value for non-existing attribute.
$LANG_RU$
	<attrName>	- .  .
	<defVal>	-  .      .
$RETURNS$
	Attribute value.
$LANG_RU$
	 .
$ENDMETHOD$

$METHODNAME$
	getAttributes()
$SUMMARY$
	Get all attributes with their values.
$LANG_RU$
	     .
$SYNTAX$
	getAttributes() --> <aAttributes>
$RETURNS$
	Two-dimensional array of pair attribute and value.
$LANG_RU$
	      .
$ENDMETHOD$

$METHODNAME$
	removeAttribute()
$SUMMARY$
	Remove attribute.
$LANG_RU$
	 .
$SYNTAX$
	removeAttribute(<attrName>)
$ARGUMENTS$
	<attrName>	- String. Attribute name.
$LANG_RU$
	<attrName>	- .  .
$ENDMETHOD$

$METHODNAME$
	setText()
$SUMMARY$
	Set text into the tag.
$LANG_RU$
	  .
$SYNTAX$
	setText(<text>)
$ARGUMENTS$
	<text>	- String. Text into the tag.
$LANG_RU$
	<text>	- .  .
$ENDMETHOD$

$METHODNAME$
	getText()
$SUMMARY$
	Get text into the tag.
$LANG_RU$
	  .
$SYNTAX$
	getText()	--> <cText>
$RETURNS$
	Text into the tag.
$LANG_RU$
	 .
$ENDMETHOD$

$METHODNAME$
	getParent()
$SUMMARY$
	Get parent tag.
$LANG_RU$
	  .
$SYNTAX$
	getParent()	--> <oParentTag>
$RETURNS$
	Parent tag.
$LANG_RU$
	 .
$ENDMETHOD$

$METHODNAME$
	dump()
$SUMMARY$
	Dump current tag and all its children to XML format.
$LANG_RU$
	    XML        .
$SYNTAX$
	dump([<encoding>],[<level>])	--> <cXML>
$ARGUMENTS$
	<encoding>	- String. Text encoding.
	<level>		- Number. Indent level (*4 spaces). Default value is 0.
$LANG_RU$
	<encoding>	- .  .
	<level>		- .   (*4 ).    - 0.
$RETURNS$
	Tag and all its children in XML format.
$LANG_RU$
	         XML.
$ENDMETHOD$

$METHODNAME$
	XPath()
$SUMMARY$
	Execute XPath query with the current tag context.
$LANG_RU$
	  XPath    .
$SYNTAX$
	XPath()	--> <Result>
$RETURNS$
	XPath query result.
$LANG_RU$
	  XPath.
$ENDMETHOD$

$EXAMPLES$
	f := XMLTree()
	f:parseFile( "component.xml" )
	tag := f:getRoot()
	tag:setAttribute( "version", "1.1" )
	?? f:dump()

$PLATFORMS$
	No dependies of platform.
$LANG_RU$
	   .
$SEEALSO$
$AUTHOR$
	Andrey Cherepanov <skull@eas.lrn.ru>
$LANG_RU$
	  <skull@eas.lrn.ru>
$LASTDATE$



