Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions