class Lutaml::Model::XmlAdapter::OgaElement

def initialize(node)

def initialize(node)
  attributes = node.attributes.each_with_object({}) do |attr, hash|
    hash[attr.name] = XmlAttribute.new(attr.name, attr.value)
  end
  super(node.name, attributes, parse_children(node), node.text)
end

def parse_children(node)

def parse_children(node)
  node.children.select do |child|
    child.is_a?(Oga::XML::Element)
  end.map { |child| OgaElement.new(child) }
end