|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
how to select attribute of a node?
How do I rewrite code to select an attribute of a node? Is this how I would do it if nick was an attribute of last?
LastName = Student.selectSingleNode("Last/@nick").text Please help getchoo |
|
#2
|
|||
|
|||
|
<!-- selects the nick attribute of the context node -->
attribute::nick <!-- also, attribute:: can be substituted with @ --> <!-- example: --> /last[@nick] ============= justin_dago ============= |
|
#3
|
|||
|
|||
|
Hi
So is this how I would rewrite it? LastName = Student.selectSingleNode("/last[@nick]").text getchoo? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > how to select attribute of a node? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|