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 76763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:43:28+00:00 2026-05-10T20:43:28+00:00

Is it best to create sharepoint lists in a feature using xml (schema.xml) or

  • 0

Is it best to create sharepoint lists in a feature using xml (schema.xml) or using custom code which create the list using the API?

I ask because I would expect the declarative approach to be the easiest, but according to all tutorials I have found it seems I have to create an enormous schema.xml file by copying and modifying an existing schema.xml or by generating it automatically from an existing list. The schema.xml seems to contain a lot of redundant data.

Edit: I’m talking about a custom list with custom columns.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:43:28+00:00Added an answer on May 10, 2026 at 8:43 pm

    Schema.xml is a mess. You should use it if you want control over the various views, or if you want the user to find your custom list on the ‘Create list’ page. Otherwise I would create a list with a standard template, and add columns as needed, all in code. (Remember to also add the columns to the appropriate views.)

    Another reason to use code is if you want to use a lookup field. I haven’t found a good way to set the target list in xml.

    That said, it isn’t difficult to use schema.xml. The disadvantage is esthetic: You’re adding a large amount of data to your project, most of which you’ll never want to touch, and will frighten future maintainers. Code is clean.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Read about CDATA. There are characters that are not allowed… May 16, 2026 at 6:11 pm
  • Editorial Team
    Editorial Team added an answer It does 5 things: It creates a new object. The… May 16, 2026 at 6:11 pm
  • Editorial Team
    Editorial Team added an answer var savings = parseFloat('<?php echo $list_price ?>'.substr(1)) - parseFloat(discount_price.substr(1)); This… May 16, 2026 at 6:11 pm

Trending Tags

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

Top Members

Related Questions

I have some event handlers which are tracking list items in my SharePoint lists.
I have created a custom list in a SharePoint site and generated a Visual
I have created a feature in Visual Studio, using WSPBuilder to build the .wsp
Let's assume that you've created a SharePoint solution - a WebPart, a feature for
I am working on a SharePoint application where the data is kept in lists.
Possible Duplicate: Best practice to create (on demand) SQL Server 2008 Express databases in
What is the best way to create an online video-on-demand service with this requirements:
What is the best way to create a C-style static variable in Java (local
I am a beginner in SQL Functions. What is the best way to create
I'm pretty new to sharepoint-development, so I thought I'd check real quick with the

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

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.