domdocument
removeChild with PHP DOM doesn't work
I have the following code: $doc = new DOMDocument(); $doc->loadHTML($quiz[\'value\']); $imageElement = $doc->getElementsByTagName(\'img\')->item(0);[详细]
2023-04-11 23:57 分类:问答How to submit POST data with DOMDocument
I want to submit POST data using the DOMDocument class (DOMDocument::loadHTMLFile() to be precise) to simulate a html form using the post method being submitted.[详细]
2023-04-11 23:15 分类:问答Object of class DOMElement could not be converted to string
I try to parse an XML rss flux. Actually, an error is thrown: Catchable fatal error: Object of class DOMElement could not be converted to string in ...[详细]
2023-04-11 04:15 分类:问答Building an xml document from functions that return DOMNodes
My question is a rather simple one for anyone familiar with the DOM* classes in PHP. Basically i have different classes that i want to return to me something that I can append in my xml document[详细]
2023-04-09 05:08 分类:问答PHP DomDocument removing an element scrambles HTML
I am having issues开发者_如何转开发 removing a node using PHP DomDocument. I have some HTML like so:[详细]
2023-04-08 10:49 分类:问答Problems accessing elements with namespaces in PHP using DOMDocument
Here is my XML fragment: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <ns:searchResult xmlns:ns=\"http://outerx.org/daisy/1.0\">[详细]
2023-04-07 18:04 分类:问答What wrong with this php user defined function?
I cant find that what i have missed in this function so its generating this ERROR some time not always ?[详细]
2023-04-06 21:42 分类:问答get a complete table with php domdocument and print it
I would like to get a complete html table having id = \'myid\' from a given url using php domddocument and print it to our web page, How can i do this ?[详细]
2023-04-05 14:17 分类:问答problem with adding root path using php domdocument
I would like to add root path of the site for those anchor tag which have not root path using php dom document, Till now a have made a function to do this with str_replace function but for some links[详细]
2023-04-05 02:40 分类:问答PHP DomDocument xml parser
I have a php page that parses some xml text. That text comes from user input in a html textfield. Whenever there is any whitespace at all between nodes, the Domdocument xml parser fails to parse the[详细]
2023-04-04 20:29 分类:问答