Microsoft
Software
Hardware
Network
Question : Compare XML value to string and retrieve different value
Hello. Need a bit of help here.
I've exported a table from Access to an XML file and it looks like this:
<TblAd>
<samid>FPT-PA3105</samid>
<fn>John</fn>
<ln>Doe</ln>
<office>BAL-H/005</office>
<title>BOFH</title>
</TblAd>
I save a record in an SQL database using parameters: cmd.Parameters("@paramUser
Id").Value
= sMyString
What I need is to compare Environment.UserName with the value in 'samid' in the XML file. And if they match, retrieve 'ln' and 'fn' from the same XML and save it in a string.
.NET is v2.0
Would be nice :)
Thank you in advance.
Best regards,
Dennis Svendsen
Answer : Compare XML value to string and retrieve different value
Hi Geert. Why Delphi Programming?
Random Solutions
Read Data from Excel using OLEDB in Visual Basic 2010
VBA routien - simple code help
tsql clean non printable chars using xml path
select records
Mysql Query to retrieve data from last month range
About Formatting and Parsing text strings
Exchange 2007 BCC field Limit?
query result seems to change number to text
How to import mixed XML and data into a SQL Server table
Windows 2000 server and USB 2.0 Iomega External HDD