As mentioned above, metadata describes the structure of data.
Data itself can be contained in flat files, XLS files, DBF files, XML files, or database tables. You need to extract or create metadata in a different way for each of these data sources. You can also create metadata by hand.
Each description below is valid for both internal and external (shared) metadata.