Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Help -Parsing XML file with 2 levels down

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Santosh Shet <santushet AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Help -Parsing XML file with 2 levels down
  • Date: Sun, 8 Dec 2013 13:30:07 +0530

Hi,

I am trying to parse XML file using xom parser in java.
My XML file looks like as below:
<AdministrativeFee>
<MaxAdministrativeFee>0.25000</MaxAdministrativeFee>
<FeeSchedule>
<Unit>Percentage</Unit>
<BreakpointUnit>1</BreakpointUnit>
<LowBreakpoint>0</LowBreakpoint>
<HighBreakpoint>2000000000</HighBreakpoint>
<Value>0.25</Value>
</FeeSchedule>
<FeeSchedule>
<Unit>Percentage</Unit>
<BreakpointUnit>1</BreakpointUnit>
<LowBreakpoint>5000000000</LowBreakpoint>
<HighBreakpoint>7500000000</HighBreakpoint>
<Value>0.15</Value>
</FeeSchedule>
</AdministrativeFee>

I want to store each elements as key,value pairs inside Map without name
collisions as <FeeSchedule> have multiple sub elements. Could somebody
provide your thoughts how to achieve this.

Thanks in advance.

Santosh



  • [XOM-interest] Help -Parsing XML file with 2 levels down, Santosh Shet, 12/08/2013

Archive powered by MHonArc 2.6.24.

Top of Page