The root element is not declared
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 32/100
Línea de trabajo
Reproduzca el informe en XML Notepad usando el ejemplo de XML/XSD inline y el FirstTry.xsd independiente seleccionado mediante View / Schema. El issue no especifica ningún archivo de implementación, prueba ni cambio esperado concreto; aclare si el objetivo es la asociación de esquemas, el manejo de esquemas inline, la localización o la generación de XSD antes de definir los criterios de finalización.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello everybody,
I introduced xmlNotepad and the resulting file contains this:
<?xml version="1.0"?>
<root>
<Prepare time="15d" />
<Develop time="1y" />
<Promote />
</root>
Everything works OK, but the status bar tells me that the root element is not declared.
So I created a file FirstTry.xsd, with this contents:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root"/>
</xs:schema>
As soon as this file was selected in View / Schema, the mention disappeared, so problem solved, but is it admitted to put the schema in the xml file, as done for instance in the basket.xml sample?
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root"/>
</xs:schema>
<root>
<Prepare time="15j" />
<Develop time="1y" />
<Promote />
</root>
Anyway xmlNotepad stops to claim for undeclared element only once the xsd file is selected in View / Schema.
Well, once done, with this sample we learn that the basket element cannot contain text, perhaps that is another topic.
By the way, I notice that by default this error span in the status bar is the only element in the user interface that appears in French. Perhaps because .Net is installed in French?
Perhaps I should open another thread for this: it would be very handy that the tool be able to generate an xsd file.
Did I make a mistake? The code is much easier to read if the line-feeds are executed. By default the "Code" button of the forum generates a tick before and one after, I then tripled the ticks manually to respect the line-feeds. Oh, and I notice the triple tick at the end has to be on a separate line, otherwise the following paragraphs appear on one line each, which is not necessarily the most readable. And same for the triple tick at the beginning, otherwise the first line of code is lost.
- Lenguaje dominante
- C#
- Estrellas
- 1.2k
- Forks
- 240
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/XmlNotepad
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
microsoft/XmlNotepad#532 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
microsoft/XmlNotepad#517 · 6 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/XmlNotepad#500 ·
-
Where are the sample templates?Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
microsoft/XmlNotepad#499 · 1 comentario ·
-
Add view/option "Find all"Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
microsoft/XmlNotepad#490 · 1 comentario ·
Todos los issues de microsoft/XmlNotepad
Issues similares
-
area-ai untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
dotnet/extensions#7790 ·
Los mantenedores suelen responder en 1 día
-
P2 testing
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
dotnet/runtime#134766 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
0 - Backlog Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
BrighterCommand/Brighter#4444 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día