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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:54:09+00:00 2026-06-03T13:54:09+00:00

Here is my XSD. I am not able to understand why I keep getting

  • 0

Here is my XSD. I am not able to understand why I keep getting this error:

CDIER0202E: Internal Fatal DOM error encountered while loading XML
schema=:urn|library|Test123247_1|resource|SmallCase.xsd:urn|library|Test123247_1|resource|SmallCase.xsd:urn|library|Test123247_1|resource|SmallCase.xsd:3:35:322:The
prefix “xsd” for element “xsd:element” is not bound..

Here is the new XSD after edits:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:scotiaXML="http://xml.scotia.com"  targetNamespace="http://xml.scotia.com" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
<!-- Begin Level 1 =============================================-->
<xsd:element name="OTC_Matching" type="temp"/>
<xsd:complexType name="temp" mixed="false">
    <xsd:sequence>
        <xsd:choice>
            <xsd:element ref="PostTrade"/>
        </xsd:choice>
    </xsd:sequence>
</xsd:complexType>
<!-- End Level 1 =============================================-->
<xsd:element name="PostTrade" type="PostTradeTransaction"/>
<xsd:complexType name="PostTradeTransaction" abstract="true">
    <xsd:sequence>
        <xsd:choice>
            <xsd:element name="elem1" type="xsd:string"/>
        </xsd:choice>
    </xsd:sequence>
</xsd:complexType>

  • 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-03T13:54:12+00:00Added an answer on June 3, 2026 at 1:54 pm

    Your first problem is you haven’t assigned the namespace xsd to anything. Why are you using xs and xsd ? I think you want to replace xsd with xs everywhere.

    A second problem is you haven’t provided a close tag.

    A third problem is that you have not indicated that PostTrade is in a sequence with OTC_Matching.

    Can you provide a sample xml you want to validate with this schema?

    This gets further and gives me the error:

    D:\downloads>\bin\xmllint.exe --schema y.xsd x1.xml
    <?xml version="1.0"?>
    <OTC_Matching xmlns="http://xml.scotia.com">
    <PostTrade>
    <elem1/>
    </PostTrade>
    </OTC_Matching>
    x1.xml:2: element PostTrade: Schemas validity error : Element '{http://xml.scoti
    a.com}PostTrade': The type definition is abstract.
    x1.xml fails to validate
    

    With this

    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:scotiaXML="http://xml.scotia.com" targetNamespace="http://xml.scotia.com" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
      <!-- Begin Level 1 =============================================-->
      <xs:element name="OTC_Matching">
        <xs:complexType mixed="false">
          <xs:sequence>
            <xs:choice>
              <xs:element name="PostTrade" type="scotiaXML:PostTradeTransaction"/>
            </xs:choice>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <!-- End Level 1 =============================================-->
      <xs:complexType name="PostTradeTransaction" abstract="true">
        <xs:sequence>
          <xs:choice>
            <xs:element name="elem1" type="xs:string"/>
          </xs:choice>
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While trying to generate classes from a xsd, i got this error: java.lang.IllegalArgumentException: Illegal
Not sure what the appropriate tags are here... A while back I created a
I have an XSD, here is part of it defined below, but it's not
I reading articles about XSD on w3schools and here many examples. For example this:
Here is my first attempt at validating XML with XSD. The XML file to
Here is a schema file, midi.xsd that defines a type, note , used to
Here is some simple code: DIR* pd = opendir(xxxx); struct dirent *cur; while (cur
I do not know enough about the XML namespace to see my error. Do
Here's a common error when dealing with UTF-8 - 'invalid tokens' In my example,
I'm new to Spring and I'm not able to make the transaction propagation in

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.