473,388 Members | 1,198 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Variable sequence of element tags in a XML document.

I'm working on an XML document we want to process into our backend
system.
The author of the definition (Schema) wants to allow variable sequence
of different element tags (blocks) in a specific part of that document.
Example:
This is the general structure of that XML document.
You can see different Loan Types as part of the student block
<School>
<Student>
<LoanInformation>
<LoanTypeA>
<LoanTypeB>
<LoanTypeC>
</Student>
</School>

The author wants to allow that the LoanTypes could come in in any
sequence like

<School>
<Student>
<LoanInformation>
<LoanTypeC>
<LoanTypeA>
<LoanTypeB>
</Student>
</School>

or

<School>
<Student>
<LoanInformation>
<LoanTypeB>
<LoanTypeA>
<LoanTypeC>
</Student>
</School>

etc.

the LoanTypes are also Looping elements so multiple entries of those
could occure like

<School>
<Student>
<LoanInformation>
<LoanTypeB>
<LoanTypeA>
<LoanTypeB>
<LoanTypeB>
<LoanTypeC>
<LoanTypeA>
</Student>
</School>

Are there any rules (documented) which either allow this or do not
allow this in any XML document.
Any Information are highly appreciated.

Jul 20 '05 #1
1 1265


de*********@yahoo.com wrote:
I'm working on an XML document we want to process into our backend
system.
The author of the definition (Schema) wants to allow variable sequence
of different element tags (blocks) in a specific part of that document.
Example:
This is the general structure of that XML document.
You can see different Loan Types as part of the student block
<School>
<Student>
<LoanInformation>
<LoanTypeA>
<LoanTypeB>
<LoanTypeC>
</Student>
</School>

The author wants to allow that the LoanTypes could come in in any
sequence like

<School>
<Student>
<LoanInformation>
<LoanTypeC>
<LoanTypeA>
<LoanTypeB>
</Student>
</School>

or

<School>
<Student>
<LoanInformation>
<LoanTypeB>
<LoanTypeA>
<LoanTypeC>
</Student>
</School>

etc.

the LoanTypes are also Looping elements so multiple entries of those
could occure like

<School>
<Student>
<LoanInformation>
<LoanTypeB>
<LoanTypeA>
<LoanTypeB>
<LoanTypeB>
<LoanTypeC>
<LoanTypeA>
</Student>
</School>

Are there any rules (documented) which either allow this or do not
allow this in any XML document.


You need to make sure those tags are closed properly e.g.
<LoanTypeB />
but besides that the XML specification allows what you have.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andy Fish | last post by:
consider the following fragment of xsl: <xsl:variable name="v1"><xsl:if test="false()"/></xsl:variable> <xsl:variable name="v2"></xsl:variable> <xsl:value-of select="boolean($v1)"/>...
5
by: Patient Guy | last post by:
In my reading of the Strict and Transitional DTD for HTML 4.0, the table row (TR) elements are contained within table section elements: THEAD, TFOOT, and TBODY. The table section elements are...
2
by: Jon Martin Solaas | last post by:
Hi, I have a general document somewhat like this: -------------------------------------- <root> <level1> <level2> <interestingstuff number="2"/> <interestingstuff number="3"/>...
3
by: kevin | last post by:
Is that even possible? I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema...
1
by: Lüpher Cypher | last post by:
Hi, I'm trying to have a sequence which will validate both of the following XMLs: <root> <a>text</a> <b>text</b> <c>text</c> <c>text</c>
1
by: Sean Burns | last post by:
Hello, I am busy creating my first XSD and folloing the examples and tutorials from "everywhere" I came up with an xsd that does the job, but I need a alternate to "sequence" because I do not...
4
by: bboyle18 | last post by:
Hi, I am working with a table sorting script which can be found here http://www.workingwith.me.uk/articles/scripting/standardista_table_sorting This script works very nicely, but when there is a...
2
by: shumaker | last post by:
I designed a schema in VS C# 2005 Express and am wondering why it chooses to place a sequence tag around the elements of a table. And additionally, if I move the elements around within the table,...
1
by: Ergates | last post by:
I'm sure I'm just being thick, but I just can't get the following to work. I have loaded an XSD file into an Oracle xmltype table (called xsd_table here). The xsd looks roughly like this: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.