Sunday, 24 January 2016

XML : jaxb add attribute in child element

how to get this xml file by jaxb?i can't add Attribute 'type' in element 'description'

   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>      <menu>          <food category="fast">              <name>vegetable</name>              <price>9.0</price>              <description type="hot">normal</description>              <calories>49</calories>          </food>      </menu>    

No comments:

Post a Comment