Dropdown list box using data from XML fileWe can create one drop down list box by using data from our student table. This xml file is created by reading data from MySQL table. You can check the output as XML from our file-xml-demo.xml file. Here is the PHP Script to generate the dropdown list
This article is written by plus2net.com team.
PHP & XML getName(): Name of the XML element or tag children(): Children of a XML node count(): Counting number of Children of an XML element simplexml_load_file(): creating object by reading from XML file simplexml_load_string(): creating object by using XML formatted string asXML: Getting string output or writing to file addAttribute(): Adding attribute to element of XML object addChild(): Adding Child element to element of XML object getNamespaces(): Getting NameSpaces from XML object XML from Database(): Generating XML from table records