Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How to prohibit leading and traling whitespace in XML Schema

$
0
0
I want to prohibit the use of leading and trailing whitespace in an element but besides that all other content is allowed.

For examble <   word? > should give a validation error.

I do not want to use

<whiteSpace value="collapse"/>

Because it doesn't give a validation error.

Is it possible to make a pattern og in some other way solve my problem?

Thanks in advance, Martin

Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>