Skip to main content

Homepage Header Links

  • About ENERGY STAR
  • Partner Resources

Homepage Header Search box

 
ENERGY STAR
  • Energy Efficient Products

    energy efficient products

    ENERGY STAR products are independently certified to save energy without sacrificing features or functionality. Saving energy helps prevent climate change. Look for the ENERGY STAR label to save money on your energy bills and help protect our environment.

    • Find ENERGY STAR Products
    • Energy Savings at Home
    • Take the Pledge
    • Learn about Climate Change

    • Ways to Save

    • Tax Credits

    • Ask an Expert

    • Heat and Cool Efficiently

    How can we help you?

    • How can I make my home entertainment center more energy efficient?
    • What should I know about LED lights?
    • I'd like to know about power management.
    • How can I reduce hot water use in my home?

    Quick Links

    • Where does my money go?
    • Set and Save with ENERGY STAR
    • Product Finder
    • Rebate Finder
    • Best Value Finder
    • Find ENERGY STAR Products
    • Energy Savings at Home
    • Take the Pledge
    • Learn about Climate Change
  • Energy Savings At Home

    energy savings at home

    Improving your home's energy efficiency with ENERGY STAR can help to lower high energy bills, improve comfort and reduce greenhouse gas emissions. Learn about the many ways to save in your home and track your progress with "My ENERGY STAR" - your new dashboard to savings.

    • Start Saving Now
    • Take the Pledge
    • Home Assessment Tools
    • Seal and Insulate Your Home
    • Learn about ENERGY STAR Products
    • Learn about Home Performance with ENERGY STAR

    • Ways to Save
    • Happy couple looking at ENERGY STAR Home Advisor on their laptop
      Home Assessment Tools

    • Heat and Cool Efficiently

    • Tax Credits

    How can we help you?

    • I want help with improving my home's comfort and efficiency
    • How can I heat and cool my home efficiently?
    • How can I stop drafts?
    • I'd like to know about power management for my computer.
    • How do I choose the right lighting for my home?
    • I'm upgrading my kitchen appliances. What should I know?

    Quick Links

    • Home Improvement FAQs
    • HVAC Maintenance Tips
    • For Home Improvement Contractors
    • ENERGY STAR Choose a Light Guide
    • My ENERGY STAR Dashboard
    ​
    • Start Saving Now
    • Take the Pledge
    • Home Assessment Tools
    • Seal and Insulate Your Home
    • Learn about ENERGY STAR Products
    • Learn about Home Performance with ENERGY STAR
  • Energy Efficient New Homes

    new homes & apartments

    A new home or apartment that has earned the ENERGY STAR label has undergone a process of inspections, testing, and verification to meet strict requirements set by the US EPA. ENERGY STAR certified homes and apartments use significantly less energy than typical new homes and apartments while delivering better comfort, quality, and durability.

    • Find Builders and Incentives
    • Home Features and Benefits
    • Homeowner Testimonials
    • Resources for Partners

    • Find ENERGY STAR Home Builders

    • ENERGY STAR
      Home Features
      and Benefits

    • Homeowner Testimonials

    • Find an Energy Efficient Apartment

    How can we help you?

    • Features of an energy efficient new home
    • Benefits of living in an ENERGY STAR certified home
    • I want to buy an ENERGY STAR certified home
    • I want to construct an ENERGY STAR certified home
    • I want to find an ENERGY STAR apartment

    Quick Links

    • Builder and Incentive Locator
    • In the News
    • Green Homes and ENERGY STAR
    • Energy Efficient Mortgage Programs
    • Find Energy Efficient Certified Apartments and Condos
    • Find Builders and Incentives
    • Home Features and Benefits
    • Homeowner Testimonials
    • Resources for Partners
  • Energy Strategies for Buildings & Plants

    buildings & plants

    Improve financial performance and reduce carbon emissions with EPA's strategic energy management approach.

    • Facility Owners & Managers
    • Service Providers
    • Energy Efficiency Program Administrators
    • Tenants
    • Tools & Resources

    • Portfolio Manager
    • Find Certified Buildings

    • National Building Competition

    • Find Expert Help

    How can we help you?

    • Build an energy program
    • Improve buildings & plant performance
    • Earn the ENERGY STAR & other recognition
    • Benchmark energy use
    • ENERGY STAR in action
    • Communicate & educate

    Quick Links

    • Portfolio Manager
    • Target Finder
    • Plant EPIs
    • Commercial Food Service
    • Tools & Resources
    • Facility Owners & Managers
    • Energy Efficiency Program Administrators
The simple choice for energy efficiency.

You are here

Home » Expert Home Improvements » For Programs & Professionals » Resources Library » HPXML Implementation Guide » Software Developer Guide

Energy Savings at Home

Advice, tools, resources and inspiration to help you save energy
  • All Ways to Save
  • DIY Home Assessment
  • Heating & Cooling
  • Seal & Insulate
  • Expert Home Improvements
    • Benefits
    • How It Works
    • Success Stories
    • Find Local Help
    • About
    • For Programs & Professionals
  • My ENERGY STAR Dashboard

In this section

  • News & Events
  • Program Requirements
  • Become a Program Sponsor
  • Become a Participating Contractor
  • Marketing Toolkit
  • Resources Library
    • HPXML Implementation Guide
    • Health and Home Performance
  • Program Activity

XML Element References

XML documents are inherently hierarchical. This works out quite well for describing many things regarding houses and home performance in general. For instance, an AFUE is a property of a furnace which is part of an HVAC system on a building. Many other relationships are not as strictly hierarchical, however. An example of this would be the relationship between two furnaces in different snapshots of the building where one furnace replaced the other. In that case, there is no clear parent-child relationship.

In HPXML we have the ability and requirement to identify many elements with unique identifiers. This facilitates referential relationships between elements throughout the document. This is done with the SystemIdentifier element.

HPwES SystemIdentifier element

Intra-document references

The most common reference you will make is a reference that is internal to the document.

Home Performance with ENERGY STAR logo

GUIDE CONTENTS

  • Introduction
  • Data Standards Ecosystem
    • BPI Data Standards
    • BPI Working Group 5
    • Building Energy Data Exchange Specification (BEDES)
  • Program Administrator Guide
    • Benefits for HPXML Adoption
    • Implementation Guide
    • Step 1: Setting Goals
    • Step 2: Stakeholder Feedback
    • Step 3: Identify Data Needs
    • Step 4: Program Management Systems
    • Step 5: Data Validation Process
    • Step 6: Testing Protocols and User Training
    • Step 7: Quality Management Plan
    • Conclusion
  • Software Developer Guide
    • Introduction
    • Versioning
    • Document Structure
    • XML Element References
    • Use Cases

ID and IDREF

Each element in the HPXML document that could need to be referenced has a required SystemIdentifier sub-element which in turn has a required id attribute. That attribute has the xs:ID data type in XML Schema. This provides a unique identifier for that element within the document. This is similar to a primary key in a relational database.

When an element needs to reference another element it uses an xs:IDREF datatype, which ensures that the id referenced exists somewhere within the document. One simple example of this is how a window can reference which wall it is attached to.

<?xml version="1.0" encoding="UTF-8"?>
<HPXML xmlns="http://hpxmlonline.com/2014/6" schemaVersion="2.0">
    <XMLTransactionHeaderInformation>
        <XMLType></XMLType>
        <XMLGeneratedBy></XMLGeneratedBy>
        <CreatedDateAndTime>2014-09-03T16:06:24Z</CreatedDateAndTime>
        <Transaction>create</Transaction>
    </XMLTransactionHeaderInformation>
    <SoftwareInfo/>
    <Building>
        <BuildingID id="bldg1"/>
        <ProjectStatus>
            <EventType>audit</EventType>
        </ProjectStatus>
        <BuildingDetails>
            <Enclosure>
                <Walls>
                    <Wall>
                        <SystemIdentifier id="wall1"/>
                    </Wall>
                </Walls>
                <Windows>
                    <Window>
                        <SystemIdentifier id="window1"/>
                        <AttachedToWall idref="wall1"/>
                    </Window>
                </Windows>
            </Enclosure>
        </BuildingDetails>
    </Building>
</HPXML>

sameas

The sameas attribute is a special IDREF that is used most predominantly in the case of the Audit-Upgrade. It serves to link components of buildings between the pre- and post-upgrade Building nodes. Each Building node is a full description of the building and measures only affect some of the components. For components that do not change it is useful to have a way to indicate that they are the same item.

<?xml version="1.0" encoding="UTF-8"?>
<HPXML xmlns="http://hpxmlonline.com/2014/6" schemaVersion="2.0">
    <XMLTransactionHeaderInformation>
        <XMLType></XMLType>
        <XMLGeneratedBy></XMLGeneratedBy>
        <CreatedDateAndTime>2014-09-03T16:06:24Z</CreatedDateAndTime>
        <Transaction>create</Transaction>
    </XMLTransactionHeaderInformation>
    <SoftwareInfo/>
    <Building>
        <BuildingID id="bldg1"/>
        <ProjectStatus>
            <EventType>audit</EventType>
        </ProjectStatus>
        <BuildingDetails>
            <Enclosure>
                <Walls>
                    <Wall>
                        <SystemIdentifier id="wall1"/>
                    </Wall>
                </Walls>
            </Enclosure>
        </BuildingDetails>
    </Building>
    <Building>
        <BuildingID id="bldg1post"/>
        <ProjectStatus>
            <EventType>proposed workscope</EventType>
        </ProjectStatus>
        <BuildingDetails>
            <Enclosure>
                <Walls>
                    <Wall>
                        <SystemIdentifier id="wall1post" sameas="wall1"/>
                    </Wall>
                </Walls>
            </Enclosure>
        </BuildingDetails>
    </Building>
</HPXML>

Inter-document references

The SystemIdentifier element also has sub-elements that facilitate specifying identifiers for both a sending and receiving system. This way a document could identify components based on where it is coming from and going to. This feature currently isn’t used much in lieu of the much simplified Intra-document references.

< Previous

Next >

Main menu

  • Energy Efficient Products
    • Find ENERGY STAR Products
    • Energy Savings at Home
    • Take the Pledge
    • Learn about Climate Change
  • Energy Savings At Home
    • Start Saving Now
    • Take the Pledge
    • Home Assessment Tools
    • Seal and Insulate Your Home
    • Learn about ENERGY STAR Products
    • Learn about Home Performance with ENERGY STAR
  • Energy Efficient New Homes
    • Find Builders and Incentives
    • Home Features and Benefits
    • Homeowner Testimonials
    • Resources for Partners
  • Energy Strategies for Buildings & Plants
    • Facility Owners & Managers
    • Service Providers
    • Energy Efficiency Program Administrators
    • Tenants
    • Tools & Resources

Homepage Footer last menu

  • ENERGY STAR Home
  • About ENERGY STAR
  • Recursos en Español
  • Publications
  • Partner Resources
  • Contact Us | FAQs
  • Newsroom
  • Kids
  • Privacy
  • US EPA logo
    EPA Home
  • US DOE logo
    DOE Home