title: Checking for multiple tags with SAXParser
body: <p>I don't know how to correctly phrase this question, but I'll show an example.  </p>
  
  <p><img src="https://i.stack.imgur.com/k0ZF3.png" alt="enter image description here"></p>
  
  <p>Assume I want to know the attribute <code>type</code> of the tag <code>block</code> I could just </p>
  
  <pre><code> if (localName == "block") {
  
      int type = Integer.parseInt(attributes.getValue("type));
  </code></pre>
  
  <p>However I also have different files that describe a blocktype itself, wich uses the &lt; block > 
  tags as base tags. I have to know if the attribute is a child from BOTH (Level/Blocktype) AND block.  Or maybe if it's under both LevelArray and Block.  </p>
  
  <p>I hope I'm making any sense, I don't know too much of Xml/xmlparsing.  </p>
  
  <p>-How do I look for attributes from elements nested inside other elements?</p>