XML - no declaration found for element xs schema ////

 
Vista:
sin imagen de perfil
Val: 1
Ha mantenido su posición en XML (en relación al último mes)
Gráfica de XML

no declaration found for element xs schema ////

Publicado por omar (1 intervención) el 23/10/2018 22:28:02
Hola muchas gracias por leer y ver mi problema y gracias por ayudarme. mi problema es el siguiente estoy haciendo un xsd y me sale el error. (no declaration found for element xs schema) y no se cual es mi problema soy nuevo en esto y el formato dice que esta bien hecho solo me manda el error .//////


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmIns="https://www.siged.sep.gob.mx/certificados"targetNamespace="https://www.siged.sep.gob.mx/certificados"elementFormDefault="qualified">

y mi problema esta en
elementFormDefault="qualified"> yno sé cual es el problema ya que la estructura no esta mal solo esa parte del codigo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<xs:element name="Dec">
<xs:complexType>
<xs:sequence>
<xs:element name="lpes">
<xs:complexType>
<xs:sequence>
<xs:element name="Responsable">
<xs:complexType>
<xs:attribute name="curp" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="nombre" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="primerApellido" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="segundoApellido" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="idCargo" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="cargo" type="xs:string" use="optional">
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="idNombrelnstitucion" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="nombrelnstitucion" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="idCampus" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="campus" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="idEntidadFederativa" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="entidadFederativa" type="xs:string" use="optional">
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Rvoe">
<xs:complexType>
<xs:attribute name="numero" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="fechaExpedicion" type="xs:dateTime" use="required">
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Carrera">
<xs:complexType>
<xs:attribute name="idCarrera" type="xs:integer" use="required">
</xs:attribute>
<xs:attribute name="claveCarrera" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="nombreCarrera" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="idTipoPeriodo" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="tipoPeriodo" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="clavePlan" type="xs:string" use="required">
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Alumno">
<xs:complexType>
<xs:attribute name="numeroControl" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="curp" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="nombre" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="primerApellido" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="segundoApellido" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="idGenero" type="xs:integer" use="required">
</xs:attribute>
<xs:attribute name="fechaNacimiento" type="xs:dateTime" use="required">
</xs:attribute>
<xs:attribute name="foto" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="firmaAutografa" type="xs:string" use="optional">
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Expedicion">
<xs:complexType>
<xs:attribute name="idTipoCertificacion" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="tipoCertificacion" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="fecha" type="xs:dateTime" use="required">
</xs:attribute>
<xs:attribute name="idLugarExpedicion" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="lugarExpedicion" type="xs:string" use="optional">
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Asignaturas" minOccurs="l" maxOccurs="l">
<xs:complexType>
<xs:sequence>
<xs:element name="Asignatura" minOccurs="l" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="idAsignatura" type="xs:integer" use="required">
</xs:attribute>
<xs:attribute name="claveAsignatura" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="nombre" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="ciclo" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="calificacion" type="xs:string" use="required">
</xs:attribute>
<xs:attribute name="idObservaciones" type="xs:integer" use="optional">
</xs:attribute>
<xs:attribute name="observaciones" type="xs:string" use="optional">
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="total" type="xs:int" use="required">
</xs:attribute>
<xs:attribute name="asignadas" type="xs:int" use="required">
</xs:attribute>
<xs:attribute name="promedio" type="xs:string" use="required">
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Sep" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:any maxOccurs="unbounded" minOccurs="0" namespace="any"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="version" use="required" fixed="l.0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute fixed="S" name="tipoCertificado" type="xs:integer" use="required">
</xs:attribute>
<xs:attribute name="folioControl" type="xs:string" use="optional">
</xs:attribute>
<xs:attribute name="sello" use="required" type="xs:string">
</xs:attribute>
<xs:attribute name="certificadoResponsable" use="required" type="xs:string">
</xs:attribute>
<xs:attribute name="noCertificadoResponsable" use="required" type="xs:string">
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

