473,407 Members | 2,598 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,407 software developers and data experts.

Blank xml tags; whats the deal?

Okay here is my question. I have an XSD and two pieces of
xml that look like this:
snippet1:
<myTag myattr="someVal"></myTag>
snippet2:
<myTag myattr="someVal"/>

Technically speaking both mean the same thing. I validated
both XML's using XMLSPY and they pass through. But one of
our clent uses the old style, that is snippet1. When he
get's snippet2, he encounters an error.

Does any one know about this kind of issues? As in what
part of the xml spec speaks about this? and what is this
called in terms of parser terminology?

Thanks in advance.
Nov 12 '05 #1
1 1438
Snippet 1 and 2 are identical. There is not an "old" version and a "new"
version. XML 1.0 simply states that all tags must be closed. Using a
self-terminating tag is just a shortcut to adhering to the rule.

The error may be caused by specifically attempting to work with the closing
tag. You need to give us some code to look at to give you further details.
"Rakesh" <aa***@myrealbox.com> wrote in message
news:1c****************************@phx.gbl...
Okay here is my question. I have an XSD and two pieces of
xml that look like this:
snippet1:
<myTag myattr="someVal"></myTag>
snippet2:
<myTag myattr="someVal"/>

Technically speaking both mean the same thing. I validated
both XML's using XMLSPY and they pass through. But one of
our clent uses the old style, that is snippet1. When he
get's snippet2, he encounters an error.

Does any one know about this kind of issues? As in what
part of the xml spec speaks about this? and what is this
called in terms of parser terminology?

Thanks in advance.

Nov 12 '05 #2

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

Similar topics

12
by: dan glenn | last post by:
Hi. I'm finding that if I have text entered into a <textarea ...> </textarea> in a form, and that text has leading blank lines (with no spaces or anything else), that when I retrieve the entered...
9
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
2
by: danmc91 | last post by:
I have a set of xml files and a .xsl file which I use to produce html output. However, I want 2 versions of each html file. In one version, I want the whole thing. In the second version I only...
5
by: Tappy Tibbons | last post by:
I have a class I am serializing, and need the resultant XML to skip/omit classes that are not initialized, or their member variables have not been set. Is this possible? Say for the following...
1
by: s.subbarayan | last post by:
Dear all, With respect to structures whats actually "tags" in C?Is is that tags are mainly used for self referential structures and what else are the purpose of using tags in C?How does a tag...
0
by: Robert Seidl | last post by:
I saw that VB .Net 2003 has some tools for easily reading metadata information present in some TIFF and JPG files, eg. ---------------------------------------------------------------- .... Dim b...
3
by: Baquanb | last post by:
I need to get some text between font tags but I only need the text in the last table. The code i'm using below will get text between all font tags anyone know how I can just get whats in TABLE3...
7
by: 一首诗 | last post by:
Is there any simple way to solve this problem?
6
by: damod.php | last post by:
<?php ...<? both are the php tags whats the diff b/w name of the tag??? then i write the code using <? this tag full coding , but the server can not accept my (<?)tag,, its only used <? php tag...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.