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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:36:06+00:00 2026-06-14T18:36:06+00:00

I have a question according to asmxml. I try to write a schema to

  • 0

I have a question according to asmxml.
I try to write a schema to a xml file. The schema looks like following:

<schema>
        <document name="XRF">
                <collection name="IL">
                        <attribute name="k"/>
                        <collection name="I">
                                <attribute name="k"/>
                                <collection name="M">
                                        <attribute name="k"/>
                                        <attribute name="v"/>
                                </collection>
                                <collection name="P">
                                        <attribute name="k"/>
                                        <attribute name="v"/>
                                        <attribute name="t"/>
                                        <attribute name="d"/>
                                </collection>
                        </collection>
                </collection>
        </document>
</schema>

Here the snippet from The XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--<!DOCTYPE XRF SYSTEM "/apid/xml/xrf.dtd">-->
<XRF r="8.5.2" c="iD2" g="" u="DE23580-apiinlife03" k="918887283" d="20120523" t="235602">
<IL k="1">              
<I k="1007667,361,402"> 
<M k="3" v="GB0008762899"/>     
<M k="187" v="BG Group" l="4"/> 
<P k="33,3,2" v="13.065" t="181502" d="20120522" y="524" n="0" b="779"/>
<P k="2,1,1" v="12.56" t="080025" d="20120523" z="74876" y="272" n="459" b="908"/>
<P k="41,1,1" s="5"/>           
<P k="9,3,2" v="12.73" t="163519" d="20120522" z="8322" y="158" n="0" b="779"/>                  
</I>
</IL>
</XRF>

Could someone help me to fix the “schema”? I don’t know what am I doing wrong.
Thank you in advance.

Greetings
z.

  • 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-14T18:36:07+00:00Added an answer on June 14, 2026 at 6:36 pm

    Old question, but perhaps it could help some new users landing here.
    While defining a schema with AsmXML, you cannot imbricate directly collections like that.

    You would rather link a reference to the appropriate definition of the collection you want to use by defining the collection outside the <document> section. For example, the correct schema in your case would be :

    <schema>
        <collection name="M">
            <attribute name="k"/>
            <attribute name="v"/>
        </collection>
    
        <collection name="P">
            <attribute name="k"/>
            <attribute name="v"/>
            <attribute name="t"/>
            <attribute name="d"/>
        </collection>
    
        <collection name="I">
            <attribute name="k"/>
            <reference name="M"/>
            <reference name="P"/>
        </collection>
    
        <document name="XRF">
                <collection name="IL">
                        <attribute name="k"/>
                        <reference name="I" />
                </collection>
        </document>
    </schema>
    

    Also, be sure to include all the attributes needed in your collection, you can also use groups to do this.
    More can be found there : http://tibleiz.net/asm-xml/documentation.html

    Hope this helps !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question div which looks like so: <div class=Q> <div id=Q1><span>1. </span>Which
I have interesting question. According to MSDN yield syntax : yield return <expression>; //
I have a question regarding a window style hexadecimal. According to http://support.microsoft.com/kb/111011/en-us , 0x16CF0000
I have question about parsing in Html helper : I have sth like: @foreach
I have question about XSLT1.0. The task is to write out in HTML all
I have a question about k-means clustering in R. Actually i'm doing everything according
I have modified the code in this question ,according to the answers there, in
I have a question about the skype protocol. Supposedly, according to wiki, the supernodes
My colleague asked me a question like license check to config file. when i
I have a question about joins when using Linq to Entities. According to the

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.