This method applies the modification to the XML document
and writes the output byte content accordingly to an outputStream
Notice that output is not guaranteed to be well-formed
overWrite is introduced in version 2.0 that allows you to directly
overwrite the XML content if the token is long enough If the operation is
successful, the new content along with whitespaces will fill the
available token space, and there will be no need to regenerate the VTD
and LCs !!!
The current version (2.0) only allows overwrites on attribute value,
character data, and CDATA
Consider the XML below: good After overwriting the token "good"
with "bad," the new XML looks like: bad as you can see, "goo" is
replaced with "bad" character-by-character, and the remaining "d" is
replace with a white space
overWrite is introduced in version 2.0 that allows you to directly
overwrite the XML content if the token is long enough If the operation is
successful, white spaces will be used to fill the available token space,
and there will be no need to regenerate the VTD and LCs
The current version (2.0) only allows overwrites on attribute value,
character data, and CDATA
Consider the XML below: good After overwriting the token "good"
with "bad," the new XML looks like: bad as you can see, "goo" is
replaced with "bad", and the remaining "d" is replace with a white space