Skip to main content
1 vote
1 answer
90 views

I keep getting a control character error at irregular intervals when calling cUrl via XML. I would like to fix this, but the source doesn't currently have a control character error, and I don't have ...
Nilik's user avatar
  • 41
1 vote
2 answers
115 views

I am trying to parse an Atom XML feed using PHP. It is for an ebook publisher. All is well, except I cannot work out how to extract the last "subject" tag for each entry: that is the ...
Dɑvïd's user avatar
  • 2,009
1 vote
2 answers
67 views

I am upgrading a page from CI3 to CI4. The page has a button to open a new tab which displays XML data. For some reason the CI4 version is showing the XML as plain text. I copied the source of each ...
xanabobana's user avatar
1 vote
1 answer
44 views

I am working on expanding my current SimpleXML XPath to include an 'or' condition. Here is the original (working) code below, without any 'or' condition. $strXpathVar = "Scholarship/Research"...
buck1112's user avatar
  • 512
0 votes
1 answer
75 views

I was pulling data in from an XML file and it was printing more than the values, whereas I just wanted the values using this code: <?php $url = 'site.com'; $result = file_get_contents($url, false);...
Mary Anne Welch's user avatar
0 votes
2 answers
72 views

I have this XML: <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault&...
Felipe Figueiredo's user avatar
1 vote
1 answer
90 views

Hoping someone can shed some light on why this is happening. I've used the exact same syntax elsewhere in my code without any issues, but for some reason this isn't working: $sale = $xml->addChild('...
RussDCC's user avatar
  • 17
-1 votes
1 answer
31 views

The Xml data I have is: <?xml version="1.0" encoding="UTF-8"?> <var> <packid>27441</packid> <clientid>1426</clientid> <desc>PO: ...
bart2puck's user avatar
  • 2,516
0 votes
0 answers
19 views

I have the below XML in an external file: <?xml version="1.0" encoding="UTF-8"?> <propertyList date="2024-08-27-10:09:55"> <residential modTime="...
user606336's user avatar
0 votes
1 answer
123 views

I am working in PHP and using SimpleXML and XPath. Is there a way to find which version of XPath is included with SimpleXML/PHP? Also, is the version of XPath used with SimpleXML the "full ...
buck1112's user avatar
  • 512
1 vote
1 answer
72 views

On the page I have it loading content from an XML file. There is then a form which displays entries from this XML file based on the category name matching the $_GET['cat'] value. The form then allows ...
ChrisYates's user avatar
0 votes
0 answers
36 views

I have an XML with an list of nodes of the same name: <object> <attributes> <attribute id="1" name="first">First Value</attribute> <...
T-Regex's user avatar
  • 329
0 votes
0 answers
39 views

How do I print the attributes of all data nodes that are under staff? values.xml <?xml version="1.0" encoding="utf-8"?> <dataset> <data name="region1">...
Norman's user avatar
  • 6,413
1 vote
0 answers
50 views

Can you explain me the reason why SimpleXMLElement returns an empty object for non-existent XML-elements on the first level, but not for any layer below? See this code: $xml = simplexml_load_string('&...
tweekz's user avatar
  • 368
0 votes
2 answers
162 views

I have a problem with I trying to read and parse this feed: Some XML Feed for some reason the function SimpleXMLElement returns empty nodes. I am using file_get_contents to read the URL and then ...
Andrés Gómez's user avatar

15 30 50 per page
1
2 3 4 5
263