how do i search for a path in xml?


hi all,

 

i have xml file looks this:

 

<project> 	<buildmachine4> 		<checkout1 exe="wco" folder='-f -r "c:/work/6.70_extensions/folder/"'/> 		<checkout2 exe="wco" folder='-f -r "c:/work/7.00_extensions/folder/"'/>	 	</buildmachine4> 	<buildmachine5>	 		<checkout3 exe="wco" folder='-f -r "c:/work/7.10.000_tip/folder/"'/> 	</buildmachine5> </project> 

 

basically need have string called "buildstream" can 6.70_extensions, 7.00_extensions or 7.10.000_tip

 

i wish conduct search in xml file, if "buildstream" (comes combobox.selectedvalue) found match content of  xml file, take path. example if buildstream = 6.70_extensions, take path "c:/work/6.70_extensions/folder/"

then, using path set folder non-read only. ie remove "c:/work/6.70_extensions/folder/" 's read-only

how can parse string using linq?

 

thanks in advance


hi,

http://msdn.microsoft.com/en-us/library/bb308960.aspx

follow link know more linq


regards, anoop


Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'