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 8678577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:45:23+00:00 2026-06-12T20:45:23+00:00

I am newbie to XML. I am validating one XML/XSD file. But Eclipse is

  • 0

I am newbie to XML.

I am validating one XML/XSD file. But Eclipse is throwing below validation error

s4s-elt-invalid-content.1

Here’s the code where it’s having issues in XSD.

<complexType name="Check_String">
    <complexContent >
        <extension base="tns:Boolean"/>
    </complexContent>
    <complexContent >
        <extension base="tns:String"/>
    </complexContent>
</complexType>

I am not sure how to solve this. Can any one explain why this error and workaround.
because of this validation of XML fails

 <attribute name="Reset password Call Barring"  xsi:type="tns:Check_String"  nillable="true" vdsl2Name="PSWD">
            <conditions when="BADPAYER_DisableAllForPSTN" enabled="false"/>
 </attribute>
  • 1 1 Answer
  • 0 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-06-12T20:45:25+00:00Added an answer on June 12, 2026 at 8:45 pm

    The content model of a complex type must consist of ‘annotation’ (if present); followed by zero or one of the following: ‘simpleContent’, ‘complexContent’, ‘group’, ‘choice’, ‘sequence’, or ‘all’; followed by zero or more ‘attribute’ or ‘attributeGroup’; followed by zero or one ‘anyAttribute’.

    Here you’re showing two complexContent.

    I assume that in your case, the default namespace is http://www.w3.org/2001/XMLSchema

    It is hard to say what you’re trying to achieve; if these would be simple types, then maybe a union might help you instead, if you were trying to go after allowing both types…

    UPDATE: this is an example of a union:

    <?xml version="1.0" encoding="utf-8" ?>
    <!--XML Schema generated by QTAssistant/XML Schema Refactoring (XSR) Module (http://www.paschidev.com)-->
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xsd:simpleType name="Boolean">
            <xsd:restriction base="xsd:boolean"/>
        </xsd:simpleType>
        <xsd:simpleType name="String">
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="some"/>
            </xsd:restriction>
        </xsd:simpleType>
        <xsd:simpleType name="Check_String">
            <xsd:union memberTypes="Boolean String"/>
        </xsd:simpleType>
        <xsd:element name="root" type="Check_String"/>
    </xsd:schema>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'll admit, I'm an XML newbie. I'm having trouble validating some xml against a
I'm a newbie with LINQ2XML. I'm trying to filter an xml file and get
I am a newbie to OPENXML. But I am trying to load a .XML
I am newbie in XML parsing world. I found solution for reading xml file
I am a newbie in creating Google Hangouts and using the XML file and
I am a newbie and was trying to traverse a ajax loaded xml file.
F# newbie I have 2 XML files in 2 folders c:\root\a\file.xml and c:\root\b\file.xml They
An XSLT-newbie problem: I need to substitute a text value in XML-file. All other
I am newbie in LINQ to XML.I have two variable one and two and
Newbie :( Tweaking my way through tutorials but 36 hours can't figure this one

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.