Re: [Simple-support] Specifying More than One Namespace without xmlns in XML NameSpace
Brought to you by:
niallg
|
From: Ankit M. <ank...@ra...> - 2011-11-17 10:29:06
|
While putting it in one reference String I am escaping "".However in XML the same thing is not reflect..I used " to escape also..Still no ways... Is it possible to do??? On 11/12/2011 5:57 PM, Niall Gallagher wrote: > > > Try putting it all in the one reference string > > Sent from Yahoo!7 Mail on Android > > > ------------------------------------------------------------------------ > * From: * Ankit Murarka <ank...@ra...>; > * To: * <gal...@ya...>; > <sim...@li...>; > * Subject: * Specifying More than One Namespace without xmlns in XML > NameSpace > * Sent: * Sat, Nov 12, 2011 5:39:30 AM > > 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.. > | > -- Thanks& Regards, ----------------- Ankit Murarka Service Delivery Platform Landline:022-447-76595 |