# Class: com.pnfsoftware.jeb.core.units.code.android.XmlResourceHelper

This helper class facilitates access to the data contained in an XML resource. In particular, the `readAttributeXxx` methods allow easy retrieval of attribute values by tag names, throughout the entire document.

## Constructor: XmlResourceHelper
- parameter: `xml`, type: `com.pnfsoftware.jeb.core.units.IXmlUnit`

Description: Create a manifest helper around the provided manifest unit.
parameter: xml: 

## Constructor: XmlResourceHelper
- parameter: `doc`, type: `org.w3c.dom.Document`

Description: Create a manifest helper around the provided low\-level XML document object.
parameter: doc: 

## Protected Field: doc
Type: `org.w3c.dom.Document`

## Protected Field: rootElt
Type: `org.w3c.dom.Element`

## Protected Method: buildAttributeName
- parameter: `name`, type: `java.lang.String`
- return type: `java.lang.String`


## Protected Method: convertEltlist
- parameter: `nodelist`, type: `org.w3c.dom.NodeList`
- return type: `java.util.List<org.w3c.dom.Element>`


## Protected Method: convertNodelist
- parameter: `nodelist`, type: `org.w3c.dom.NodeList`
- return type: `java.util.List<org.w3c.dom.Node>`


## Protected Method: getAttr
- parameter: `elt`, type: `org.w3c.dom.Element`
- parameter: `name`, type: `java.lang.String`
- return type: `java.lang.String`


## Method: getRootElement
- return type: `org.w3c.dom.Element`

Description: This low\-level method offers access to the `org.w3c.dom.Element` holding the root.
return: 

## Protected Method: getSimpleName
- parameter: `name`, type: `java.lang.String`
- return type: `java.lang.String`


## Method: hasAttributeValue
- parameter: `tagName`, type: `java.lang.String`
- parameter: `attrName`, type: `java.lang.String`
- parameter: `wantedAttrValue`, type: `java.lang.String`
- return type: `boolean`


## Protected Method: isFullyQualifiedName
- parameter: `name`, type: `java.lang.String`
- return type: `boolean`


## Protected Method: isSimpleName
- parameter: `name`, type: `java.lang.String`
- return type: `boolean`


## Protected Method: prepare
- parameter: `doc`, type: `org.w3c.dom.Document`

Description: The default implementation retrieves sets the [#doc](#doc) and [#rootElt](#rootElt) attributes. Overrides must call this implementation first.

## Method: readAttribute
- parameter: `tagName`, type: `java.lang.String`
- parameter: `attrName`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Retrieve the attribute value of the first tag having the provided name.
parameter: tagName: 
parameter: attrName: 
return: the value \(possibly empty if the attribute is not found in the tag\), or null \(if no         element with the provided tag name was found in the document\)

## Method: readAttributes
- parameter: `tagName`, type: `java.lang.String`
- parameter: `attrName`, type: `java.lang.String`
- return type: `java.util.List<java.lang.String>`

Description: Retrieve the attribute values for all tags having the provided name.
parameter: tagName: 
parameter: attrName: 
return: a list of non\-null strings

## Method: readMultiAttributes
- parameter: `tagName`, type: `java.lang.String`
- parameter: `attrNames`, type: `java.lang.String[]`
- return type: `java.util.List<java.util.List<java.lang.String>>`

Description: Retrieve several attribute values for all tags having the provided name.
parameter: tagName: 
parameter: attrNames: a collection of attributes to be retrieved
return: 

