• Login
Community
  • Login

How to preserve whitespace in xsd validation

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 318 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.
  • E
    Enrico Fiorini
    last edited by Enrico Fiorini Dec 5, 2023, 9:54 AM Dec 5, 2023, 9:49 AM

    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

    M 1 Reply Last reply Dec 5, 2023, 2:08 PM Reply Quote 1
    • M
      Mark Olson @Enrico Fiorini
      last edited by Dec 5, 2023, 2:08 PM

      @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
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors