Woodstox : Read Attribute Of XML Element
Overview This article demonstrates how to read the attribute in an XML element using Woodstox. Create employee.xml as shown below. Note the attribute ‘id’ for the element ’employee’ (see line 1 below). Create TestReadAttribute class as shown below. Note that start element is obtained by using the StAX API (see lines 20-28 below). The following … Read more