Let's have localfile like this:
<file>
<?xml version="1.0" ?>
<project>
<task id="2@1" status="Active" tags=""> <title>2@1</title> <content> </content> </task>
<!--
<task id="3@1" status="Active" tags=""> <title>3@1</title> <content> </content> </task>
-->
</project>
</file>
The traceback:
<traceback>
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/iyo/projekte/liblarch/integrate-liblarch-to-gtg/GTG/core/datastore.py", line 598, in __start_get_tasks
self.backend.start_get_tasks()
File "/home/iyo/projekte/liblarch/integrate-liblarch-to-gtg/GTG/backends/backend_localfile.py", line 142, in start_get_tasks
tid = node.getAttribute("id")
AttributeError: Text instance has no attribute 'getAttribute'
</traceback>
It is because the parser of XML create an empty text element.
Lionel told me that problem is because of its own parsing algorithm. I might look at it. Another problem is that <a> x </a> is not the same as <a>x</a>. Maybe add strip at the beginning and the end of content? It might be not important to preserve whitespace in the beginning and the end of content of task.