Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bigimot
Last active December 20, 2015 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bigimot/debe0095a5c28cafdc66 to your computer and use it in GitHub Desktop.
Save bigimot/debe0095a5c28cafdc66 to your computer and use it in GitHub Desktop.
<GROUP type="PERCENT" desc="Exterior Wall Construction" id="EWT" defaultSrc="LCD">n <ANSWER valueSrc="LCD" default="100" type="PERCENT" value="100" desc="Wood Framing" id="FRW" defaultSrc="LCD"/>
// trying to get the value "FRW"
// Example of node in the array
=> #(Element:0x3fd3dc460b14 {
name = "GROUP",
attributes = [
#(Attr:0x3fd3d9c43cf8 { name = "type", value = "COUNT" }),
#(Attr:0x3fd3d9c43cbc { name = "desc", value = "Lighting" }),
#(Attr:0x3fd3d9c43bb8 { name = "id", value = "LT" }),
#(Attr:0x3fd3d9c43aa0 { name = "defaultSrc", value = "IH" })],
children = [
#(Text "\n "),
#(Element:0x3fd3dc460650 {
name = "ANSWER",
attributes = [
#(Attr:0x3fd3db9403b0 { name = "valueSrc", value = "IH" }),
#(Attr:0x3fd3db94039c { name = "default", value = "2" }),
#(Attr:0x3fd3db940388 { name = "type", value = "COUNT" }),
#(Attr:0x3fd3db940374 { name = "value", value = "2" }),
#(Attr:0x3fd3db940360 { name = "desc", value = "Ceiling Fan" }),
#(Attr:0x3fd3dc4603bc { name = "id", value = "CF" }),
#(Attr:0x3fd3db94034c { name = "defaultSrc", value = "IH" })]
}),
#(Text "\n ")]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment