What does it mean that "if null, the name of input will be set as the path"?
Javadoc:
Add
public Add(java.lang.String path,
java.lang.String input)
Constructor, specifying a target path and an input.
Parameters:
path - target path, optionally terminated by a new file name.
If null, the name of the input will be set as path.
input - input file or XML string
I'm looking to add an xml file, so am using "null" for the path:
https://stackoverflow.com/q/60035605/262852
but what are the implications? the "name of the input" will be "set as
path"? Where is the "name of the input"? What is "path" in relation to
a String which exists only in memory?
Just pass a string like:
new Add(null, stringXml).execute(context);
and that should add to the currently open database?
thanks,
Thufir