Represents a Custom XML Data Storage Part (custom XML data within a package).
A DOCX or DOC document can contain one or more Custom XML Data Storage parts. Aspose.Words preserves and allows to create and extract Custom XML Data via the CustomXmlParts collection.
Shows how to create a structured document tag with custom XML data.
#include <Aspose.Words.Cpp/Markup/CustomXmlPart.h>
Public Member Functions | |
CustomXmlPart () | |
SharedPtr< CustomXmlPart > | Clone () |
Makes a "deep enough" copy of the object. Does not duplicate the bytes of the Data value. More... | |
ArrayPtr< uint8_t > | get_Data () const |
Gets or sets the XML content of this Custom XML Data Storage Part. More... | |
int64_t | get_DataChecksum () |
Specifies a cyclic redundancy check (CRC) checksum of the Data content. More... | |
String | get_Id () const |
Gets or sets the string that identifies this custom XML part within an OOXML document. More... | |
SharedPtr< CustomXmlSchemaCollection > | get_Schemas () const |
Specifies the set of XML schemas that are associated with this custom XML part. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_Data (const ArrayPtr< uint8_t > &value) |
Setter for get_Data. More... | |
void | set_Id (const String &value) |
Setter for get_Id. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
Aspose::Words::Markup::CustomXmlPart::CustomXmlPart | ( | ) |
System::SharedPtr<Aspose::Words::Markup::CustomXmlPart> Aspose::Words::Markup::CustomXmlPart::Clone | ( | ) |
Makes a "deep enough" copy of the object. Does not duplicate the bytes of the Data value.
Shows how to create a structured document tag with custom XML data.
System::ArrayPtr<uint8_t> Aspose::Words::Markup::CustomXmlPart::get_Data | ( | ) | const |
Gets or sets the XML content of this Custom XML Data Storage Part.
The default value is an empty byte array. The value cannot be null
.
Shows how to create a structured document tag with custom XML data.
int64_t Aspose::Words::Markup::CustomXmlPart::get_DataChecksum | ( | ) |
Specifies a cyclic redundancy check (CRC) checksum of the Data content.
Shows how the checksum is calculated in a runtime.
System::String Aspose::Words::Markup::CustomXmlPart::get_Id | ( | ) | const |
Gets or sets the string that identifies this custom XML part within an OOXML document.
ISO/IEC 29500 specifies that this value is a GUID, but old versions of Microsoft Word allowed any string here. Aspose.Words does the same for ECMA-376 format. But note, that Microsoft Word Online fails to open a document created with a non-GUID value. So, a GUID is preferred value for this property.
A valid value must be an identifier that is unique among all custom XML data parts in this document.
The default value is an empty string. The value cannot be null
.
Shows how to create a structured document tag with custom XML data.
System::SharedPtr<Aspose::Words::Markup::CustomXmlSchemaCollection> Aspose::Words::Markup::CustomXmlPart::get_Schemas | ( | ) | const |
Specifies the set of XML schemas that are associated with this custom XML part.
Shows how to create a structured document tag with custom XML data.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Markup::CustomXmlPart::set_Data | ( | const System::ArrayPtr< uint8_t > & | value | ) |
Setter for Aspose::Words::Markup::CustomXmlPart::get_Data.
void Aspose::Words::Markup::CustomXmlPart::set_Id | ( | const System::String & | value | ) |
Setter for Aspose::Words::Markup::CustomXmlPart::get_Id.
|
static |