« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 50 for xmlns (0.001 sec.)
id に対応する要素を検索する 10196
« DOMDocument::createTextNode DOMDocument::getElementsByTagName » PHP Manual DOMDocument id に対応する要素を検索する 検索 DOMDocument::getElementById (PHP 5, PHP 7, PHP 8) DOMDocument::getElementById — id に対応する要素を検索する 説明 publi ... author+, xhtml:blurb?)> <!ELEMENT title (#PCDATA)> <!ELEMENT blurb (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ATTLIST books xmlns CDATA #IMPLIED> <!ATTLIST books xmlns:xhtml CDATA #IMPLIED> <!ATTLIST book id ID #IMPLIED> <!ATTLIST author email CDATA #I ... MPLIED> ]> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <books xmlns="http://books.php/" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <book id="php-basics"> <title>PHP Basics</title> <author e ... すべての要素を検索する 関連キーワード: DOMDocument book php 要素 author id books title xhtml basics getElementById xml blurb xmlns email doc getElementsByTagName DOMElement 必要 elementId ...
https://man.mtool.work/php/8.3/domdocument.getelementbyid.html
関連付けられた名前空間に新しい要素を作成する 10091
« DOMDocument::createElement DOMDocument::createEntityReference » PHP Manual DOMDocument 関連付けられた名前空間に新しい要素を作成する 検索 DOMDocument::createElementNS (PHP 5, PHP 7, PHP 8) DOMDocument::createElementNS — 関連付けられた名前空 ... ement ); echo $dom -> saveXML (); ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="iso-8859-1"?> <xfoo:test xmlns:xfoo="http://www.example.com/XFoo">This is the root element!</xfoo:test> 例2 名前空間プレフィックスの例 <?php $doc = new D ... tp://www.w3.org/2005/Atom' , 'element' ); $doc -> appendChild ( $root ); $root -> setAttributeNS ( 'http://www.w3.org/2000/xmlns/' , 'xmlns:g' , 'http://base.google.com/ns/1.0' ); $item = $doc -> createElementNS ( 'http://base.google.com/ns/1.0' , 'g: ... -> localName , "\n" ; // 出力: item_type ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="utf-8"?> <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0"> <g:item_type>house</g:item_type> </element> http:// ...
https://man.mtool.work/php/8.3/domdocument.createelementns.html
ドキュメントで宣言されている名前空間を返す 10091
« SimpleXMLElement::current SimpleXMLElement::getName » PHP Manual SimpleXMLElement ドキュメントで宣言されている名前空間を返す 検索 SimpleXMLElement::getDocNamespaces (PHP 5 >= 5.1.2, PHP 7, PHP 8) SimpleXMLElement::getDocNamespaces — ドキュ ... を配列で返します。 例 例1 ドキュメントの名前空間の取得 <?php $xml = <<<XML <?xml version="1.0" standalone="yes"?> <people xmlns:p="http://example.org/ns"> <p:person id="1">John Doe</p:person> <p:person id="2">Susie Q. Public</p:person> </people> XML; ... 1) "http://example.org/ns" } 例2 複数の名前空間での動作 <?php $xml = <<<XML <?xml version="1.0" standalone="yes"?> <people xmlns:p="http://example.org/ns" xmlns:t="http://example.org/test"> <p:person t:id="1">John Doe</p:person> <p:person t:id="2" a:a ... ddr="123 Street" xmlns:a="http://example.org/addr"> Susie Q. Public </p:person> </people> XML; $sxe = new SimpleXMLElement ( $xml ); $namespaces ...
https://man.mtool.work/php/8.3/simplexmlelement.getdocnamespaces.html
関連付けられた名前空間に新しい要素を作成する 10091
« DOMDocument::createElement DOMDocument::createEntityReference » PHP Manual DOMDocument 関連付けられた名前空間に新しい要素を作成する 検索 DOMDocument::createElementNS (PHP 5, PHP 7, PHP 8) DOMDocument::createElementNS — 関連付けられた名前空 ... ement ); echo $dom -> saveXML (); ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="iso-8859-1"?> <xfoo:test xmlns:xfoo="http://www.example.com/XFoo">This is the root element!</xfoo:test> 例2 名前空間プレフィックスの例 <?php $doc = new D ... tp://www.w3.org/2005/Atom' , 'element' ); $doc -> appendChild ( $root ); $root -> setAttributeNS ( 'http://www.w3.org/2000/xmlns/' , 'xmlns:g' , 'http://base.google.com/ns/1.0' ); $item = $doc -> createElementNS ( 'http://base.google.com/ns/1.0' , 'g: ... -> localName , "\n" ; // 出力: item_type ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="utf-8"?> <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0"> <g:item_type>house</g:item_type> </element> http:// ...
https://man.mtool.work/php/8.3/domdocument.createelementns.html
id に対応する要素を検索する 10091
« DOMDocument::createTextNode DOMDocument::getElementsByTagName » PHP Manual DOMDocument id に対応する要素を検索する 検索 DOMDocument::getElementById (PHP 5, PHP 7, PHP 8) DOMDocument::getElementById — id に対応する要素を検索する 説明 publi ... author+, xhtml:blurb?)> <!ELEMENT title (#PCDATA)> <!ELEMENT blurb (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ATTLIST books xmlns CDATA #IMPLIED> <!ATTLIST books xmlns:xhtml CDATA #IMPLIED> <!ATTLIST book id ID #IMPLIED> <!ATTLIST author email CDATA #I ... MPLIED> ]> <?xml-stylesheet type="text/xsl" href="style.xsl"?> <books xmlns="http://books.php/" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <book id="php-basics"> <title>PHP Basics</title> <author e ... タグ名に対応するすべての要素を検索する 関連キーワード: DOMDocument book author books title xhtml basics getElementById blurb xmlns email getElementsByTagName DOMElement elementId 属性 validateOnParse ドキュメント 検証 Basics smith Smith advanced createT ...
https://man.mtool.work/php/8.3/domdocument.getelementbyid.html
ドキュメントで宣言されている名前空間を返す 9971
« SimpleXMLElement::current SimpleXMLElement::getName » PHP Manual SimpleXMLElement ドキュメントで宣言されている名前空間を返す 検索 SimpleXMLElement::getDocNamespaces (PHP 5 >= 5.1.2, PHP 7, PHP 8) SimpleXMLElement::getDocNamespaces — ドキュ ... を配列で返します。 例 例1 ドキュメントの名前空間の取得 <?php $xml = <<<XML <?xml version="1.0" standalone="yes"?> <people xmlns:p="http://example.org/ns"> <p:person id="1">John Doe</p:person> <p:person id="2">Susie Q. Public</p:person> </people> XML; ... 1) "http://example.org/ns" } 例2 複数の名前空間での動作 <?php $xml = <<<XML <?xml version="1.0" standalone="yes"?> <people xmlns:p="http://example.org/ns" xmlns:t="http://example.org/test"> <p:person t:id="1">John Doe</p:person> <p:person t:id="2" a:a ... ddr="123 Street" xmlns:a="http://example.org/addr"> Susie Q. Public </p:person> </people> XML; $sxe = new SimpleXMLElement ( $xml ); $namespaces ...
https://man.mtool.work/php/8.3/simplexmlelement.getdocnamespaces.html
属性の名前を取得する 9760
« DOMElement::getAttribute DOMElement::getAttributeNode » PHP Manual DOMElement 属性の名前を取得する 検索 DOMElement::getAttributeNames (PHP 8 >= 8.3.0) DOMElement::getAttributeNames — 属性の名前を取得する 説明 public function DOMElement::g ... 属性の名前を返します。 例 例1 DOMElement::getAttributeNames() の例 <?php $dom = new DOMDocument (); $dom -> loadXML ( '<html xmlns:some="some:ns" some:test="a" test2="b"/>' ); var_dump ( $dom -> documentElement -> getAttributeNames ()); ?> 上の例の出力は ... 以下となります。 array(3) { [0]=> string(10) "xmlns:some" [1]=> string(9) "some:test" [2]=> string(5) "test2" } 関連キーワード: DOMElement 属性 getAttributeNames xmlns getAtt ...
https://man.mtool.work/php/8.3/domelement.getattributenames.html
属性の名前を取得する 9640
« DOMElement::getAttribute DOMElement::getAttributeNode » PHP Manual DOMElement 属性の名前を取得する 検索 DOMElement::getAttributeNames (PHP 8 >= 8.3.0) DOMElement::getAttributeNames — 属性の名前を取得する 説明 public function DOMElement::g ... 属性の名前を返します。 例 例1 DOMElement::getAttributeNames() の例 <?php $dom = new DOMDocument (); $dom -> loadXML ( '<html xmlns:some="some:ns" some:test="a" test2="b"/>' ); var_dump ( $dom -> documentElement -> getAttributeNames ()); ?> 上の例の出力は ... 以下となります。 array(3) { [0]=> string(10) "xmlns:some" [1]=> string(9) "some:test" [2]=> string(5) "test2" } 関連キーワード: DOMElement 属性 getAttributeNames test dom str ... ing array パラメータ xmlns getAttribute Search getAttributeNode function 戻り値 php new DOMDocument loadXML html ns ...
https://man.mtool.work/php/8.3/domelement.getattributenames.html
属性ノードを返す 9640
« DOMElement::getAttributeNames DOMElement::getAttributeNodeNS » PHP Manual DOMElement 属性ノードを返す 検索 DOMElement::getAttributeNode (PHP 5, PHP 7, PHP 8) DOMElement::getAttributeNode — 属性ノードを返す 説明 public function DOMElement: ... という名前の属性ノードを返します。 パラメータ qualifiedName 属性の名前。 戻り値 属性ノードを返します。 XML の名前空間宣言 ( xmlns や xmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。 参考 DOME ... buteNode() - 属性を削除する 関連キーワード: 属性 DOMElement ノード getAttributeNode qualifiedName DOMAttr DOMNameSpaceNode xmlns getAttributeNames getAttributeNodeNS 空間 宣言 参考 hasAttribute setAttributeNode removeAttributeNode ...
https://man.mtool.work/php/8.3/domelement.getattributenode.html
属性ノードを返す 9535
« DOMElement::getAttributeNames DOMElement::getAttributeNodeNS » PHP Manual DOMElement 属性ノードを返す 検索 DOMElement::getAttributeNode (PHP 5, PHP 7, PHP 8) DOMElement::getAttributeNode — 属性ノードを返す 説明 public function DOMElement: ... という名前の属性ノードを返します。 パラメータ qualifiedName 属性の名前。 戻り値 属性ノードを返します。 XML の名前空間宣言 ( xmlns や xmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。 参考 DOME ... ode() - 属性を削除する 関連キーワード: 属性 DOMElement ノード getAttributeNode qualifiedName DOMAttr DOMNameSpaceNode 要素 xmlns getAttributeNames Search getAttributeNodeNS function string false 現在 パラメータ 戻り値 空間 宣言 ...
https://man.mtool.work/php/8.3/domelement.getattributenode.html
PREV 1 2 3 4 5 NEXT