[xsd-users] Set Node Text via Iterator
Derrick Babb
d at op.st
Tue Mar 15 12:12:59 EDT 2016
Hello,
I am having difficulty setting the text of a node whose type extends public
::xml_schema::string via an iterator.
Here are the details:
class myType: public ::xml_schema::string
{
...
}
for (my_iterator itor = root.examples().begin(); itor !=
root.examples().end(); itor++)
*itor = "Some Text";
Compiler error:
no match for ‘operator=’ (operand types are
‘xsd::cxx::tree::iterator_adapter<__gnu_cxx::__normal_iterator<xsd::cxx::tree::sequence_common::ptr*,
std::vector<xsd::cxx::tree::sequence_common::ptr> >, myType>::value_type
{aka myType}’ and ‘const char [10]’)
Other node attributes should be preserved. Only the node text should be
replaced.
Thank you!
Sincerely,
d
More information about the xsd-users
mailing list