AnsweredAssumed Answered

Check QName is valid

Question asked by dranakan on Sep 10, 2010
Latest reply on Sep 13, 2010 by dranakan
Hello,

How can I check if a QName is valid ? (is in the model (my custom model)) in java


String typeOfDocument = "http://abc:typeXXX";

String [] prefixAndLocalName=QName.splitPrefixedQName(typeOfDocument);
if (typeOfDocument == null){
   logger.error("Problem….");
   return false;
}

QName typeQName = QName.createQName(prefixAndLocalName[0],prefixAndLocalName[1]);

/* Verify that the QName exist TODO ?????*/
…      

Thanks

Outcomes