Note that there are some explanatory texts on larger screens.

plurals
  1. POParse a XML with attributes and attr values in java
    primarykey
    data
    text
    <p>I have a situation to parse an XML which is having much data in attributes and levels to access the data inside the XML hierarchy.</p> <p>Confused about which parser to be used for this to be a effective approach for parsing. Parsing the XML and how to access the attributes &amp; its value.</p> <p>I was preferring DOM parser and trying to parse it but it was a little complex as i needed to get a tag -> then an attribute -> then attr value and on that condition need to get another tag access.</p> <pre><code> &lt;testCodeIdentifier classCode="ROL" &gt; &lt;realmCode code="QD" /&gt; &lt;id assigningAuthorityName="PRMKEY" extension="SJC16494" /&gt; &lt;statusCode code="active" /&gt; &lt;playingTestCodeDetails classCode="ENT" determinerCode="INSTANCE" &gt; &lt;realmCode code="QD" /&gt; &lt;id assigningAuthorityName="PRMORDCODE" extension="16494" /&gt; &lt;id assigningAuthorityName="TESTNUMINBOOK" extension="16494" /&gt; &lt;code code="16494" codeSystemName="QTIM" displayName="SureSwab Candidiasis" /&gt; &lt;name use=""&gt;&lt;/name&gt; &lt;asSeeAlsoCode classCode="ROL" &gt; &lt;realmCode code="QD" /&gt; &lt;code code="7600" displayName="Sample See Also Name" &gt;&lt;/code&gt; &lt;/asSeeAlsoCode&gt; &lt;asSeeAlsoCode classCode="ROL" &gt; &lt;realmCode code="QD" /&gt; &lt;code code="6496" displayName="Sample See Also Name" &gt;&lt;/code&gt; &lt;/asSeeAlsoCode&gt; &lt;/playingTestCodeDetails&gt; &lt;/testCodeIdentifier&gt; </code></pre> <p>Above is the sample XML in which all attributes are present as data i need to traverse them... JAXB..how can we use it????</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload