thscharler / spreadsheet-ods

Apache License 2.0
29 stars 6 forks source link

XmlTag attributes should be exposed in the public API #31

Closed 0x00002a closed 12 months ago

0x00002a commented 1 year ago

Hi

I'm am trying to use this library to convert a spreadsheet where some of the cells may contain text formatting within the cell. I need to access the specific formatting of the text within each cell as I want to convert them to another format (markdown). e.g. I have a cell like <span>hello </span><span style-name="...">world</span> and I need to get the value of style-name in order to know how I should format the world text in my output. Currently however the attributes of the xml tags are crate visible only https://github.com/thscharler/spreadsheet-ods/blob/06f508ac3fee5eeddd1532233d0f36f365c52ccf/src/xmltree.rs#L116