Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

xml Querying

$
0
0

I am writing a script component want to query DomainId from  a xml document which is store in sql server table column

select DomainVariableIdXML.value('(/Master/Domain/DomainId/text())[1]','int') as [Info.x]
from tablename

but i am getting only one domainId

<Master>
  <Domain>
    <DomainId>4</DomainId>
    <AllVariablesInDomain>false</AllVariablesInDomain>
  </Domain>
  <Domain>
    <DomainId>2</DomainId>
    <AllVariablesInDomain>false</AllVariablesInDomain>
  </Domain>
  <Domain>
    <DomainId>1</DomainId>
    <AllVariablesInDomain>true</AllVariablesInDomain>
  </Domain>
  <Variable>
    <DomainId>2</DomainId>
    <VariableId>600</VariableId>
  </Variable>
</Master>

Thank's in advance..


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>