您的位置: 旅游网 > 明星

资深站长PHP中的DOMXML函数a

发布时间:2019-06-08 09:50:55

10:59 来源:互联 :水色皇朝【纠错】人评论

A-A+ 怎么开淘宝店 站优化方法 创业如何获得投资 小米note顶配版评测 最新LOL活动

DOMXMLfunctionsThesefunctionsareonlyavailableifPHPwasconfiguredwith--with-dom=[DIR]uwillneedatleastlibxml-2.0.0(thebetaversionwillnotwork).ThesefunctionshavebeenaddedinPHP4.

Thismoduledefinesthefollowingconstants:

Lconstants

ConstantValueDescriptionXML_ELEMENT_NODE1XML_ATTRIBUTE_NODE2XML_TEXT_NODE3XML_CDATA_SECTION_NODE4XML_ENTITY_REF_NODE5XML_ENTITY_NODE6XML_PI_NODE7XML_COMMENT_NODE8XML_DOCUMENT_NODE9XML_DOCUMENT_TYPE_NODE10XML_DOCUMENT_FRAG_NODE11XML_NOTATION_NODE12XML_GLOBAL_NAMESPACE1XML_LOCAL_NAMESPACE2

eDOMXMLfunctionsreturnaparsedtreeoftheXMLdocumentwitheachnodebeinganobjectbelongingtooneoftheseclasses.

xmldoc(PHP4=4.0b4)

xmldoc--CreatesaDOMobjectofanXMLdocumentDescription

objectxmldoc(stringstr)

ThefunctionparsestheXMLdocumentinstrandreturnsanobjectofclassDomdocumenthavingthepropertiesdoc(resource)version(string)andtype(long).

xmldocfile(PHP4=4.0b4)

xmldocfile--CreatesaDOMobjectfromXMLfileDescription

objectxmldocfile(stringfilename)

ThefunctionparsestheXMLdocumentinthefilenamedfilenameandreturnsanobjectofclassDomdocumenthavingthepropertiesdoc(resource)version(string).

xmltree(PHP4=4.0b4)

xmltree--CreatesatreeofphpobjectsfromXMLdocumentDescription

objectxmltree(stringstr)

ThefunctionparsestheXMLdocumentinstrandreturnsatreePHPobjectsastheparseddocument.

查看更多相似文章

积分商城软件
搞笑段子
娱乐
猜你会喜欢的
猜你会喜欢的