What is the best way to define the number of decimals in a schema?

I'm using xmlspy. Do I use facets and paterns to set the number of decimal places? If yes, can I get an example? Thx!
Who is Participating?
Geert BormansConnect With a Mentor Information ArchitectCommented:
I think you need a regex

<xsd:simpleType name="exactlyTwoAfterDecimal">
    <xsd:restriction base="xsd:token">
        <xsd:pattern value="-?\d+\.\d\d"/>
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.