
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
A tiny, easy-to-use Object-XML-Mapper for Ruby. Internally uses Nokogiri SAX parser which allows handling of large XML documents.
gem install oxm
<orders>
<order date="2011/08/27">
<item amount="5">Apple</item>
<item amount="2">Banana</item>
<customer id="100">Alice</customer>
</order>
<order date="2011/08/27">
<item amount="1">Zoltax</item>
<customer id="200">Bob</customer>
</order>
</orders>
require 'oxm'
# With block
OXM.from_xml(xml_data_or_io, 'orders/order') do |order|
# Accessing attributes of the element
order['date']
order.attributes
# Accessing attributes and text/cdata values of child elements
order.item.first['amount']
order.item.first.content
order.item.first.to_s
order.item.first.cdata?
# Traverses child elements
order.elements.each do |tag, elements_for_the_tag|
# ...
end
# Compaction: collapse single-element Arrays
order.customer.first.to_s
order.customer.first['id']
order.compact!
order.customer.to_s
order.customer['id']
# XML expression for the element
order.to_xml
order.item.first.to_xml
end
# Array of elements are returned when block is not given
items = OXM.from_xml(xml_data_or_io, 'orders/order/item')
Copyright (c) 2011 Junegunn Choi. See LICENSE.txt for further details.
FAQs
Unknown package
We found that oxm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.