# FIXME: right now it uses pygst and scans on its own;
# we really should use inspect/*.xml instead since the result of
-# gst-xmlinspect.py is commited by the docs maintainer, who can be
+# gst-xmlinspect.py is committed by the docs maintainer, who can be
# expected to have pygst, but this step should be done for every docs build,
# so no pygst allowed
if e2.nodeType == e2.ELEMENT_NODE and e2.localName == 'name':
name = e2.childNodes[0].nodeValue.encode("UTF-8")
elif e2.nodeType == e2.ELEMENT_NODE and e2.localName == 'description':
- description = e2.childNodes[0].nodeValue.encode("UTF-8")
+ if e2.childNodes:
+ description = e2.childNodes[0].nodeValue.encode("UTF-8")
+ else:
+ description = 'No description'
if name != None and description != None:
elements[name] = {'description': description}