Hi,
The Javadoc and found in many user grps that setLoadSubstituteNamespaces
would work for parsing xml without namespace. The code below is not working
for me. Could anyone help?
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) {
--
View this message in context:
http://www.nabble.com/setLoadSubstituteNamespaces-not-working-for-me-tp21718188p21718188.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]