Tag Archives: PHP-XML

In this article, we will learn how to process XML using PHP. We have already learnt the basics of XML and their differences with respect… Read More
A file can be generated using PHP from the database and it can be done by the static or dynamic method in PHP. Static methods… Read More
The XMLReader::lookupNamespace() function is an inbuilt function in PHP which is used to lookup in scope namespace for a given prefix. Syntax: string XMLReader::lookupNamespace( string… Read More
The XMLReader::moveToAttributeNs() function is an inbuilt function in PHP which is used to move cursor on the named attribute in specified namespace. This method is… Read More
The XMLReader::next() function is an inbuilt function in PHP which is used to move cursor to next node skipping all subtrees. Another usage of this… Read More
The XMLReader::isValid() function is an inbuilt function in PHP which is used to check if the document being parsed is valid or not. An XML… Read More
The XMLReader::moveToAttribute() function is an inbuilt function in PHP which is used to move cursor to a named attribute. Syntax: bool XMLReader::moveToAttribute( string $name )… Read More
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… Read More
The XMLReader::getAttributeNo() function is an inbuilt function in PHP which is used to get the value of an attribute based on its position or an… Read More
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… Read More
The XMLWriter::endDtd() function is an inbuilt function in PHP which is used to end current DTD which is started using XMLWriter::startDtd() function. DTD stands for… Read More
The XMLReader::expand() function is an inbuilt function in PHP which is used to copy the current node and returns the appropriate DOM object. Syntax: DOMNode… Read More
The XMLReader::getAttribute() function is an inbuilt function in PHP which is used to get the value of a named attribute. Syntax: string XMLReader::getAttribute( string $name… Read More
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… Read More
The XMLWriter::endDtdAttlist() function is an inbuilt function in PHP which is used to end current DTD AttList. DTD stands for Document Type Definition which defines… Read More