Programatically update Bibliography/References CurrentList?

%3CLINGO-SUB%20id%3D%22lingo-sub-3022141%22%20slang%3D%22en-US%22%3EProgramatically%20update%20Bibliography%2FReferences%20CurrentList%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3022141%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20we%20are%20maintaining%20many%20bibliography%20references%20in%20a%20common%20%3CEM%3Esources.xml.%3CBR%20%2F%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3EAdding%20new%20entries%20from%20the%20MasterList%20to%20the%20ActiveDocument's%20CurrentList%20is%20no%20problem%20in%20VBA%20or%20as%20C%23%20WordAddIn%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3Eforeach%20(Source%20masterSource%20in%20Application.Bibliography.Sources)%7B%0A%20%20if%20(currentTags.Contains(masterSource.Tag))%20%20%7B%0A%20%20%20%20this.Application.ActiveDocument.Bibliography.Sources.Add(masterSource.XML)%3B%0A%20%20%7D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20there%20seems%20to%20be%20no%20way%20to%20update%20citations%20keeping%20the%20same%20tag%20with%20new%20attributes%2C%20eg.%20an%20updated%20Edition%20number.%3CBR%20%2F%3EAny%20hints%20how%20this%20could%20be%20done%3F%3CBR%20%2F%3EThanks%20for%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3022141%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWord%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi, we are maintaining many bibliography references in a common sources.xml.

Adding new entries from the MasterList to the ActiveDocument's CurrentList is no problem in VBA or as C# WordAddIn:

 

foreach (Source masterSource in Application.Bibliography.Sources){
  if (currentTags.Contains(masterSource.Tag))  {
    this.Application.ActiveDocument.Bibliography.Sources.Add(masterSource.XML);
  }
}

 

But there seems to be no way to update citations keeping the same tag with new attributes, eg. an updated Edition number.
Any hints how this could be done?
Thanks for your help!

0 Replies