Parse xml (the ArcGIS Flex Viewer is a big sample of how to do it)Create MapPoints from readed dataCreate array of Graphics with created geometries and required(not nullable) attributesapplyEdits()
FeatureLayer.applyEdits([ptGraphic],null,null,true,null);
Xiannian, Make sure you are passing graphics with all required attributes (as Ivan Mentioned) as an array. If it is a single graphic use code like this (all the items in red are required): FeatureLayer.applyEdits([ptGraphic],null,null,true,null);
Xiannian, Just like Ivan mentioned non nullable attributes. No you do not need to populate the OID or GlobalID fields. Not sure what problem you are having as I do editing this way all the time.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.