Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 69643
In Process

The Archive Base Latest Articles

Editorial Team

I have this XML in a column in my table: <keywords> <keyword name=First Name

I have this XML in a column in my table:

<keywords>   <keyword name='First Name' value='|FIRSTNAME|' display='Jack' />   <keyword name='Last Name' value='|LASTNAME|' display='Jones' />   <keyword name='City' value='|CITY|' display='Anytown' />   <keyword name='State' value='|STATE|' display='MD' /> </keywords> 

I’m getting a record out of that table using LINQ to SQL via this:

GeneratedArticle ga = db.GeneratedArticles.Single(p => p.GeneratedArticleId == generatedArticleId); 

That works, I get my GeneratedArticle object just fine.

I’d like to walk through the data in the ArticleKeywords field, which is XML. I started doing this:

var keywords = from k in ga.ArticleKeywords.Elements('Keywords')                     select k;              foreach (var keyword in keywords)             {              //what goes here?                } 

I’m not 100% sure that I’m getting that data correctly. I need help with the proper syntax to get the value and display out of my XML field.

Share
  • Facebook
  • Report

Sidebar

Ask A Question

Stats

  • Questions 55k
  • Answers 55k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer If you want to be able to easily format complex… May 11, 2026 at 7:38 am
  • added an answer It's a bit wonky from what I've managed to dig… May 11, 2026 at 7:38 am
  • added an answer I think what you are asking for is a source… May 11, 2026 at 7:38 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base