As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
… String myQNameString = "{http://www.alfresco.org/model/content/1.0}content"; // in format "{namespaceURI}localName" QName myQNameResolved = QName.createQName(myQNameString).getPrefixedQName(namespaceService); String prefixLocal[] = QName.splitPrefixedQName(myQNameResolved.toPrefixString()); System.out.println("Prefix: "+prefixLocal[0]); …
NamespacePrefixResolver namespaceService = new DynamicNamespacePrefixResolver();
org.alfresco.service.namespace.InvalidQNameException: QName '{http://www.alfresco.org/model/content/1.0}' must consist of a local name at org.alfresco.service.namespace.QName.createQName(QName.java:175)
serviceRegistry.getNamespaceService();