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..