In debug mode, I could see that the xmloptions is being set at the Factory class but down the line, it is giving error. I am attaching the stacktrace. Hope that provides some detail.
http://www.nabble.com/file/p21744652/xmlbeans.txt xmlbeans.txt Thanks Radu Preotiuc-Pietro-2 wrote: > > Hm, this works for me, can you give more details of why do you say it is > not working and maybe a Schema snippet, maybe there is an error > somewhere else; the code is good. > > Radu > > On Wed, 2009-01-28 at 19:07 -0500, pattabi wrote: >> String product = >> "<Products><ProductCd>LOCNW110</ProductCd><ProductCd>LOCNF160</ProductCd><ProductCd>LOCNG100</ProductCd><ProductCd>LOCNA500</ProductCd></Products>"; >> try { >> ProductsDocument doc = >> ProductsDocument.Factory.parse(product,new >> XmlOptions(). >> >> setLoadSubstituteNamespaces(Collections.singletonMap( >> "", >> "http://reportordr"))); >> } catch (XmlException e1) { >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/setLoadSubstituteNamespaces-not-working-for-me-tp21718188p21744652.html Sent from the Xml Beans - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

