I am currently working on a little library project using XML to define books, and php to do a search using title/author then showing that specific book in the browser. So I made a bunch of books in XML files, then linked those files as external entities in my main XML file. I used a DTD to define the entities,
Tag: xml
Problems using Curl (56)
I am using AWS and Curl to send a request to a web service that connects to port 8080, I have already consumed another web service that connects to different ports and I have no problem, but with this,…
I want to delete data in xml but it can’t
When I try to delete, I can’t delete it properly. It will stuck at number 2 if(isset($_GET[‘action’])) { $mahasiswaa = simplexml_load_file(‘input.xml’); $nim = $_GET[‘nim’]; $index = 0; …
Finding the first entry of XML and displaying it
Im working on compiling a list using XML and PHP. I’m looking to find the first “destination tag” found in the RailVehicleStateClass for each train ID and echo it out. I tried doing a foreach loop to …
Using SimpleXML to extract data from XML page returning empty array
I’m trying to extract the values of all elements named wardtitle from this xml page: https://democracy.ashfield-dc.gov.uk/mgWebService.asmx/GetCouncillorsByWard Here’s the code I’m currently trying: …
How to dump an XML document’s element as a string that has the same encoding as the document?
So for example, an ISO-8859-1 encoded XML document that even has some characters that are not part of the character set of that encoding, let’s say the € (euro) symbol. This is possible in XML if the …
Invalid characters in XML tag name
We have a huge database where users can create custom fields. Every UTF-8 character is allowed in their name. Until a few weeks ago, when they export their data in XML, only invalid characters that …
Complex Xpath get all values excluding some specific class attributes
I have a markup HTML as below:
…………
…
How can I get an XML attribute as below using file_get_contents or simplexml_load_file?
How can I get the firstname of the XML below? I am trying to use file_get_contents or simplexml_load_file and trying to echo the value like $html->result[0]->contact; without any luck. Can I …
How do you make a SoapCall using the PHP Soap class client
I am attempting to make a SOAP call in PHP using the PHP Soap Client class. I managed to connect to the WDSL file however it isn’t accepting my parameters. Here are all the necessary information …