Groups | Search | Server Info | Login | Register
| 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 | 2019-07-21 19:53 +0100 |
| Message-ID | <gpjqlfFe37jU1@mid.individual.net> (permalink) |
| References | <fb9a442a-cc34-4880-a1e4-c72bf6f7acfc@c36g2000yqn.googlegroups.com> <3836d83f-35cb-4358-aeed-18968ea497de@googlegroups.com> |
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 | Next — Previous in thread | Find similar
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