PHP | XMLReader readString() Function
The XMLReader::readString() function is an inbuilt function in PHP which is used to read the contents of the current node as a string. Difference between readString() and getInnerXml() is that the former doesn’t includes the markup but only the content for subnodes....
read more
PHP | SimpleXMLElement __toString() Function
The XMLReader::__toString() function is an inbuilt function in PHP which is used to get the text content that is directly in current element. This function does not return text content that is inside this element’s children....
read more
PHP | XMLReader moveToElement() Function
The XMLReader::moveToElement() function is an inbuilt function in PHP which is used to move cursor to the parent element of current attribute. This function can be used to get the element having certain attributes by combining this with XMLReader::moveToAttribute() function....
read more
PHP | XMLWriter endAttribute() Function
The XMLWriter::endAttribute() function is an inbuilt function in PHP which is used to end an attribute which is started using XMLWriter::startAttribute() function....
read more
PHP | XMLReader close() Function
The XMLReader::close() function is an inbuilt function in PHP which is used to close the input of XMLReader object which is currently parsing....
read more
PHP | simplexml_import_dom() Function
The simplexml_import_dom() function is an inbuilt function in PHP which is used to take a node of DOM document and convert it into a SimpleXML node....
read more
PHP | XMLReader setParserProperty() Function
The XMLReader::setParserProperty() function is an inbuilt function in PHP which is used to set parser options. This function can be used to validate the document.Syntax:...
read more
PHP | XMLWriter startAttributeNs() Function
The XMLWriter::startAttributeNs() function is an inbuilt function in PHP which is used to start namespaced attribute. This attribute can be later closed with XMLWriter::endAttribute() function. Usually styling web pages doesn’t works in a namespace attribute....
read more
How to Extract Data from an XML File Using PHP ?
XML, which stands for Extensible Markup Language, is a data storage format that is easily searchable and understandable. It simplifies the process of storing, retrieving, and displaying data in informative applications. It is widely used in web applications. In this article, we will learn how to extract data from an XML file using the PHP programming language....
read more
PHP | XMLWriter setIndentString() Function
The XMLWriter::setIndentString() function is an inbuilt function in PHP which is used to set the string which will be used to indent each element/attribute of the resulting xml....
read more
PHP | XMLReader lookupNamespace() Function
The XMLReader::lookupNamespace() function is an inbuilt function in PHP which is used to lookup in scope namespace for a given prefix....
read more
PHP | XMLReader getAttributeNs() Function
The XMLReader::getAttributeNs() function is an inbuilt function in PHP which is used to get the value of an attribute by name and namespace URI or an empty string if attribute does not exist or not positioned on an element node....
read more