use an <item> field when serializing a table to xml

This commit is contained in:
Tomasz Sowa 2023-02-27 00:29:51 +01:00
parent cf377204a9
commit dee48ea2b5
Signed by: tomasz.sowa
GPG Key ID: 662CC1438638588B
2 changed files with 6 additions and 5 deletions

View File

@ -24,6 +24,7 @@
./main.o: ../src/select.h ../../pikotools/src/convert/text.h
./main.o: ../src/flatexpression.h ../src/finder.h ../src/cursor.h
./main.o: ../src/jsonexpression.h ../src/postgresqlexpression.h
./main.o: ../src/jsonconnector.h ../src/postgresqlconnector.h
./main.o: ../src/postgresqlqueryresult.h ../src/transaction.h person.h
./main.o: language.h attachment.h type.h attachment2.h
./main.o: ../src/xmlexpression.h ../src/jsonconnector.h
./main.o: ../src/postgresqlconnector.h ../src/postgresqlqueryresult.h
./main.o: ../src/xmlconnector.h ../src/transaction.h person.h language.h
./main.o: attachment.h type.h attachment2.h

View File

@ -125,13 +125,13 @@ void XMLExpression::esc(const pt::Space & space, pt::TextStream & stream, const
void XMLExpression::put_value_list_opening_index(size_t index, const FT & field_type)
{
(*out_stream) << L"<_" << index << L">";
(*out_stream) << L"<item index=\"" << index << L"\">";
}
void XMLExpression::put_value_list_closing_index(size_t index, const FT & field_type)
{
(*out_stream) << L"</_" << index << L">";
(*out_stream) << L"</item>";
}