Groups | Search | Server Info | Login | Register


Groups > comp.text.xml > #917

Re: The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared Error

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Peter Flynn <peter@silmaril.ie>
Newsgroups comp.text.xml
Subject Re: The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared Error
Date Sun, 21 Jul 2019 19:53:34 +0100
Lines 43
Message-ID <gpjqlfFe37jU1@mid.individual.net> (permalink)
References <fb9a442a-cc34-4880-a1e4-c72bf6f7acfc@c36g2000yqn.googlegroups.com> <3836d83f-35cb-4358-aeed-18968ea497de@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net kQR/Og46i9yk0uxW2cBabQ+fS+GlBSu2+ZGN1rDKB3ALmMHH52
Cancel-Lock sha1:i/Vij0Era1uf4GRfxwuvBwtP5NE=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
In-Reply-To <3836d83f-35cb-4358-aeed-18968ea497de@googlegroups.com>
Content-Language en-US
Xref csiph.com comp.text.xml:917

Show key headers only | View raw


On 11/06/2019 11:51, oussbkik2@gmail.com wrote:
> Le vendredi 17 avril 2009 16:00:00 UTC, Candle a écrit :
>> I get the following error when I try to validate XML against a
>> schema:
>> The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not
>> declared
>>
>> My questions are:
>> 1. Why I am I getting this error?

The Schema would seem to be defective: it does not contain a declaration
for the "lang" attribute (on some unidentified element).

But that error message looks odd. I don't know why it's mentioning that
URI instead of the one related to the element type where the error
occurred.

>> 2. How can I resolve?

Whatever validator you are using (you don't say) does not identify
*which* element type is in error.

Open the file in an XML editor and click on the Validate button. That
should either jump the cursor to the location of the error, or at least
give you a line number or path to the location.


>> I got the schema definition from a third party (ACORD).

They would be the people to ask.

>> I tried to do this using two different methods:

This looks like a steamroller to crack a nut.  Can you just run a
standalone validator that reports properly on the error?

>> I know the above code samples works since I tried them on a simple
>> example (XML, Schema).  Plus I stole them from a book.

They may work, but they don't seem to provide any useful information.

Peter

Back to comp.text.xml | Previous | NextPrevious in thread | Find similar


Thread

Re: The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not  declared Error oussbkik2@gmail.com - 2019-06-11 03:51 -0700
  Re: The 'http://www.w3.org/XML/1998/namespace:lang' attribute is not declared Error Peter Flynn <peter@silmaril.ie> - 2019-07-21 19:53 +0100

csiph-web