Show Table of Contents
3.17. RuleBase Example
In this example, there is an XML message containing a collection of order items. (This functionality works similarly for all other data formats supported by Smooks.):
<Order>
<header>
<orderId>A188127</orderId>
<username>user1</username>
<name>
<firstname>Bob</firstname>
<lastname>Bobington</lastname>
</name>
<email>bb@awesomemail.com</email>
<state>Queensland</state>
</header>
<order-item>
<quantity>1</quantity>
<productId>364b</productId>
<title>A Great Movie</title>
<price>29.95</price>
</order-item>
<order-item>
<quantity>2</quantity>
<productId>299</productId>
<title>A Terrible Movie</title>
<price>29.95</price>
</order-item>
</Order>
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.