//////////////////////////////////////////////////////////////////////
y cuando lo paso a xml sale esto...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<Dec version="test attribute" tipoCertificado="test attribute" folioControl="test attribute" sello="test attribute" certificadoResponsable="test attribute" noCertificadoResponsable="test attribute">
     <lpes idNombrelnstitucion="test attribute" nombrelnstitucion="test attribute" idCampus="test attribute" campus="test attribute" idEntidadFederativa="test attribute" entidadFederativa="test attribute">
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
     </lpes>
     <lpes idNombrelnstitucion="test attribute" nombrelnstitucion="test attribute" idCampus="test attribute" campus="test attribute" idEntidadFederativa="test attribute" entidadFederativa="test attribute">
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
     </lpes>
     <lpes idNombrelnstitucion="test attribute" nombrelnstitucion="test attribute" idCampus="test attribute" campus="test attribute" idEntidadFederativa="test attribute" entidadFederativa="test attribute">
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
           <Responsable curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idCargo="test attribute" cargo="test attribute">test string</Responsable>
     </lpes>
     <Rvoe numero="test attribute" fechaExpedicion="test attribute">test string</Rvoe>
     <Rvoe numero="test attribute" fechaExpedicion="test attribute">test string</Rvoe>
     <Rvoe numero="test attribute" fechaExpedicion="test attribute">test string</Rvoe>
     <Carrera idCarrera="test attribute" claveCarrera="test attribute" nombreCarrera="test attribute" idTipoPeriodo="test attribute" tipoPeriodo="test attribute" clavePlan="test attribute">test string</Carrera>
     <Carrera idCarrera="test attribute" claveCarrera="test attribute" nombreCarrera="test attribute" idTipoPeriodo="test attribute" tipoPeriodo="test attribute" clavePlan="test attribute">test string</Carrera>
     <Carrera idCarrera="test attribute" claveCarrera="test attribute" nombreCarrera="test attribute" idTipoPeriodo="test attribute" tipoPeriodo="test attribute" clavePlan="test attribute">test string</Carrera>
     <Alumno numeroControl="test attribute" curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idGenero="test attribute" fechaNacimiento="test attribute" foto="test attribute" firmaAutografa="test attribute">test string</Alumno>
     <Alumno numeroControl="test attribute" curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idGenero="test attribute" fechaNacimiento="test attribute" foto="test attribute" firmaAutografa="test attribute">test string</Alumno>
     <Alumno numeroControl="test attribute" curp="test attribute" nombre="test attribute" primerApellido="test attribute" segundoApellido="test attribute" idGenero="test attribute" fechaNacimiento="test attribute" foto="test attribute" firmaAutografa="test attribute">test string</Alumno>
     <Expedicion idTipoCertificacion="test attribute" tipoCertificacion="test attribute" fecha="test attribute" idLugarExpedicion="test attribute" lugarExpedicion="test attribute">test string</Expedicion>
     <Expedicion idTipoCertificacion="test attribute" tipoCertificacion="test attribute" fecha="test attribute" idLugarExpedicion="test attribute" lugarExpedicion="test attribute">test string</Expedicion>
     <Expedicion idTipoCertificacion="test attribute" tipoCertificacion="test attribute" fecha="test attribute" idLugarExpedicion="test attribute" lugarExpedicion="test attribute">test string</Expedicion>
     <Asignaturas total="test attribute" asignadas="test attribute" promedio="test attribute">
           <Asignatura idAsignatura="test attribute" claveAsignatura="test attribute" nombre="test attribute" ciclo="test attribute" calificacion="test attribute" idObservaciones="test attribute" observaciones="test attribute">test string</Asignatura>
           <Asignatura idAsignatura="test attribute" claveAsignatura="test attribute" nombre="test attribute" ciclo="test attribute" calificacion="test attribute" idObservaciones="test attribute" observaciones="test attribute">test string</Asignatura>
           <Asignatura idAsignatura="test attribute" claveAsignatura="test attribute" nombre="test attribute" ciclo="test attribute" calificacion="test attribute" idObservaciones="test attribute" observaciones="test attribute">test string</Asignatura>
     </Asignaturas>
     <Sep>test string</Sep>
     <Sep>test string</Sep>
     <Sep>test string</Sep>
</Dec>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder