I'm fairly new to XML and completely new to XSD but i've been setting up an XML Schema recently and hit a snag. I've got some XML nodes/elements in an XML file (that references the XSD file) that can contain text but i want to require them to have actual valid text if they exist. Originally i set up a restriction to require a minLength of 1, but this still allows <element> </element> with nothing actually in the text (other then spaces) and i wanted to try and instead require real text to be inside of those tags. Is there an option for this or should i be falling back on a pattern expression or something like that? (those make no sense to me by the way). Any ideas?
Start Free Trial