Self-closing tags in XML files

后端 未结 5 962
无人共我
无人共我 2020-11-29 09:28

I noticed that they work with PHP SimpleXML.

But all XML examples I found on the web close them the old way:

5条回答
  •  生来不讨喜
    2020-11-29 09:42

    When you want to use PHP's xml parser, you can specify actions upon a start tag, close tag, or a complete tag. Based upon your wishes, you might want to have an action specifically on the close tag.

提交回复
热议问题