Skip to content

[kxml_compiler]Make the xs:boolean parsers more pretty #23

@martonmiklos

Description

@martonmiklos

As of today kxml_compiler generates the following parser for xs:boolean types:

  result.setOnlyBreakOrKeepLowResponse( (element.attribute( "only_break_or_keep_low_response" ).toLower() == QStringLiteral("true")) || (element.attribute( "only_break_or_keep_low_response" ).toLower() == QStringLiteral("1") ) );

It would be more nice to introduce an ancestor class for the generated classes where the boolean attribute processing could be implemented.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions