This is partially based on the code used by npm internally to resolve the global prefix.Usagevar prefix = require('global-prefix'); //=> '/usr/local' (this path will differ by system and user-defined config)Abou
concept ACK this PR. concept NACK increasing the length oftxid's name. I agree it's potentially surprising that this is more than a lookup -- but on the other hand, this is true for a lot of other language bindings (e.g. the Python code in Bitcoin Core's test suite) and notthats...
* @return The namesapce prefix, or <code>null</code> if not found. */ public static String getTargetPrefix(XSDSchema schema) { String ns = schema.getTargetNamespace(); Map pre2ns = schema.getQNamePrefixToNamespaceMap(); for (Iterator itr = pre2ns.entrySet().iterator(); itr.hasNex...