Regarding IdAttributeUsedForSharedObjects


while writing in XML file we use to set
this.IdAttributeUsedForSharedObjects = true;

so that it gives unique id to node,port,link etc…

while updating XML file is there any way to get that id from file so that we can pass that id and update only that perticular node.

I don’t think you can update just part of an XML file. Certainly not part of an XML stream. You’ll need to read it all in and then write it all out, although you might not need to finish reading it before starting to write it.