I have an model of object in xml file. This model has root tag and some tags inside it. I know how to read tags and parse it into POJO but how I can get sequence of tags?
For example:
<citation type="default">
<part>first-author</part>
<part>title</part>
<part>type</part>
<part>authors-after</part>
<part>publisher</part>
<part>editors</part>
<part>publisher-city</part>
<part>publisher-name</part>
<part>year-date</part>
<part>volume</part>
<part>no</part>
<part>pages</part>
</citation>
I need to read all tags inside in a queue so after i can read them one by one in same sequence as in xml.
From the documentation : http://simple.sourceforge.net/download/stream/doc/tutorial/tutorial.php#list, I cooked you an example.
I have taken the idea here :
Reading a list of elements
Beware, I don't know this lib and I have not tested. Tell me if the result is not as expected.
Citation Class :
Part class :
Deserializing your file :