[Simple-support] Specifying More than One Namespace without xmlns in XML NameSpace
Brought to you by:
niallg
|
From: Ankit M. <ank...@ra...> - 2011-11-12 05:51:44
|
Hello All,
I am trying to do something like this:-
|<Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Testing.xsd">
However when I used this|
|@Root(name="Test",strict=false)
@NamespaceList({
@Namespace(reference="xsi=http://www.w3.org/2001/XMLSchema-instance"),
@Namespace(reference="xsi:noNamespaceSchemaLocation"="Testing.xsd")
})
I get two xmlns in my XML Namespace..Although it is understood that using two Namespace will generate two xmlns but how can
I generate the xsi:noNamespaceSchemaLocation in my xml..
I succeeded by using attribute Annotation inside my class but that is not what I want..It always better to specify things related to schema
before the beginning of the class..Also attribute is not made for that purpose..
Is it possible to do in simpleFramework.
Thanks..
|
|