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

Free Support Forum - aspose.com

Get StructuredDocumentTag by Name

I am trying to find if there is a way to get the StructuredDocumentTag object by its name. Currently we need to get the NodeCollection and iterate over it to get the object with that name. Wondering if there is any easy way like getting the bookmark object from the BookmarkCollection by name.

@mp2 Unfortunately, currently there is no shortcut for Structured Document Tags similar to Bookmarks. I have create a feature request WORDSNET-23301 to provide a quick way to access Structured Document Tag by Id.
Could you please also let me know if Id is the identifier you use to access your SDTs or by saying Name of SDT you mean its Title?

yes that is correct. Its title/tag.

@mp2 Thank you for additional information. I have added this information to the defect.

The issues you have found earlier (filed as WORDSNET-23301) have been fixed in this Aspose.Words for Java 22.4 update.

1 Like