You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well Added the following code to Translator.java :
else if(lDecl.getTypeDefinition().derivedFrom("http://www.w3.org/2001/XMLSchema", "boolean", (short)-1))
{
boolean valueToUse =false;
if(lValue.equalsIgnoreCase("true") )
valueToUse=true;
lret = JsonBool.create(valueToUse);
}
and fixed the issue . code can be cleaned up.
XML to Jason conversion using XSD does not take care of Boolean value . I have the attached xml and xsd and the output json file
sample.zip
The text was updated successfully, but these errors were encountered: