domdocument
DomDocument encoding
I have small problem. I\'m trying to work on an XML file, but the UTF-8 character encoding not working.[详细]
2023-02-12 13:54 分类:问答Replace specific <font> tag with <span> using DOM manipulation in PHP
I\'m trying to replace alltags withtags using DOMDocument in PHP and almost all my tests passed. I\'m sure there are other scenarios I\'m forgetting, but for now, I\'m missing just one:[详细]
2023-02-11 20:00 分类:问答PHP: DOMDocument loadHTML returns an error when using HTML5 tags
Such as <section>.Is there anything I can do ab开发者_如何学Pythonout this?I\'ve run into this issue with PHP\'s DOMDoc and XSL functions. You basically have to load the document as XML. Thats t[详细]
2023-02-11 07:25 分类:问答PHP XML Libraries Not Returning XPath Results
I am trying to use PHP and XPath to grab all the Category nodes with an ID element of 1364 from this XML: http://education.oracle.co.uk/html/oracle/28US/schedule.xml[详细]
2023-02-11 02:40 分类:问答Problem with xml dom document
$doc = new DOMDocument(); $doc->load( \'model.xml\' ); $fields = $doc->getElementsByTagName( \"field\" );[详细]
2023-02-10 05:42 分类:问答How can i get the links into an html list with php?
I have the following html code in HTML: <ul><li><a href=\"/webapps/portal/frameset.jsp?tab_tab_group_id=noActiveTabGroup&url=%2Fwebapps%2Fblackboard%2Fexecute%2Flauncher%3Ftype[详细]
2023-02-09 21:49 分类:问答php DOMDocument->getElementById->nodeValue sripping html
I am using php\'s DOMDocument->getElementById->nodeValue to set a particular DOM element\'s HTML. The problem is that the string is converted to HTML entities:[详细]
2023-02-09 15:50 分类:问答Concatenate HTML tables with PHP DOMDocument
I have a whole bunch of large HTML documents with tables of data inside and I\'m looking to write a script which can process an HTML file, isolate thetags and their contents, then concatenate all the[详细]
2023-02-08 20:59 分类:问答DOMDocument error on loadHTML() "Empty string supplied as input"?
When I remove the @ sign from my $d, $x DOMdocument variables below, I\'m getting the error... Warning: DOMDocument::loadHTML()[详细]
2023-02-08 17:47 分类:问答DOMdocument query: if first appearance of keyword matches criteria, exit?
How would I modify the script below so that if the first appearance of the keyword in the content string is already enclosed in bold or strong, I escape the node replacement?[详细]
2023-02-08 08:33 分类:问答