Closed skerbis closed 6 months ago
Als Erinnerungshilfe für mich: https://stackoverflow.com/questions/4803063/whats-the-difference-between-phps-dom-and-simplexml-extensions
Side-note People often wonder/ask what extension they should use to handle their XML or HTML content. Actually the choice is easy because there isn't much of a choice to begin with:
if you need to deal with HTML, you don't really have a choice: you have to use DOM if you have to do anything fancy such as moving nodes or appending some raw XML, again you pretty much have to use DOM if all you need to do is read and/or write some basic XML (e.g. exchanging data with an XML service or reading a RSS feed) then you can use either. Or both. if your XML document is so big that it doesn't fit in memory, you can't use either and you have to use XMLReader which is also based on libxml2, is even more annoying to use but still plays nice with others
und
mit rex_response sowie clear outputbuffer