We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Get hold on structured document tag identifier

Hello,

We are unable to set StructuredDocumentTag identifier.

We really need to manage id of StructuredDocumentTag by ourself.

Is there a way to do it ?

Thanks,

Hi Jean-Pascal,

Thanks
for your inquiry. StructuredDocumentTag.Id property specifies a unique readonly persistent numerical Id for this SDT.

Id attribute shall follow these rules:

  • The document shall retain SDT ids if the whole document is cloned Clone.
  • During ImportNode Id shall be retained if import does not cause conflicts with other SDT Ids in the target document.
  • If multiple SDT nodes specify the same decimal number value for the Id attribute, then the first SDT in the document shall maintain this original Id, and all subsequent SDT nodes shall have new identifiers assigned to them when the document is loaded.
  • DuringClone operation new unique ID will be generated for the cloned SDT node.
  • If Id is not specified in the source document, then the SDT node shall have a new unique identifier assigned to it when the document is loaded.