mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 17:55:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			547 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			547 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using HaXMLReader.EvArgs;
 | |
| using System.Linq;
 | |
| 
 | |
| namespace HaDocument {
 | |
|     static class Helpers {
 | |
|         internal static string GetElementString(Tag tag) {
 | |
|             var res = "<" + (tag.EndTag ? "/" : "") + tag.Name.ToLower();
 | |
|             if (!tag.EndTag && tag.Values != null && tag.Values.Any()) {
 | |
|                 foreach (var kvp in tag.Values) {
 | |
|                     res += " " + kvp.Key.ToLower() + "=\"" + kvp.Value.ToLower() + "\"";
 | |
|                 }
 | |
|             }
 | |
|             return res + (tag.IsEmpty ? "/" : "") + ">";
 | |
|         }
 | |
|     }
 | |
| } | 
