cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'
Date : March 29 2020, 07:55 AM
will help you The order of elements in web.xml matters and in all examples I've come across, the comes after .<servlet>
<servlet-name>spring1</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
|
cvc-complex-type.2.4.a: Invalid content was found starting with element 'param'. One of '{param}' is expected
Tag : xml , By : user178372
Date : March 29 2020, 07:55 AM
Hope that helps You probably want param to be in the targetNamespace of the schema, in which case you should add elementFormDefault="qualified" to the xs:schema element. This is almost always the correct setting to use. Unfortunately the XSD designers got the default wrong. Validation error on line 4 of test.xml:
XSD: In content of element <dashboard>: The content model does not allow element
<Q{.../DashboardSchema}param> to appear as the first child. The element is in namespace
http://example.com/DashboardSchema but it should be in no namespace.
Validating /dashboard[1]/param[1]
See http://www.w3.org/TR/xmlschema11-1/#cvc-complex-type clause 2.4
|
Null detection in a complex type with field of another complex type
Tag : sql , By : user183825
Date : March 29 2020, 07:55 AM
wish help you to fix your issue Q1 Is it possible to test null value of complex type with nested complex types? You are not the first to be confused by this. For simple types IS NULL and IS NOT NULL are inverse operations. Either one is true, or the other. But not so for row-valued or composite (complex) types. IS NOT NULL only returns TRUE if (and only if) every single column is NOT NULL. Per documentation:SELECT ROW(table.*) IS NULL FROM table; -- detect all-null rows
SELECT ROW((_r).*) IS NULL;
SELECT '(123,,)'::some_type;
SELECT (ROW(123, NULL, NULL))::some_type;
|
How to query and sort a complex type consisting of IEnumerable<T> using LINQ?
Tag : chash , By : Carlos Galdino
Date : March 29 2020, 07:55 AM
it fixes the issue Your SubCategory will be a collection so you cannot do it using ThenBy. You need to order the Category(s) and then order their SubCategory(s) like this. Note I added two SubCategory(s) to the first Category but their order is not correct. After we order them, then they will be correct: Category[] categories = {
new Category { Title ="Abc", SubCategory = new List<NameValue>
{ new NameValue { Name = "B", Value = "5"},
new NameValue { Name = "A", Value = "5"} } },
new Category { Title ="Xyz", SubCategory = new List<NameValue>
{ new NameValue { Name = "A", Value = "10" } } }};
// First order by categories
var cats = categories.OrderBy(c => c.Title)
// Then create a new category and order by sub categories
.Select(x => new Category { Title = x.Title,
SubCategory = x.SubCategory.OrderBy(y => y.Name) });
|
How to implement a complex IEnumerable<T> directly inside the type containing the IEnumerable<T> property?
Tag : chash , By : noboruwatanabe
Date : March 29 2020, 07:55 AM
|