
Matt McKenna • almost 11 years ago
XML Schema Brief Explanation?
Hello,
I've been checking out the sample Green Button data as well as my own PG&E data. Most of it seems pretty straight forward, but I was wondering if there is a document that has a brief overview of the types of data that is in the XML document as well as what is required/optional.
There seem to be a couple PPT and DOCX files around that touch on these subjects, but I couldn't find anything that concretely explained how the data is formatted.
For example, my PG&E data has only a single element with all my data contained in nested elements. However, the sample data on the Green Button website has multiple elements. Why is that?
Thank you!
Matt
Comments are closed.
1 comment
Matthew Loveless Manager • almost 11 years ago
Matt,
To answer your specific question, Green Button data is composed of one or more interval blocks that contain the interval readings. PG&E uses only one interval block to contain all the downloaded interval readings, while other utilities use an interval block for each month or day's worth of interval readings. This is done to improve the appearance of the data when viewed with the stylesheet, but my guess is that it will be simplest for you to flatten all the interval blocks into a single list of interval readings.
As to the larger question about docs, the materials I found most helpful for learning the standard were the required fields matrix at https://github.com/energyos/OpenESPI/blob/master/greenbuttonsdk/InitialSDK/requiredFieldsmatrix_v3.xlsx and the annotated format demo at https://github.com/energyos/OpenESPI/blob/master/greenbuttonsdk/InitialSDK/Green_Button_File_Format_Demo_20111014.docx
Let me know if those aren't helpful, or if I can answer any other questions.
Thanks!
Matthew