chartserver.py
def combineXmlData(infiles,outfile):
	"""Converts XML data input files into a single XML data file.
	@param infiles: List of XML data input files
	@param outfile: File to write XML output to. Should be empty.
	"""
	outfile.write("<?xml version='1.0' encoding='UTF-8' ?>")
	outfile.write("<data>")
	for infile in infiles:
		text = infile.read()
		match = re.search(r'<data(?: [^>]+)? *>(.*)<\/data>',text,re.DOTALL)
		if (match):
			outfile.write(match.group(1))
	outfile.write("</data>")
Converts XML data input files into a single XML data file.
	@param infiles: List of XML data input files
	@param outfile: File to write XML output to. Should be empty.
	
Converts XML data input files into a single XML data file.
Converts XML data input files into a single XML data file .
def combineXmlData(infiles,outfile):
	outfile.write("<?xml version='1.0' encoding='UTF-8' ?>")
	outfile.write("<data>")
	for infile in infiles:
		text = infile.read()
		match = re.search(r'<data(?: [^>]+)? *>(.*)<\/data>',text,re.DOTALL)
		if (match):
			outfile.write(match.group(1))
	outfile.write("</data>")
def combineXmlData ( infiles , outfile ) : outfile . write ( "<?xml version='1.0' encoding='UTF-8' ?>" ) outfile . write ( "<data>" ) for infile in infiles : text = infile . read ( ) match = re . search ( r'<data(?: [^>]+)? *>(.*)<\/data>' , text , re . DOTALL ) if ( match ) : outfile . write ( match . group ( 1 ) ) outfile . write ( "</data>" )
Converts XML data input files into a single XML data file.
Converts XML data input files into a single XML data file .
"""Converts XML data input files into a single XML data file.
	@param infiles: List of XML data input files
	@param outfile: File to write XML output to. Should be empty.
	"""
infiles
List of XML data input files
List of XML data input files
outfile
File to write XML output to. Should be empty.
File to write XML output to . Should be empty .