unmarshalling XML with multiple namespaces



i am already parsing a XML that has a name space. xmlns="http://www.myweb/ns/v1"


Now suddenly the client has modified the xml and is sending one more namespace with this. xmlns:mds="http://ift.tt/YHAoLt"


So now i am getting two namespaces xmlns:mds="http://ift.tt/YHAoLt" xmlns="http://www.myweb/ns/v1"


Every thing else is working fine except the newly added fields. Example is I can not read this "mds:Name".


Now the question is Do i have to generate all of the POJO classes using new XSD or do i can alter the existing code in some way.


I am looking for an alternate as all the old JAVA POJO regarding current XSD is in a Jar File that is used by other applications too.


Kindly guide me with the options.


Any help will be greatly appreciated.


No comments:

Post a Comment