domdocument
Why does getElementsByTagName only grab every other element here?
With this code using DomDocument: <?php $html = \'<pre>one</pre><pre>two</pre><pre>three</pre><pre&g开发者_运维技巧t;four</pre>\';[详细]
2023-03-27 07:49 分类:问答DomDocument->load() not loading .plist
I use CFPropertylist to load a plist into a DomDocument. Now my .plist is fairly big with 3MB and now the following fails:[详细]
2023-03-27 06:42 分类:问答Problem validating XML against XSD - PHP/schemaValidate
I\'m trying to validate an XML file against an XSD using the function schemaValidate(String file) from DOMDocument.[详细]
2023-03-25 22:17 分类:问答Finding all empty DOM Nodes
Is it po开发者_如何转开发ssible to identify a DOM node if it is empty using just xPath? For example, any node like so:[详细]
2023-03-25 10:53 分类:问答PHP not saving with DOMDocument
We\'ll start off straight forward with the code: The PHP: <?php $newJaCourse = $_POST[\"ja-new-course\"];[详细]
2023-03-25 03:16 分类:问答Need help scraping webpage -- getting specific content...
I have a table, of whose number of columns can change depending on the configuration of the scrapped page (I have no control of it). I want to get only the information from a specific column, designat[详细]
2023-03-23 09:39 分类:问答How to prevent the doctype from being added to the HTML?
I have been working on this tidy-up-messy-html tags with DOM, but now I realise a bigger problem, $content = \'<p><a href=\"#\">this is a link</a></p>\';[详细]
2023-03-23 04:23 分类:问答DOM parser: remove certain attributes only
How can I use DOM parser to remove all attributes in span tags but except these two attributes, <span style=\"text-decoration: underline;\">cultura</span> accept[详细]
2023-03-22 12:33 分类:问答Avoiding Errors When Attempting to Load an Unavailable File
Using php I want to load XML files from several websites and want to prevent err开发者_Go百科ors if my one of the sites is down. I\'m using this code to access the URL.[详细]
2023-03-22 05:24 分类:问答html parsing with php DOMDocument
i\'m trying to extract contents from a forum, I want to get all the topics links if the topic has more than one page, this is the topic format:[详细]
2023-03-22 02:28 分类:问答