Xinf API Reference
Back | Index
class xinf.xml.ByAttributeValue<T>
extends Instantiator<T>
import xinf.xml.Instantiator
ByAttributeValue is an Instantiator that matches XML Elements that have a certain attribute with a certain value.
function new( attributeName:String, attributeValue:String, cl:Class<T> ) :Void

Create a new ByAttributeValue Instantiator that matches XML elements that have an attribute with name attributeName and value attributeValue, bound to class cl.

For example,
var i = new ByAttributeValue("name","foo");
matches
<anyNode name="foo"/>

Back | Index