`MappingProvider::loadCodesXml()` should return `title` instead of `desc` values (or both)
Hi! Thanks for this very useful package!
I was trying to decode a DTM message and hoped to get the date format in the codes returned by the loadCodesXml() method but only found the description which is not as useful.
Do you thing this method should return both the title and the desc values of the codes or that we should have a different dedicated method to get the titles?
can you clarify with an example of what you want to extract?
@sabas Thank you for your reply!
For example, in src/Mapping/D00B/codes.xml, the <data_element id="2379"> contains the date format used in its elements' title attributes. I'd like to be able to get those values instead of the desc attribute content which doesn't help me parse the date value I am given in the EDI file.
It could also be useful when building some kind of UI to display data. Eg. the titles from <data_element id="2155"> could help display something like "XXX € Per day".
@DuaelFr understood! I tweaked loadCodesXml with an optional parameter, if you pass true you get an array instead of plainly desc