# RDoc XML: How to include methods data?

**URL:** <https://www.ruby-forum.com/t/rdoc-xml-how-to-include-methods-data/67713>\
**Category:** Ruby\
**Created:** [September 6, 2006, 9:45am UTC](https://www.ruby-forum.com/t/rdoc-xml-how-to-include-methods-data/67713 "2006-09-06T09:45:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graham\_w](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3ab097/32.png) [@graham\_w](https://www.ruby-forum.com/u/graham_w)\
**Post date:** [September 6, 2006, 9:45am UTC](https://www.ruby-forum.com/t/rdoc-xml-how-to-include-methods-data/67713/1 "2006-09-06T09:45:27Z")

</div>

RDoc experts:

I used RDoc to generate XML output for a set of ruby classes, but I  
can’t  
get RDoc output to include the methods information.

Test cases:

This command line:  
rdoc -a --fmt xml -T xml.rb -n src\_184.xml  
\ruby\src\ruby-1.8.4\_2006-04-14  
…produces xml that contains classes and files but no methods.

This almost identical command line:  
rdoc -a --fmt html -n src\_184.htm \ruby\src\ruby-1.8.4\_2006-04-14  
… produces html, _with_ method data included.

In addition, I see that the template (xml.rb) includes sections like:

* * *

## IF:method\_list START:method\_list IF:methods START:methods %params% […]

… like it was clearly _intended_ to output methods data.

Anyone know what’s up with this?

FWIW, this is using 1.8.4 on Windows. (Probably obvious from the above!)

Thanks,

Graham

## –

Graham W.  
Microsoft Visio MVP
