Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2003

Tip: Looking for answers? Try searching our database.

selectnodes in XML DOM document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
suresh - 08 Jul 2003 19:42 GMT
Hi,

I have the following xml file.

<Navigator xmlns="urn:uuid:721DCCFA-8250-4820-8C7D-
7AF0E52305FD">
<SMDataSet RegionName="NA" CustomerName="ATT"
MarketName="New Jersey" DataSetName="SMDS1"
Technology="CDMA" StartDateAndTime="2003-06-
01T00:00:00.0000000-04:00" EndDate="2003-06-
02T00:00:00.0000000-04:00" Duration="10" ECPVersion="1.0"

<AntennaIdentifier CellNumber="1" AntennaNumber="1"
Azimuth="2" Latitude="54.45" Longitude="54.45">
<ServiceMeasurementMetric Name="mt1"
CapacityOfAverages="1.1"/>
</AntennaIdentifier>
<AntennaIdentifier CellNumber="1" AntennaNumber="2"
Azimuth="2" Latitude="54.45" Longitude="54.45">
<ServiceMeasurementMetric Name="mt1"
CapacityOfAverages="1.1"/>
</AntennaIdentifier>
<AntennaIdentifier CellNumber="2" AntennaNumber="1"
Azimuth="2" Latitude="54.45" Longitude="54.45"/>
<ServiceMeasurementMetric Name="mt1"
CapacityOfAverages="1.1"/>
<ServiceMeasurementMetric Name="mt2"
CapacityOfAverages="1.1"/>
</SMDataSet>
</Navigator>

Can some please tell me the Xpath query that should be
used in the selectNodes of DOMDocument that selects only
the AntennaIdentifier nodes under the SMDataSet node. In
entire doucment there will be only one SMDataSet node. I
am at the docuemnt node level.

Some how i am not able to make this work.

thank you
suresh
Chad Tamplin - 08 Jul 2003 19:49 GMT
"Navigator/SMDataSet/AntennaIdentifier"
or
"//AntennaIdentifier"

Chad

> Hi,
>
[quoted text clipped - 37 lines]
> thank you
> suresh

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.