PHP‎ > ‎

SimpleXML


  • simplexml_load_file
XML 파일로부터 심플XML 객체를 만듭니다.
PHP 5
object simplexml_load_file ( string $filename [, string $class_name = "SimpleXMLElement" [, int $options = 0 [, string $ns [, bool $is_prefix = false ]]]] )

  • simplexml_import_dom
DOM노드로부터 심플XML객체를 만듭니다.
PHP 5
SimpleXMLElement simplexml_import_dom ( DOMNode $node [, string $class_name = "SimpleXMLElement" ] )

  • simplexml_load_string
XML문자열로부터 심플 XML객체를 만듭니다.
PHP 5
object simplexml_load_string ( string $data [, string $class_name = "SimpleXMLElement" [, int $options = 0 [, string $ns [, bool $is_prefix = false ]]]] )




SimpleXMLElement

  • SimpleXMLElement::__construct 
심플XML 객체의 생성자
PHP 5 >= 5.0.1
public SimpleXMLElement::__construct() ( string $data [, int $options = 0 [, bool $data_is_url = false [, string $ns = "" [, bool $is_prefix = false ]]]] )

  • SimpleXMLElement::asXML
심플XML 객체를 XML문자열로 반환합니다.
PHP 5 >= 5.0.1
public mixed SimpleXMLElement::asXML ([ string $filename ] )

  • SimpleXMLElement::saveXML
SimpleXMLElement::asXML()과 같음.
PHP 5 >= 5.2.0

  • SimpleXMLElement::getName
XML요소의 이름을 반환합니다.
PHP 5 >= 5.1.3
public string SimpleXMLElement::getName ( void )

  • SimpleXMLElement::attributes
XML의 속성과 값을 반환합니다.
PHP 5 >= 5.0.1
public SimpleXMLElement SimpleXMLElement::attributes ([ string $ns = NULL [, bool $is_prefix = false ]] )

  • SimpleXMLElement::count
해당 XML요소의 자식 요소 갯수를 반환합니다. 5.3 이하의 버전에서는 count()를 사용.
PHP 5 >= 5.3.0
public int SimpleXMLElement::count ( void )

  • SimpleXMLElement::children
해당 노드의 자식노드들을 반환합니다.
PHP 5 >= 5.0.1
public SimpleXMLElement SimpleXMLElement::children ([ string $ns [, bool $is_prefix = false ]] )

  • SimpleXMLElement::addChild
해당 노드에 자식 노드를 추가합니다.
PHP 5 >= 5.1.3
public SimpleXMLElement SimpleXMLElement::addChild ( string $name [, string $value [, string $namespace ]] )

  • SimpleXMLElement::addAttribute
해당 요소에 속성을 추가합니다.
PHP 5 >= 5.1.3
public void SimpleXMLElement::addAttribute ( string $name , string $value [, string $namespace ] )

  • SimpleXMLElement::getDocNamespaces
문서에 정의된 네임스페이스를 반환합니다.
PHP 5 >= 5.1.2
public array SimpleXMLElement::getDocNamespaces ([ bool $recursive = false ] )

  • SimpleXMLElement::getNamespaces
문서에 사용된 네임스페이스를 반환합니다.
PHP 5 >= 5.1.2
public array SimpleXMLElement::getNamespaces ([ bool $recursive = false ] )

  • SimpleXMLElement::xpath
Runs XPath query on XML data
PHP 5 >= 5.2.0
public array SimpleXMLElement::xpath ( string $path )

  • SimpleXMLElement::registerXPathNamespace 
Creates a prefix/ns context for the next XPath query
PHP 5 >= 5.2.0
public bool SimpleXMLElement::registerXPathNamespace ( string $prefix , string $ns )


Comments