PHP 클래스 Prado\Xml\TXmlElement
TXmlElement represents an XML element node.
You can obtain its tag-name, attributes, text between the opening and closing
tags via the TagName, Attributes, and Value properties, respectively.
You can also retrieve its parent and child elements by Parent and Elements
properties, respectively.
TBD: xpath
파일 보기
프로젝트 열기: pradosoft/prado
1 사용 예제들
공개 메소드들
비공개 메소드들
메소드 상세
$element = new TXmlElement('tag');
echo $element;
or
$element = new TXmlElement('tag');
$xml = (string)$element;
public getAttributes ( ) : TMap |
리턴 |
Prado\Collections\TMap |
list of attributes |
getElementByTagName()
공개 메소드
public getElementByTagName ( $tagName ) : TXmlElement |
리턴 |
TXmlElement |
the first child element that has the specified tag-name, null if not found |
public getElements ( ) : TXmlElementList |
리턴 |
TXmlElementList |
list of child elements |
getElementsByTagName()
공개 메소드
public getElementsByTagName ( $tagName ) : Prado\Collections\TList |
리턴 |
Prado\Collections\TList |
list of all child elements that have the specified tag-name |
public getParent ( ) : TXmlElement |
리턴 |
TXmlElement |
parent element of this element |
public getValue ( ) : string |
리턴 |
string |
text enclosed between opening and closing tag of this element |