gnewton / chidley

Convert XML to Go structs / XML to JSON
Apache License 2.0
273 stars 35 forks source link

Read in multiple XML files of same type #11

Closed gnewton closed 6 years ago

gnewton commented 7 years ago

Right now, only one XML file is used to build the XML 'model', so if it is missing some XML elements the model will be incomplete. However, if multiple XML files can be read and the union of them used to create the model, then elements that are in one but not in the other will be captured, and the model will be complete (actually, just more complete, i.e. as complete as all the XML files can make it)

gnewton commented 6 years ago

This is done. Multiple files will be read in sequentially. Useful for big files where you are not sure if all the XML in the schema is expressed in one file.