[vtkusers] vtkXMLDataElement::CharacterData
shintaro akiyama
sntaki at gmail.com
Fri Jul 31 12:01:26 EDT 2009
Hello.
vtkXMLDataElement::CharacterData always have memoryblock.
However, some methods check whether ChacarterData is NULL.
Ex:
vtkXMLUtilities::FlattenElement
const char *cdata = elem->GetCharacterData();
int nb_nested = elem->GetNumberOfNestedElements();
int need_close_tag = (nb_nested || cdata);
if (!need_close_tag)
{
os << "/>";
}
else
{
os << '>'; // always executed.
}
I want to have NULL ChacarterData, and output close tag.
How should I do?
--
Shintaro AKIYAMA
More information about the vtkusers
mailing list