Hi All!

I'm working on a parser for Doxygen's XML output and I have a question about 
where in the XML output I can find the alignment information of a Markdown 
table.

Let's say that I have this example function:


/**
* This is a simple function.
*
* This function showcases how to document a very simple function. It also
* shows that detailed descriptions can have Markdown elements like tables:
*
* | Left aligned   | Center Aligned    | Right Aligned     |
* |:---------------|:-----------------:|------------------:|
* | tableA         | tableB            | tableC            |
* | tableE         | tableF            | tableG            |
*
* @param[in] i Input value.
*/
void test_function(int i);


The relevant XML data for the table is:


<para><table rows="3" cols="3"><row>
<entry thead="yes"><para>Left aligned  </para>
</entry><entry thead="yes"><para>Center Aligned  </para>
</entry><entry thead="yes"><para>Right Aligned   </para>
</entry></row>
<row>
<entry thead="no"><para>tableA  </para>
</entry><entry thead="no"><para>tableB  </para>
</entry><entry thead="no"><para>tableC   </para>
</entry></row>
<row>
<entry thead="no"><para>tableE  </para>
</entry><entry thead="no"><para>tableF  </para>
</entry><entry thead="no"><para>tableG   </para>
</entry></row>
</table>
</para>


I can't find the alignment information anywhere. The HTML output does preserve 
the alignment:


<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadLeft">Left aligned  </th><th 
class="markdownTableHeadCenter">Center Aligned  </th><th 
class="markdownTableHeadRight">Right Aligned   </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyLeft">tableA  </td><td 
class="markdownTableBodyCenter">tableB  </td><td 
class="markdownTableBodyRight">tableC   </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyLeft">tableE  </td><td 
class="markdownTableBodyCenter">tableF  </td><td 
class="markdownTableBodyRight">tableG   </td></tr>
</table>


How can I get the alignment information from the XML output?

Thank you very much!

Leonardo Pereira Santos | ON Semiconductor
Design Engineer

200-611 Kumpf Dr        | Waterloo, Ontario, Canada, N2N 1A8
519-884-9696 x2269 (O)  | 
leonardo.pereirasan...@onsemi.com<mailto:leonardo.pereirasan...@onsemi.com>

_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to