I ran into problem with XPP and namespaces. I was able to trace the problem and possible fix in XPP code (latest source I downloaded from xpp site). Details are below, but my question to Dennis is here: What version of XPP is included in jibx and where I can get source code for that?
Thanks, Yogesh Details of problem: We have document where root element declares the namespace and also has the prefix of the namespace. Other elements(child elements) in the xml don't have prefix. According to the XSD specification child element in this case inherit the namespace from the parent. http://www.w3.org/TR/xmlschema-0/#UnqualLocals But I was getting error from Jibx. verifyNamespace in the MarshallingContext was failing because MFParser was returning the NO_NAMESPACE for child element. Here is the code fragment in the MXParser.parseStartTag if(prefix == null) { // no prefix and no uri => use default namespace uri = NO_NAMESPACE; } Here is the possible fix : if(prefix == null) { // no prefix and no uri => use default namespace if (depth > 1 && elUri[ depth - 1] != null && !elUri[ depth - 1].equals(NO_NAMESPACE) ) { uri = elUri[ depth - 1]; } else { uri = NO_NAMESPACE; } ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users
