![]() |
Get Specific Node Values
Hello All,
I am doing a little xml learning. Here is what I want to do.... I want to select a node where a child node has a specific value. Once I have that node, I then want to get other specific child node values to use/display in my html. So, I am searching the xml file for a specific value in a node. Once found, I want to select the parent of that node and then get at the child node values. Example: Code:
<?xml version=1.0"?>I am using javascript to do this. It seems it should be easy enough to do....I just have not gotten anything to work yet. Any assistance would be greatly appreciated. Regards, Mike |
First: your xml code, first line reads
Code:
<?xml version=1.0"?>Code:
<?xml version="1.0"?>This html does what you want: Code:
<!DOCTYPE html> |
I thought I could do something like that.
I was hoping that xpath would be able to to just allow me to "grab" the node that contained the value and then use the child nodes within. |
| All times are GMT +1. The time now is 06:46 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.