net.jxta.document
Interface StructuredTextDocument
- public interface StructuredTextDocument
- extends StructuredDocument, TextDocument, TextElement
This interface describes a JXTA Text document. Documents are composed of a
hierachy of elements. Text documents are used to represent JXTA
advertisements
- Since:
- JXTA 1.0
- See Also:
Document
,
TextDocument
,
TextElement
,
StructuredTextDocument
,
StructuredDocumentFactory
,
MimeMediaType
createElement
public TextElement createElement(java.lang.String name)
- Create a new element without value
- Parameters:
name
- The name of the element to be created.- Returns:
- TextElement The new element.
- Since:
- JXTA 1.0
createElement
public TextElement createElement(java.lang.String name,
java.lang.String value)
- Create a new element with value
- Parameters:
name
- The name of the element to be created.value
- The value of the element to be created.- Returns:
- TextElement The new element.