text
stringlengths
1
254
output
stringlengths
2
255
(no version information, might be only in CVS)
(no version information, might be only in CVS)
In versions of PHP before 4.3 this has been the class Dtd, but the DOM Standard does not know such a class.
この関数は、クラス DomDocumentType のオブジェ クトを返します。4.3より前のバージョンのPHPでは、このオブジェクト は、クラス Dtd でしたが、DOM標準にはそのよう なクラスはありません。
Prev
クラス DomDocumentType のメソッドも参照下さ い。
This function returns the root element node of a document.
(no version information, might be only in CVS)
The other node - - the comment - - is not returned.
This function returns the root element node of a document.
?php include( "example.inc"); if(!$dom = domxml_open_mem($xmlstr)) {echo "Error while parsing the document\n"; exit;} $root = $dom - document_element(); print_r($root);?
The following example returns just the element with name CHAPTER and prints it. The other node -- the comment -- is not returned.
DomDocument - doctype
例 1Retrieving root element
The first parameter specifies the name of the filename and the second parameter, whether it should be compressed or not.
(no version information, might be only in CVS)
Prev
例 1Creating a simple HTML document header
DomDocument - document_element
See also DomDocument_dump_mem() DomDocument_html_dump_mem().
Warning
(no version information, might be only in CVS)
Use this function at your own risk.
この関数は、 実験的 なステータスにあります。これは、この関数の 動作、関数名、ここで書かれていること全てがPHPの将来のバージョンで予告 なく変更される可能性があることを意味します。注意を喚起するとともに自分 のリスクでこの関数を使用して下さい。
The format specifies whether the output should be neatly formatted, or not.
Creates an XML document from the dom representation. This function usually is called after building a new dom document from scratch as in the example below. The format specifies whether the output should be neatly formatted, or not.
Creating a simple HTML document header
例 1Creating a simple HTML document header
The first parameter was added in PHP 4.3.0.
注意 The first parameter was added in PHP 4.3.0.
Prev
See also DomDocument_dump_file(), DomDocument_html_dump_mem().
According to the DOM standard this requires a DTD which defines the attribute ID to be of type ID, though the current implementation simply does an xpath search for "/ /*[@ID = '%s']".
(no version information, might be only in CVS)
This behaviour is likely to be fixed, so do not rely on the current behaviour.
DomDocument_add_root() も参照下さい。
See also domdocument_add_root()
(no version information, might be only in CVS)
DomDocument - get_element_by_id
DomDocument_add_root() も参照下さい。
(no version information, might be only in CVS)
(no version information, might be only in CVS)
This function usually is called after building a new dom document from scratch as in the example below.
Creates an HTML document from the dom representation. This function usually is called after building a new dom document from scratch as in the example below.
Creating a simple HTML document header
例 1Creating a simple HTML document header
Prev
See also DomDocument_dump_file(), DomDocument_html_dump_mem().
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
This function returns the name of the document type.
(no version information, might be only in CVS)
DomDocumentType - internal_subset
This function returns the name of the document type.
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
This function returns the public id of the document type.
(no version information, might be only in CVS)
?php include( "example.inc"); if(!$dom = domxml_open_mem($xmlstr)) {echo "Error while parsing the document\n"; exit;} $doctype = $dom - doctype(); echo $doctype - public_id();?
This function returns the public id of the document type.
DomDocumentType - notations
The following example echos nothing.
DomDocumentType - system_id
例 1Retrieving the public id
Returns the system id of the document type.
(no version information, might be only in CVS)
Example 1.
Returns the system id of the document type.
?php include( "example.inc"); if(!$dom = domxml_open_mem($xmlstr)) {echo "Error while parsing the document\n"; exit;} $doctype = $dom - doctype(); echo $doctype - system_id();?
The following example echos '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'.
DomElement - get_attribute_node
例 1システムIDを取得する
Warning
(no version information, might be only in CVS)
Use this function at your own risk.
この関数は、 実験的 なステータスにあります。これは、この関数の 動作、関数名、ここで書かれていること全てがPHPの将来のバージョンで予告 なく変更される可能性があることを意味します。注意を喚起するとともに自分 のリスクでこの関数を使用して下さい。
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Returns the attribute with name name of the current node.
(no version information, might be only in CVS)
See also domelement_set_attribute()
Returns the attribute with name name of the current node.
DomElement - get_elements_by_tagname
See also DomElement_set_attribute()
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Sets an attribute with name name ot the given value.
(no version information, might be only in CVS)
?php $doc = domxml_new_doc( "1.0"); $node = $doc - create_element("para"); $newnode = $doc - append_child($node); $newnode - set_attribute("align", "left");?
Sets an attribute with name name ot the given value. If the attribute does not exist, it will be created.
Prev
例 1属性を設定する
DomElement - remove_attribute
DomElement_get_attribute() も参照する。
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
(no version information, might be only in CVS)
(no version information, might be only in CVS)
Prev
See also domdocument_create_element_ns(), domnode_set_namespace()
This functions appends a child to an existing list of children or creates a new list of children.
(no version information, might be only in CVS)
(PHP 4.3) Before a new child is appended it is first duplicated.
This functions appends a child to an existing list of children or creates a new list of children. The child can be created with e.g. DomDocument_create_element(), DomDocument_create_text() etc. or simply by using any other node.
(PHP = 4.3) The new child newnode is first unlinked from its existing context, if it already existed in a document.
The following example will add a new element node to a fresh document and sets the attribute "align" to "left".
This is the behaviour according to the W3C specifications.
例 1Adding a child
The following example will add a new element node to a fresh document and sets the attribute "align" to "left ".
例 2Adding a child
?php $doc = domxml_new_doc( "1.0"); $node = $doc - create_element("para"); $newnode = $doc - append_child($node); $newnode - set_attribute("align", "left");?
例 3Adding a child
?php $doc = domxml_new_doc( "1.0"); $node = $doc - create_element("para"); $node - set_attribute("align", "left"); $newnode = $doc - append_child($node);?
See also DomNode_insert_before().
This functions appends a sibling to an existing node.
(no version information, might be only in CVS)
Before a new sibling is added it is first duplicated.
この関数は、兄弟を既存のノードに追加します。 The child can be created with e.g. DomDocument_create_element(), DomDocument_create_text() etc. or simply by using any other node.
This function has been added to provide the behaviour of domnode_append_child() as it works till PHP 4.2.
This function has been added to provide the behaviour of DomNode_append_child() as it works till PHP 4.2.
Prev
See also DomNode_append_before().
(no version information, might be only in CVS)
(no version information, might be only in CVS)
(PHP = 4.3 only) If no attributes are found, NULL is returned.
This function only returns an array of attributes if the node is of type XML_ELEMENT_NODE.
Returns all children of the node.
(no version information, might be only in CVS)
Prev
Returns all children of the node.
DomNode - attributes
See also DomNode_next_sibling(), DomNode_previous_sibling().
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(no version information, might be only in CVS)
See also domdocument_dump_mem().
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
DomNode - clone_node
See also DomDocument_dump_mem().
(no version information, might be only in CVS)
(no version information, might be only in CVS)
(PHP = 4.3 only) If no first child is found, NULL is returned.
Returns the first child of the node.
Prev
See also DomNode_last_child(), DomNode_next_sibling(), DomNode_previous_sibling().
Warning
(no version information, might be only in CVS)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
This function checks if the node has attributes.
(no version information, might be only in CVS)
Prev
This function checks if the node has attributes.
DomNode - has_child_nodes
See also DomNode_has_child_nodes().
This function checks if the node has children.
(no version information, might be only in CVS)
Prev
This function checks if the node has children.
DomNode - has_attributess
See also DomNode_child_nodes().
This function inserts the new node newnode right before the node refnode.
(no version information, might be only in CVS)
(PHP = 4.3 only) If newnode already is part of a document, it will be first unlinked from its existing context.
This function inserts the new node newnode right before the node refnode. The return value is the inserted node. If you plan to do further modifications on the appended child you must use the returned node.
domnode_insert_before() is very similar to domnode_append_child() as the following example shows which does the same as the example at domnode_append_child().
DomNode_insert_before() is very similar to DomNode_append_child() as the following example shows which does the same as the example at DomNode_append_child().
Adding a child
例 1Adding a child
Prev
See also DomNode_append_child().
Warning
(no version information, might be only in CVS)