Community
    • Login

    How to preserve whitespace in xsd validation

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 591 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Enrico FioriniE Offline
      Enrico Fiorini
      last edited by Enrico Fiorini

      Hi, I have problem in xsd validation;
      I want validate xml file;
      There is a tag with blank and this is the rule:
      <xs:simpleType name=“Max35Text”>
      <xs:restriction base=“xs:string”>
      <xs:minLength value=“1”/>
      <xs:maxLength value=“35”/>
      </xs:restriction>
      </xs:simpleType>

      On validation , I HAVE this error :

      730c39a6-d5ac-42c6-8572-8f5b0ed5b5a5-image.png

      I would like to be able to set a rule that removes spaces in tags that only contain spaces

      Thank YOU

      Mark OlsonM 1 Reply Last reply Reply Quote 1
      • Mark OlsonM Offline
        Mark Olson @Enrico Fiorini
        last edited by

        @Enrico-Fiorini
        This feels to me more like a question about XSD (which I know nothing about, just linked the best-seeming link I could find) than about Notepad++.

        On the other hand, if you found an example of where XMLTools (or whatever plugin you’re using, IDK) was giving an error where it shouldn’t be, that is more of a Notepad++ - related question.

        1 Reply Last reply Reply Quote 2

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors