Functions to manage content and indexed content

Here are some commonly used functions and properties that manage content and indexed content. You can find similar functions and properties to manage properties, custom properties, etc.

To attach content and indexed content to a document, use:


// Declared in class IxiaDocument:
public String Content          // property
public String IndexedContent   // property

To store a document in a docbase, including the document’s content and indexed content, use:


// Declared in class IxiaDocumentServices.
// <addFlags> must contain at least the following flags:
//     TextmlConstants.TEXTML_DOCUMENT_CONTENT | 
//     TextmlConstants.TEXTML_DOCUMENT_PROPERTIES
public override IxiaTextmlServerError[] 
                          SetDocuments(IxiaDocument[] documents, 
                                       long addFlags, 
                                       TextmlDocumentType documentType)

To retrieve a document from a docbase, including the document’s content and indexed content, use:


// Declared in class IxiaDocumentServices:
// <getFlags> must contain at least the following flags: 
//     TextmlConstants.TEXTML_DOCUMENT_CONTENT | 
//     TextmlConstants.TEXTML_DOCUMENT_INDEXEDCONTENT
public override Result[] GetDocuments(String[] docNames, 
                                      long getFlags, 
                                      TextmlDocumentType documentType)

To return a document’s content and indexed content from a document, use:


// Declared in class IxiaDocument:
public String Content            // property 
public String IndexedContent     // property