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 2005 Forums
 Transact-SQL (2005)
 what do the numbers mean in an xml reference?

Author  Topic 

chedderslam
Posting Yak Master

223 Posts

Posted - 2009-01-29 : 11:25:30
I am looking at a stored procedure that I need to modify for a new element in an incoming xml document. What do the numbers mean in the reference?

null as [policy_address!155!address1!element],
null as [policy_address!155!address2!element],
null as [policy_address!155!city!element],
null as [policy_address!155!state!element],
null as [policy_address!155!zip!element]

Thanks!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-29 : 11:30:13
seems like it represents the position of node list.
Go to Top of Page

chedderslam
Posting Yak Master

223 Posts

Posted - 2009-01-29 : 11:34:12
quote:
Originally posted by visakh16

seems like it represents the position of node list.



Could you explain? I would not think it has to do with a line number, as the same value is repeated. Position as far as what?

Thanks.
Go to Top of Page

tonymorell10
Yak Posting Veteran

90 Posts

Posted - 2009-01-29 : 11:44:55
Those just look like column aliases in a select statement. Could you please provide more code from the SP so we have an idea of the context in which the references are used?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-29 : 11:53:49
it represents the level of node. see this

http://jdixon.dotnetdevelopersjournal.com/sql_2000s_for_xml_explicit_vs_sql_2005s_for_xml_path.htm
Go to Top of Page
   

- Advertisement -