Is it possible to add the content from inside the html page

Is it possible to add the content from inside the html
page directly and NOT from a XML file?

All components support adding
elements by javascript command - InsertItem in dhtmlxTree and AddRow in
dhtmlxGrid. Also both tree and grid supports loading from XML string, so they
can be initialized by XML not from server, but from anywhere, including the
page itself.