Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1058505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:02:13+00:00 2026-05-16T18:02:13+00:00

I am using xsd:schema which will be used to generated desired xml, I have

  • 0

I am using xsd:schema which will be used to generated desired xml, I have a title field in xsd:schema.

I want to validate it from xsd:schema only that whenever user try to put values more than 10 characters, it will generate the error.

Below is the part of my xsd:schema

<xsd:sequence>
    <xsd:element name="Title" minOccurs="0" maxOccurs="1" type="xsd:normalizedString"/>         
    <xsd:element name="City" minOccurs="0" maxOccurs="1" type="tcmi:SimpleLink">
        <xsd:annotation>
            <xsd:appinfo>
                <tcm:linktype>ComponentLink</tcm:linktype>
                <tcm:AllowMultimediaLinks>false</tcm:AllowMultimediaLinks>
                <tcm:AllowedTargetSchemas>
                    <tcm:TargetSchema xlink:href="tcm:227-190428-8" xlink:title="City"/>
                </tcm:AllowedTargetSchemas>
            </xsd:appinfo>
        </xsd:annotation>
    </xsd:element>
    <xsd:element name="FlightLinkText" minOccurs="0" maxOccurs="1" type="xsd:normalizedString"/>                
</xsd:sequence>

I means that can we validate it from <xsd:element name="Title" minOccurs="0" maxOccurs="1" type="xsd:normalizedString"/>

Please suggest!

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:02:13+00:00Added an answer on May 16, 2026 at 6:02 pm

    Have you tried something like:

    <xsd:element name="Title" minOccurs="0" maxOccurs="1">
      <xsd:simpleType>
        <xsd:restriction base="xsd:normalizedString">
          <xsd:maxLength value="10"/>
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an XSD schema which I've generated a class for using xsd.exe, and
I've seen several questions regarding problems with generating classes from XML Schema using xsd.exe
I have the following xml which has xsd schema, but is poor and no
I have this Maven task to generate Java classes from an XSD file using
I am creating an XML file in C# using a XSD Schema of an
How can one validate an XML file using an XSD in Java? We don't
I saw an xml schema ( EPP ) whitch used xsd:choice with an element
I have a sample code in which i am trying to validate a xml
I am using the Ecore model which is based on imported XML Schema file
I am using XmlReader to validate a XML file as per the supplied schema.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.