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

  • Home
  • SEARCH
  • 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 6778499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:16:23+00:00 2026-05-26T16:16:23+00:00

I have a XSD file like below: <element name=finder-def minOccurs=0 maxOccurs=unbounded> <complexType> <attribute name=name

  • 0

I have a XSD file like below:

<element name="finder-def" minOccurs="0" maxOccurs="unbounded">
    <complexType>
         <attribute name="name" type="string" use="required"></attribute>
         <attribute name="description" type="string"></attribute>
         <attribute name="class" type="string" use="required"></attribute>
    </complexType>
</element>

<complexType name="Dimension">
    <sequence>
        <element name="finder" type="Finder" minOccurs="0" maxOccurs="1"/>
    </sequence>
</complexType>

<complexType name="Finder">
    <attribute name="name" type="String" use="required"/>
</complexType> 

XML file corresponds to above XSD file is below:

<finder-def name="circleFinder" description="Finds circle based on msisdn" class="com.onmobile.reporting.etl.processor.common.propertyplugins.CircleIdPropertyPlugin" />

<dimension name="circleId">
    <finder name="circleFinder" />
</dimension>

So, here I have defined one finder-def i.e. circleFinder and then want to refer to this finder-def through finder element.

So the question is How can I validate that finder circleFinder has its defination defined above in finder-def

  • 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-05-26T16:16:24+00:00Added an answer on May 26, 2026 at 4:16 pm

    Just another way to use ID and IDREF types inside schema.
    Example:
    Sample XML:

    <?xml version="1.0" encoding="UTF-8"?>
    <f:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:f="http://test.com/finder" xsi:schemaLocation="http://test.com/finder finder.xsd">
    
    <f:finder-def name="circleFinder" description="Finds circle based on msisdn"
                  class="com.onmobile.reporting.etl.processor.common.propertyplugins.CircleIdPropertyPlugin"/>
    
    <f:dimension name="circleId">
        <f:finder name="circleFinder"/>
    </f:dimension>
    </f:root>
    

    XSD schema (I’ve formatted it a bit to validate)

    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="http://test.com/finder"
            xmlns:tns="http://test.com/finder"
            elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="root">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="finder-def" type="tns:finder-def" minOccurs="0" maxOccurs="unbounded"/>
                <xsd:element name="dimension" type="tns:Dimension" minOccurs="0" maxOccurs="unbounded"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="finder-def">
        <xsd:attribute name="name" type="xsd:ID" use="required"/>
        <xsd:attribute name="description" type="xsd:string"/>
        <xsd:attribute name="class" type="xsd:string" use="required"/>
    </xsd:complexType>
    <xsd:complexType name="Dimension">
        <xsd:sequence>
            <xsd:element name="finder" type="tns:Finder" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
        <xsd:attribute name="name" type="xsd:string"/>
    </xsd:complexType>
    <xsd:complexType name="Finder">
        <xsd:attribute name="name" type="xsd:IDREF" use="required"/>
    </xsd:complexType>
    </xsd:schema>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In an xsd file I have this element base type : <xs:complexType name=event abstract=true
Suppose I have an XSD file having below lines of code; <xsd:simpleType name=test> <xsd:restriction
I have the following regex type in my xsd file: <xsd:simpleType name="Host"> <xsd:restriction base="xsd:string">
My xml file is structures like below <outer> <inner name=nam attribute1=abc attribute2=def /> </outer>
I have an XSD file with an enumerated type. I'd like to create an
Imagine I have a basic.xsd file defining some attribute myAttribute in some element myElement
I have an XML snippet like below: <Type> <name>content1</name> <priority></priority> <schedule>30 0/1 * *
I have a xsd file that looks like this: <xs:schema attributeFormDefault=unqualified elementFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema> <xs:element
We have XML file like below... <?xml version='1.0'?> <T0020 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://www.safersys.org/namespaces/T0020V1 T0020V1.xsd xmlns=http://www.safersys.org/namespaces/T0020V1> <IRP_ACCOUNT>
I have XSD file (for example) http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd and I would like to use it

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.