Package dataprocessor :: Package output :: Module xmlwriter :: Class GenericXMLWriter
[hide private]
[frames] | no frames]

Class GenericXMLWriter

source code

   object --+    
            |    
GenericWriter --+
                |
               GenericXMLWriter
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, data=None)
Constructor
source code
 
get_parallelsentence_xml(self, ps) source code
 
get_parallelsentence_string(self, ps) source code
 
get_document_xml(self, parallelsentences)
Creates an XML for the document an populates that with the (parallel) sentences of the given object.
source code
 
write_to_file(self, filename) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data=None)
(Constructor)

source code 

Constructor

Overrides: object.__init__

get_parallelsentence_string(self, ps)

source code 
Overrides: GenericWriter.get_parallelsentence_string

get_document_xml(self, parallelsentences)

source code 

Creates an XML for the document an populates that with the (parallel) sentences of the given object. Resulting XML object gets stored as a variable.

Parameters:
  • parallelsentences - a list of ParallelSentence objects

write_to_file(self, filename)

source code 
Overrides: GenericWriter.write_to_file