build xml with DOMDocument for autocompletion (closes #3734)
Merge pull request #737 from CircleCode/3.2-I3734

build xml with DOMDocument for autocompletion (closes #3734)