public BookData ( |
||
dom | Set this parameter to, say, a page that the user just edited, to limit reading to it, so its values don't get overriden by previous pages. /// Supply the whole dom if nothing has priority (which will mean the data-div will win, because it is first) | |
collectionSettings | ||
updateImgNodeCallback | Action |
This is a callback so as not to introduce dependencies on ImageUpdater & the current folder path |
return | System |
public BookData(HtmlDom dom, CollectionSettings collectionSettings, Action<XmlElement> updateImgNodeCallback)
{
_dom = dom;
_updateImgNode = updateImgNodeCallback;
_collectionSettings = collectionSettings;
GetOrCreateDataDiv();
_dataset = GatherDataItemsFromCollectionSettings(_collectionSettings);
GatherDataItemsFromXElement(_dataset,_dom.RawDom);
MigrateData(_dataset);
}