Community
    • Login

    How to preserve whitespace in xsd validation

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 315 Views
    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
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors