Linked Questions

37 votes
2 answers
36k views

In an XML document, I have elements which share the same name, but the value of an attribute defines what type of data it is, and I want to select all of those elements which have a certain value from ...
dimo414's user avatar
  • 49.3k
6 votes
3 answers
22k views

I am trying to parse out the value of a node I am referencing by one of its attributes. but I am not sure of the syntax XML: <data> <poster name="E-Verify" id="everify"> <...
Denoteone's user avatar
  • 4,055
14 votes
2 answers
26k views

I'm trying to access the content of an element based on the value of an attribute. With PHP SimpleXML. I've got the following XML setup: <DocSum> <Id>21242919</Id> <...
Bob's user avatar
  • 1,085
-2 votes
1 answer
422 views

Possible Duplicate: Implementing condition in XPath and XQuery PHP convert XML to JSON How do i get all child notes from the record which includes Product = Product1 And put them into a JSON ...
Ulrik Vadstrup's user avatar
0 votes
0 answers
82 views

Is it possible to search for text within an SimpleXML object directly, or does it need to be converted to a string first?
MrDave's user avatar
  • 417
0 votes
0 answers
67 views

Possible Duplicate: Implementing condition in XPath and XQuery I'm trying to write a simple script to search an XML file containing performance event information. A simplified version of the file ...
DaveR's user avatar
  • 2,503
1 vote
2 answers
75 views

In an xml respone below <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> </lst> <lst name="...
Sheldon Cooper's user avatar
2 votes
4 answers
4k views

Possible Duplicate: Grabbing the href attribute of an A element I need to parse all links of an HTML document that contain some word (it's always different). Example: <a href="/bla:bla">...
Ron's user avatar
  • 25
2 votes
3 answers
7k views

How can I get the width and height of each element's attribute? For instance, $dom = new DOMDocument; $dom->loadHTML('<div class="item" style="width:295px; height:210px; border:1px solid #000;"...
Run's user avatar
  • 57.7k
2 votes
1 answer
1k views

I have this xml file: <friends> <friend> <name>xxx</name> <pays>France</pays> </friend> <friend> <name>yyy<...
zakariag's user avatar
  • 335
0 votes
1 answer
1k views

I converting a XML-File into an Object using simplexml_load_file. I noticed a problem when a redunant element has a empty value. I think this example make it more understandable: // XML-File (Just a ...
Manuel's user avatar
  • 382
-3 votes
2 answers
1k views

Possible Duplicate: A simple program to CRUD node and node values of xml file I am not looking for an exact attribute or and exact node text. Example <Items> <book> <title>...
TheTechGuy's user avatar
  • 17.5k
2 votes
3 answers
437 views

I have an XML file filled with 'producers.' Here is a sample of what the file looks like: <producer> <name>John Doe's Fish Emporium!</name> <owner>John Doe</owner&...
jasonaburton's user avatar
  • 3,163
0 votes
3 answers
470 views

I am stock with this XML problem, I have a XML file that I browse to find values. Everything is working fine, I can read on all the child nodes, but I am stuck on this section. The XML portion ...
maphaneuf's user avatar
0 votes
1 answer
236 views

I wonder whether someone may be able to help me please. I'm using Aurigma's 'Image Uploader' software to allow users to add, and view images for the records they create with the image data collected ...
IRHM's user avatar
  • 1,316

15 30 50 per page