Linked Questions
16 questions linked to/from Implementing condition in XPath
37 votes
2 answers
36k views
SimpleXML: Selecting Elements Which Have A Certain Attribute Value
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 ...
6 votes
3 answers
22k views
simpleXML get node child based on attribute [duplicate]
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"> <...
14 votes
2 answers
26k views
SimpleXML get element content based on attribute value [duplicate]
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> <...
-2 votes
1 answer
422 views
PHP, XML Get a records nodes and values and put them in a JSON Array? [duplicate]
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 ...
0 votes
0 answers
82 views
Search for string anywhere within SimpleXML object [duplicate]
Is it possible to search for text within an SimpleXML object directly, or does it need to be converted to a string first?
0 votes
0 answers
67 views
Using multiple Xpath queries to search XML [duplicate]
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 ...
1 vote
2 answers
75 views
accessing xml property using php [duplicate]
In an xml respone below <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> </lst> <lst name="...
2 votes
4 answers
4k views
Parse All Links That Contain A Specific Word In "href" Tag [duplicate]
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">...
2 votes
3 answers
7k views
Get the width and height of each element's attribute via DOM or XPATH
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;"...
2 votes
1 answer
1k views
PHP: get parent node where child = 'value' [duplicate]
I have this xml file: <friends> <friend> <name>xxx</name> <pays>France</pays> </friend> <friend> <name>yyy<...
0 votes
1 answer
1k views
simplexml_load_file - redundant element with empty value is converted to new SimpleXMLElement Object
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 ...
-3 votes
2 answers
1k views
Search XML file *based* on search criteria and remove nodes - ASP or PHP [duplicate]
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>...
2 votes
3 answers
437 views
Searching and displaying XML content with PHP
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&...
0 votes
3 answers
470 views
Read and take value of XML attributes
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 ...
0 votes
1 answer
236 views
XML 'Select Where' Statement
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 ...