How to create new list item using data from XML feed? Is it possible to handle multi line of text in XML feed?

2 Answers 2


I'm not sure what is the full context of your data, but the way I see you either, create the actual list instance as part of your SharePoint solution where you could use

 <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <ListInstance Title="ListWithXml"                
                    Description="This list gets default data">
              <Field Name="Title">Title Item 01</Field>
              <Field Name="Notes">Lorem Ipsum dolor sitament....</Field>
              <Field Name="Title">Title Item 02</Field>
              <Field Name="Notes">Long field with content from long field</Field>
              <Field Name="Title">T</Field>
  1. Rely on some Event Receiver (eg. ListAdded event - see more explanations http://karinebosch.wordpress.com/walkthroughs/event-receivers-theory/) to read data from the XML upon List creation - via SharePoin Server-Side Object model

  2. Use any Client Side Object model to fill-in the list yourself, via some kind of Console Application. - If all depends on the structure of your XML, because you need to handle the actual mapping.


Solution 1 (Simplest):Just open the File with excel (File->Open choose xml) and paste to sharepoint list(data sheet view)

Solution 2 : Parse the xml yourself...


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.