Already purchased the new Motorola Droid? We want to hear from you! Tell us what you think about it and Google's Android 2.0 software.

 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested XPath Solutions: 1 - 25 of 51
 
This is a minor problem, but if you have input I would appreciate it. I want to remove all the nodes anywhere in an XML document that have element name No_export_rule. The code below almos...
I am trying to sort the attached XML file using the below xslt code. The problem is I would like to give the sorting element dynamically. So, instead of select ="cell/COUNTRY" I want to do...
hi all, i've currently using oracle 11g db to store the customer's hierarchical data, i've created an xmltype table referring to a schema that i created myself. my aim is to be able to extr...
My goal is to shred multiple attribute values stored in multiple nodes of an XML column of a table.  Must also return values from the other columns of the same table.  There's a lot of records...
In Classic ASP I have an XML document loaded into a session variable session("ArrayOfInformation") I have available to me the PartnerUid. I need to find out: 1- Is there a node in the XML w...
I am trying to create an XPath 2.0 expression that will navigate to an attribute, test its value, e.g. "S" or "Sensitive" then replace the text with other text in the attribute's parent. Us...
I am sure that this is very easy. It's just that I am new to XML. I have spent an hour on this already (just today) and am behind deadline. I have an XMLNode xIn. <Column Value="Perform...
How do you read attributes in a repeating XML element using JAVA and XPath. For example given  <Life> <GUIInputRequest> <TXLife> <TXLifeRequest> <OLifE> <Holding> <Policy> <Life> <O...
I have this sample code. I would expect the output to be something like Channel #0 Channel Name : Ch1 Channel #1 Channel Name : Ch2 Channel #2 Channel Name : Ch3 but all I get is ...
I have a xml file like this. <salesloc name="Australia" area="APAC">   <useralias>timz</useralias>   <useralias>scott</useralias> </salesloc> <salesloc name="italy" area="WE">   <userali...
Hi! I have a XML DOMDocument object where I need to find a combination of a ID and a ITEM_TYPE tag. When we have a result, I need to know the ID and ITEM_TYPE for all parents back to the roo...
Hi, I have an xml file which consists basically of two levels (see attachment) level <a> with one ore more levels <b> level <b> with one ore more levels <d> For every level <a> some p...
I have a Crystal Report, I'm passing a stored procedure (SQL Server 2005)  on ProviderID.  What I want to happen is for the user to be able to pick from a list of all services for that Provide...
If my xml file structure is like this: <file>      <entry>           <name>           <count>      </entry>      <entry>           <name>           <count>      </entry>      ... </file> Then, the following xpath expression is to ...
Hi, I'm using PHP to to this: $xml = simplexml_load_file("WebsitePropertyData.xml"); $results = $xml->xpath("/dataroot/WebsitePropertyData/City"); It returns cities. I want to know how...
I have some very basic XML in an XML column in a SQL Express 2008 database:     <Parent>       <Child ChildName="ChildA">         <ChildType>Well Behaved</ChildType>         <OtheChild...
Hi, I'm trying to add a node to some XML, but can't quite get what I'm after. I can add a child using append child, I really want to add the node as a sibling after the node I've selected. Fo...
I need to be able to select data that is located in an attribute in an element where another attribute matches a given value.   For instance, in the following sample xml I would like to get th...
I am not to familar with using XPath Queries. I am working with a list in SharePoint and I have it doing a count based on priority but I also need to weed out the items where the status is res...
I've written a piece of code that works. It uses XPath to extract some values in a XML doc and return each value, however it seems to be a very inefficient way to do it as I have to create new...
Hi I have the following xml document and I want to retrieve the <env:identity> value. I am using VB.Net and have code to try and extract the data but I cannot seem to get it to work. A...
I need to find the sections that are taught by 2 instructors. The closest thing that i can even think of to achieve this is    //section[/instructor > 2]    but this would check to see if ...
I have an OPML xml file. I am getting the child nodes via template matches an iterating through using a XSLT for-each  to display data in the nodes in a HTML list. What I need to do is to use ...
Hi, I am having difficulty getting this to work.   If I run it with the return value string I get 2 results (which is right) but they both formatted according to the first match.  It I run...
I need to read an XML file and retrieve a list it contains, then iterate through it. Can I do this with XPath? Could someone show me how? thanks, newbieweb