Class gxe.xml.Generator
				
				
			
				Serializes an XML document.
				
				
					
Defined in:  gxe.js.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| Field Attributes | Field Name and Description | 
|---|---|
| the editor context | |
| the document title | |
| true if validation errors were encountered | |
| true if serialization is for a draft document | |
| true if all content should be validated | |
| true if only the title should be validated | 
| Method Attributes | Method Name and Description | 
|---|---|
| _execEscape(s, bEscapeApostrophe)
								 Executes and XML escape against a string. | |
| escAttribute(s)
								 Executes the text content of an XML attribute. | |
| escElement(s)
								 Executes the text content of an XML element. | |
| generate(context, asDraft)
								 Serializes an XML document. | |
| handleValidationError(sMessage, xmlNode)
								 Handles a validation error. | 
					Field Detail
				
				
					 
					
					
					{gxe.Context}
					context
					
					
					
						the editor context
						
						
					
					
					
						
						
						
						
					
					
					{String}
					documentTitle
					
					
					
						the document title
						
						
					
					
					
						
						
						
						
					
					
					{boolean}
					hadValidationErrors
					
					
					
						true if validation errors were encountered
						
						
					
					
					
						
						
						
						
					
					
					{boolean}
					isSaveAsDraft
					
					
					
						true if serialization is for a draft document
						
						
					
					
					
						
						
						
						
					
					
					{boolean}
					isValidating
					
					
					
						true if all content should be validated
						
						
					
					
					
						
						
						
						
					
					
					{boolean}
					isValidatingTitleOnly
					
					
					
						true if only the title should be validated
						
						
					
					
					
						
						
						
						
					
				
			
		
			
				
					Method Detail
				
				
					 
					
					
					{String}
					_execEscape(s, bEscapeApostrophe)
					
					
					
						Executes and XML escape against a string.
						
						
					
					
					
					
						
							- Parameters:
- {String} s
- the string to escape
- {boolean} bEscapeApostrophe
- true if apostrophies should be escaped
- Returns:
- {String} the escaped string
					
					{String}
					escAttribute(s)
					
					
					
						Executes the text content of an XML attribute.
						
						
					
					
					
					
						
							- Parameters:
- {String} s
- the string to escape
- Returns:
- {String} the escaped string
					
					{String}
					escElement(s)
					
					
					
						Executes the text content of an XML element.
						
						
					
					
					
					
						
							- Parameters:
- {String} s
- the string to escape
- Returns:
- {String} the escaped string
					
					{String}
					generate(context, asDraft)
					
					
					
						Serializes an XML document.
						
						
					
					
					
					
						
							- Parameters:
- {gxe.Context} context
- the editor context
- {boolean} asDraft
- true if the serialization is for a draft document (minimal validation)
- Returns:
- {String} the serialized string
					
					{gxe.control.InputBase}
					handleValidationError(sMessage, xmlNode)
					
					
					
						Handles a validation error.
						
						
					
					
					
					
						
							- Parameters:
- {sMessage} sMessage
- the message
- {gxe.xml.XmlNode} xmlNode
- the target XML node that threw the error
- Returns:
- {gxe.control.InputBase} inputControl the input control for the target node