Results of 1 - 10 of about 25 for xmlns (0.001 sec.)
- DOMDocument::createElementNS — 関連付けられた名前空間に新しい要素を作成する | P... 11739
- DOMDocument::createElementNS (PHP 5, PHP 7, PHP 8) DOMDocument::createElementNS — 関連付けられた名前空間に新しい要素を作成する 説明 public function DOMDocument::createElementNS ( ? string $namespace , string $qualifiedName , string $value =
... 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
- DOMDocument::getElementById — id に対応する要素を検索する | PHP 8.3 11573
- DOMDocument::getElementById (PHP 5, PHP 7, PHP 8) DOMDocument::getElementById — id に対応する要素を検索する 説明 public function DOMDocument::getElementById ( string $elementId ): ? DOMElement この関数は、 DOMDocument::getElementsByTagName
... 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 ...
-
https://man.mtool.work/php/8.3/domdocument.getelementbyid.html
- SimpleXMLElement::getDocNamespaces — ドキュメントで宣言されている名前空間を返す... 11573
- SimpleXMLElement::getDocNamespaces (PHP 5 >= 5.1.2, PHP 7, PHP 8) SimpleXMLElement::getDocNamespaces — ドキュメントで宣言されている名前空間を返す 説明 public function SimpleXMLElement::getDocNamespaces ( bool $recursive = false , bool $from
... を配列で返します。 例 例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
- DOMElement::getAttributeNames — 属性の名前を取得する | PHP 8.3 10378
- DOMElement::getAttributeNames (PHP 8 >= 8.3.0) DOMElement::getAttributeNames — 属性の名前を取得する 説明 public function DOMElement::getAttributeNames (): array 属性の名前を取得します。 パラメータ この関数にはパラメータはありません。 戻り値
... 属性の名前を返します。 例 例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" } ...
-
https://man.mtool.work/php/8.3/domelement.getattributenames.html
- DOMElement::getAttributeNode — 属性ノードを返す | PHP 8.3 10212
- DOMElement::getAttributeNode (PHP 5, PHP 7, PHP 8) DOMElement::getAttributeNode — 属性ノードを返す 説明 public function DOMElement::getAttributeNode ( string $qualifiedName ): DOMAttr | DOMNameSpaceNode | false 現在の要素の、 qualifiedName
... という名前の属性ノードを返します。 パラメータ qualifiedName 属性の名前。 戻り値 属性ノードを返します。 XML の名前空間宣言 ( xmlns や xmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。 参考 DOME ...
-
https://man.mtool.work/php/8.3/domelement.getattributenode.html
- DOMElement::getAttributeNodeNS — 属性ノードを返す | PHP 8.3 10046
- DOMElement::getAttributeNodeNS (PHP 5, PHP 7, PHP 8) DOMElement::getAttributeNodeNS — 属性ノードを返す 説明 public function DOMElement::getAttributeNodeNS ( ? string $namespace , string $localName ): DOMAttr | DOMNameSpaceNode | null 現在の
... ドを返します。 パラメータ namespace 名前空間 URI。 localName ローカル名。 戻り値 属性ノードを返します。 XML の名前空間宣言 ( xmlns や xmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。 参考 DOME ...
-
https://man.mtool.work/php/8.3/domelement.getattributenodens.html
- SimpleXMLElement::getNamespaces — ドキュメントで使用している名前空間を返す | PH... 9199
- SimpleXMLElement::getNamespaces (PHP 5 >= 5.1.2, PHP 7, PHP 8) SimpleXMLElement::getNamespaces — ドキュメントで使用している名前空間を返す 説明 public function SimpleXMLElement::getNamespaces ( bool $recursive = false ): array ドキュメントで
... します。 例 例1 ドキュメントで使用している名前空間の取得 <?php $xml = <<<XML <?xml version="1.0" standalone="yes"?> <people xmlns:p="http://example.org/ns" xmlns:t="http://example.org/test"> <p:person id="1">John Doe</p:person> <p:person id="2">Susie Q ...
-
https://man.mtool.work/php/8.3/simplexmlelement.getnamespaces.html
- DOMNode::C14N — ノードを文字列に正規化する | PHP 8.3 8701
- DOMNode::C14N (PHP 5 >= 5.2.0, PHP 7, PHP 8) DOMNode::C14N — ノードを文字列に正規化する 説明 public function DOMNode::C14N ( bool $exclusive = false , bool $withComments = false , ? array $xpath = null , ? array $nsPrefixes = null ): string
... 使ってノードをフィルタし、 正規化する高度なやり方を示します。 <?php $dom = new DOMDocument (); $dom -> loadXML (<<<XML <root xmlns:food="urn:food"> <!-- redundant namespace declaration will be canonicalized --> <food:fruit xmlns:food="urn:food">Apple</f ...
-
https://man.mtool.work/php/8.3/domnode.c14n.html
- DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する | PHP... 8518
- DOMDocument::xinclude (PHP 5, PHP 7, PHP 8) DOMDocument::xinclude — DOMDocument オブジェクト内の XIncludes を置換する 説明 public function DOMDocument::xinclude ( int $options = 0 ): int | false このメソッドは、DOMDocument オブジェクト内の
... しなかった場合は false を返します。 例 例1 DOMDocument::xinclude() の例 <?php $xml = <<<EOD <?xml version="1.0" ?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <xi:include href="examples/book.xml"> ... -> xinclude (); echo $dom -> saveXML (); ?> 上の例の出力は、 たとえば以下のようになります。 <?xml version="1.0"?> <chapter xmlns:xi="http://www.w3.org/2001/XInclude"> <title>Books of the other guy..</title> <para> <row xml:base="/home/didou/book.xml"> ...
-
https://man.mtool.work/php/8.3/domdocument.xinclude.html
- XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数と... 8352
- XSLTProcessor::registerPHPFunctionNS (PHP >= 8.4.0) XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数として登録する 説明 public function XSLTProcessor::registerPHPFunctionNS ( string $namespaceURI , string $name
... <uid>joe</uid> </user> </allusers> EOB; $xsl = <<<EOB <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="urn:my.ns"> <xsl:output method="html" encoding="utf-8" indent="yes"/> ...
-
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctionns.html