How to disallow empty string elements using XML Schema?

  • Thread starter =?ISO-8859-1?Q?Jan-Erik_=D6hman?=
  • Start date
?

=?ISO-8859-1?Q?Jan-Erik_=D6hman?=

Hi.
I want to do something like
<root>
<n>Some text only</n>
</root>

I wan't to define a schema that disallows the following xml-files:
<root>
<n/>
</root>
and
<root>
<n></n>
</root>

where the node 'n' is specified in the schema as xsd:string.

Is this possible? I haven't figured out how to do this.

Anyone know how to do this?

Thanks in advance, Jan-Erik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top