converting xml doc to dataset RRS feed

  • Question

  • When i try to convert xml document(which is an output from infopath) to dataset(using custom fields psi (i.e) 



    CustomFieldDataSet customFieldDS1 = new customfield.CustomFieldDataSet())



    new XmlNodeReader(xml));(here xml is the xml doc from infopath)

    i am not able to see the values in the dataset .

    can anyone help me?

    Monday, December 20, 2010 7:37 AM


  • The XML data must have the same schema as the CustomFieldDataSet. Try reading a custom field into a CustomFieldDataSet, and then use WriteXml to write out the XML to a file, to see the schema (or use the WriteXmlSchema method). For a code example, see the ReadCustomFieldsByMdPropUids2 method in the SDK.

    Also, you'd probably want to use the ReadXml method on the DataTable to import one or more rows of data into a CustomFieldsDataTable within the CustomFieldDataSet.


    Jim Corbin [MSFT]
    • Proposed as answer by Jim Corbin Monday, December 20, 2010 10:13 PM
    • Marked as answer by Alexander.Burton Saturday, March 26, 2011 7:20 AM
    Monday, December 20, 2010 10:13 PM