Note that there are some explanatory texts on larger screens.

plurals
  1. POXML child node attribute value
    primarykey
    data
    text
    <p>I'm trying to read xml file, ex :</p> <pre><code>&lt;entry&gt; &lt;title&gt;FEED TITLE&lt;/title&gt; &lt;id&gt;5467sdad98787ad3149878sasda&lt;/id&gt; &lt;tempi type="application/xml"&gt; &lt;conento xmlns="http://mydomainname.com/xsd/radiofeed.xsd" madeIn="USA" /&gt; &lt;/tempi&gt; &lt;/entry&gt; </code></pre> <p>Here is the code I have so far :</p> <p>Here is my attempt of trying to code this, what to say not successful thats why I started bounty. Here it is <a href="http://pastebin.com/huKP4KED" rel="nofollow noreferrer">http://pastebin.com/huKP4KED</a> . </p> <p><strong>Bounty update :</strong></p> <p>I really really tried to do this for days now didn't expect to be so hard, I'll accept useful links/books/tutorials but prefer code because I need this done yesterday.</p> <p>Here is what I need:</p> <p>Concerning xml above : </p> <ul> <li>I need to get value of title, id</li> <li>attribute value of tempi as well as madeIn attribute value of contento</li> </ul> <p>What is the best way to do this ?</p> <p><strong>EDIT:</strong> </p> <p>@Pascal Thivent</p> <p>Maybe creating method would be good idea like public String getValue(String xml, Element elementname), where you specify tag name, the method returns tag value or tag attribute(maybe give it name as additional method argument) if the value is not available</p> <p>What I really want to get certain tag value or attribute if tag value(s) is not available, so I'm in the process of thinking what is the best way to do so since I've never done it before</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