# Effort to converting XML to OSM failing edit

I downloaded building energy models (XML files) from NREL's data repository (https://data.openei.org/s3_viewer?buc...). I intend to convert the files I fetched from here to OSM files so I can use them to run scenarios on PAT. However, when I try to do that, it gives the following error. I tried running the existing sample file measures (base.xml, for example), and they run fine. I wonder what the issue may be with the ones I downloaded from NREL's repository? Is there a way to convert these XML files to OSM?

This element is not expected. Expected is ( SystemIdentifier ).    at C:/OpenStudio-HPXML-1.5.1/workflow/sample_files/in_11848.xml:739
Error: Element 'DuctType': This element is not expected. Expected is ( SystemIdentifier ).    at C:/OpenStudio-HPXML-1.5.1/workflow/sample_files/in_11848.xml:746


I appreciate any help I can get. Thanks!

edit retag close merge delete

See my answer here. Does that help?

( 2023-03-16 14:38:34 -0500 )edit

Hi Scott,

I made the changes to xml file for the two instances mentioned in your response to the linked post (re: Quantity/Count and Ducts SystemIdentifier). Then I tried running it through the OpenstudioHPXML embedded in my Resstock 3.0.0, but it still gives me the following errors:

Error: Expected 1 element(s) for xpath: FloorType[WoodFrame | StructuralInsulatedPanel | SteelFrame | SolidConcrete] [context: /HPXML/Building/BuildingDetails/Enclosure/Floors/Floor, id: "Floor1"] Error: Expected 1 element(s) for xpath: FloorType[WoodFrame | StructuralInsulatedPanel | SteelFrame | SolidConcrete]

( 2023-03-17 08:29:41 -0500 )edit

The errors you encounter can be specific to what's in your HPXML building description and what version of OS-HPXML you are using. The two instances I mentioned were examples of what that person was hitting. You'll want to consult with the Changelog to see what breaking changes occurred between the version of your HPXML file and the version of OS-HPXML that you are trying to run. You can also find documentation specific to each OS-HPXML release.

( 2023-03-17 10:38:36 -0500 )edit
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.21552002429962158, "perplexity": 4609.48711199333}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-14/segments/1679296945183.40/warc/CC-MAIN-20230323194025-20230323224025-00510.warc.gz"}