Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 openxml fetching values from xml

Author  Topic 

hanumanth
Starting Member

21 Posts

Posted - 2008-07-31 : 01:48:49
Input xml format :
<Request>
<Profile>
<Name>Hanu</Name>
<Name>Siva</Name>
<Name>Ram</Name>
</Profiel>
</Request>
i want to get all the names list
output:
Name
Hanu
Siva
Ram

i written
SELECT NAMES FROM OPENXML(@hxmldoc,'/Request/Profile',2)
WITH (NAMES nvarchar(50))

but null values are displaying ..
can anyone help on this.plz

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-31 : 01:53:37
dup post http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=107707

Please do not cross post !


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -