RDunkley / XML-To-Data-Class

Tool to Generate C# custom data classes from an XML file.
Apache License 2.0
0 stars 0 forks source link

Add Namespace Support #19

Open RDunkley opened 7 years ago

RDunkley commented 7 years ago

Add the ability to separate out generated code by namespaces. So spirit:version creates a Version class in a Spirit namespace and xilinx:version creates a different Version class in the Xilinx namespace. An example of this is Xilinx component.xml files generated from their IP core packager in Vivado.

RDunkley commented 4 years ago

This was partially added with commit 9dcd18676a4758801adc33bf70894167899db7ad. It currently works if you don't maintain hierarchy on a multiple namespace XML file. To fix this we really need to maintain two structures. The namespace elements and a tree structure of how those elements relate. The GUI should really not separate out the namespace elements because they aren't really separate if hierarchy is maintained. Wondering if we should have two different GUI panels. One for hierarchy and the other for when it doesn't.