As I understood it before taking this job, XML Uses a series of key-value pairs that up till today seemed fairly straight forward with how I was using it. Basically I need to parse an XML document like this in Android:
<MailingAddress Caption="Mailing Address" PropertyType="CRM.Address" FieldType="4" DisplayType="0" ValueType="0" IsRequired="False">
<CRM.Address>
<Street Caption="Street" PropertyType="System.String" FieldType="1" DisplayType="1" ValueType="1" MaxDataLength="400" IsRequired="False" />
<City Caption="City" PropertyType="System.String" FieldType="1" DisplayType="1" ValueType="1" MaxDataLength="400" IsRequired="False" />
<State Caption="State" PropertyType="System.String" FieldType="1" DisplayType="1" ValueType="1" MaxDataLength="200" IsRequired="False" />
<PostalCode Caption="Postal Code" PropertyType="System.String" FieldType="1" DisplayType="1" ValueType="1" MaxDataLength="100" IsRequired="False" />
<Country Caption="Country" PropertyType="System.String" FieldType="1" DisplayType="1" ValueType="1" MaxDataLength="200" IsRequired="False" />
</CRM.Address>
Does anyone know how I might go about parsing this or know of a parser that would be useful to me? Am I going to have to write my own parser?
This looks like well formed xml , so have a schema, generate POJO using xsd to java command , and de-serilize then we should have values in xml as POJO thus we can do whatever we want from java pojo