com.spire.doc.documents.markup
Class CustomXmlPart

java.lang.Object
  extended by com.spire.doc.documents.markup.CustomXmlPart

public class CustomXmlPart
extends java.lang.Object

Represents a Custom XML Data Storage Part (custom XML data within a openpackage). A OOML or DOC document can contain one or more Custom XML Data Storage parts. Spire.Words preserves and allows to create and extract Custom XML Data via the Document.getCustomXmlParts() collection. Document.getCustomXmlParts() CustomPartCollection


Constructor Summary
CustomXmlPart()
          Initializes an instance of this class.
 
Method Summary
 CustomXmlPart deepClone()
          Makes a "deep enough" copy of the object.
 byte[] getData()
          Gets or sets the XML content of this Custom XML Data Storage Part.
 java.lang.String getId()
          Gets or sets the string that identifies this custom XML part within an OOXML document.
 void setData(byte[] value)
          Gets or sets the XML content of this Custom XML Data Storage Part.
 void setId(java.lang.String value)
          Gets or sets the string that identifies this custom XML part within an OOXML document.
 

Constructor Detail

CustomXmlPart

public CustomXmlPart()
Initializes an instance of this class.

Method Detail

getId

public java.lang.String getId()
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 Microsoft Word seems to allow any string value for this property and Spire.Words does the same. 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.


setId

public void setId(java.lang.String value)
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 Microsoft Word seems to allow any string value for this property and Spire.Words does the same. 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.


getData

public byte[] getData()
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.


setData

public void setData(byte[] value)
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.


deepClone

public CustomXmlPart deepClone()
Makes a "deep enough" copy of the object. Does not duplicate the bytes of the value.