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

Bug in XMLSpy?

Just put the following comment into a file (w3.xml schema)

<!--
---------------------------------------------------------------------------
-->

I was even careful enough to put spaces after the "<!--" and "-->",
but the parser in XMLSpy complains that the
third "-" after the first gap is "grammatically unexpected". That so?
Nov 23 '07 #1
2 1706

Gus Gassmann <Ho*************@dal.cawrote in
<0b**********************************@o6g2000hsd.g ooglegroups.com>:
Just put the following comment into a file (w3.xml schema)

<!--
---------------------------------------------------------------------------
-->

I was even careful enough to put spaces after the "<!--"
and "-->", but the parser in XMLSpy complains that the
third "-" after the first gap is "grammatically
unexpected".
And Altova is absolutely right this time. Both XML 1.0 4E
and XML 1.1 2E define comments as:

'<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

See 2.5. This restriction is even spelled out in prose.

--
....also, I submit that we all must honourably commit seppuku
right now rather than serve the Dark Side by producing the
HTML 5 spec.
Nov 23 '07 #2
Gus Gassmann wrote:
Just put the following comment into a file (w3.xml schema)

<!--
---------------------------------------------------------------------------
-->

I was even careful enough to put spaces after the "<!--" and "-->",
but the parser in XMLSpy complains that the
third "-" after the first gap is "grammatically unexpected". That so?
Check the specification <URL:http://www.w3.org/TR/REC-xml/#sec-comments>
which states "the string "--" (double-hyphen) MUST NOT occur within
comments".
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 23 '07 #3

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

Similar topics

4
by: kevin bailey | last post by:
hi there, is xmlspy way ahead of everyone else? i work on a linux workstation and use vmware/windows 2000 to work with windows based clients. i have been able to carry out a couple of basic...
0
by: Lars | last post by:
Hi all, I suspect this may be a bug in XMLSpy, since IE seems to validate this XML successfully. Maybe someone here has run into this and can tell me. Problem: When I try to validate the XML...
1
by: Alexey V. Dmitriev | last post by:
Hi, ALL! Try to parse my XML doc with Xerces2-J (v.2.2.0), but ErrorHandler return errors a course of this proccess. All needed features were turn on. BTW, validation under XMLSpy tool passed...
3
by: kevin bailey | last post by:
hi there, since we're now using xmlspy extensively to work with xml docs i wondered if there was a NG which could be used to discuss issues more specific to xmlspy. is this the right NG to...
0
by: Ray Tayek | last post by:
hi, trying to convert some csv files into xsml and pulling a few hairs out :(. using the files below. a java program will parse the csv and take care of strange names and notes that line breaks in...
0
by: Isabelle | last post by:
Hello, This topic is sent to users of XMLSPY. I use XMLSPY and FOP to create stylesheets and pdf documents from xml files. I recieve a data with date format, i.e. CCYY-MM-DD. But I must add...
2
by: Patrick J. Maloney | last post by:
I received a file from a business partner. I ran it through XercesJ and it choked on the following element: <wcb-case-number>0</wcb-case-number> To debug this issue, I loaded it into XMLSPY...
2
by: Jan Mueller | last post by:
Hi all, I don't know whether this is the right group, let me know :-). I tried to open this XML file (with internal DTD) with XMLSpy 2005. I guess some of you also use this tool. ...
14
by: Mat| | last post by:
Hello :-) I am learning XPath, and I am trying to get child nodes of a node whose names do *not* match a given string, e.g : <dummy> <example> <title>Example 1</title> <body>this is an...
5
by: Gumby | last post by:
Hi there! A "special" project team in our department has decided to purchase XMLSpy. We standardize on VS2005 as our IDE and up to now everyone has used the XML parser in VS2005. Are there...
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
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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.