fromPrototype static method
Implementation
static XmlElement? fromPrototype(String? prototype, String id)
{
if ((prototype != null))
{
prototype = prototype.replaceAll(placeholder, id);
var document = Xml.tryParse(prototype);
var node = document != null ? document.rootElement : null;
return node;
}
return null;
}