I got a Google Shopping feed like this (extract): Now, SimpleXML can read the “title” and “description” tags but it can’t read the tags with “g:” prefix. There are solutions on stackoverflow for this specific case, using the “children” function. But I don’t only want to read Google Shopping XMLs, I need it to be undependend from structure or namespace,
Tag: xml
Transform complex and variable xml
I’ve a complex XML that I want to transform in HTML. Some tags need to be replaced in html tags. The XML is this:
bol text, some …
Convert XML to CSV with PHP
I’m using the following code to convert my XML file to a CSV format. Unfortunately, it seems to not be recognizing each entry in the XML and so the XML file ends up being blank. An example of my XML file is below… Any ideas what I did wrong? Answer Try this
PHP XML serializer
Is there some php libraries which implement serialization of data to XML-format like serialize() and unserialize() (with restoring objects from XML) functions of objects with private and protected …
Converting KML to GeoJson
I’m having huge issues doing this so once again i come for help. I have this massive file which contains all the DMA’s for Nielson what i need to do with php somehow is parse through each and get the data from and the coordinates but they have to be outputted in this format anyone have any idea how to
simplexml_load_string correct parameters for namespace
I am currently trying to pull information from the google contacts api. Using the sample code provided in the libraries: the simplexml_load_string function does not pick up on namespaces. Looking at php.net and how to add the parameters I am a little lost. event with trying to pull the ‘gd’ namespace from my xml string I am receiving an error.
What is a “Payload”? e.g XML Payload
While browsing some web service docs, I came across the word “payload”, “xml payload” … From wikipedia: “*Payload in computing (sometimes referred to as the actual or body data) is the cargo of a …
Create an XML file in server using SimpleXML and jQuery Ajax
What I want to do surely can be accomplished but I’m doing something wrong: I want to create an XML file when I use an Ajax call. I got the following code (synthesized). Maybe this example doesn’t work, it’s just to exemplify: HTML PHP in server In this example the PHP code works as is, the other one not. But
Encoding SQL_Latin1_General_CP1_CI_AS into UTF-8
I’m generating a XML file with PHP using DomDocument and I need to handle asian characters. I’m pulling data from the MSSQL2008 server using the pdo_mssql driver and I apply utf8_encode() on the XML …
Get my eBay listings with PHP using eBay API
I’ve been reading through the eBay Developer Network and for the life of me can’t figure out how to do the simple task of retrieving all listings from an eBay User (me) via their API. Can anyone help me out on achieving this. Thanks a lot. Edit: I have tried using HTTP method of: But this hasn’t given me any