ambiguity in xml structure

reeroberson76

New Member
I saw this XML:\[code\]<amount type="downpayment"></amount>\[/code\]I'm wondering why not do it like this:\[code\]<amount> <type>downpayment</type></amount>\[/code\]1.Is there any particular reason or meaning why it's written in approach 1 instead of 2?2.how will those two XMLs be translated to POJO? what would be the difference.3.any reserved word in XML that must not be used?
 
Back
Top