code: @Override
      public String getBaseURI() {
          String baseURI = null;
  
          NodeInfo node = this;
  
          while (node != null) {
              baseURI = node.getAttributeValue(StandardNames.XML_BASE);
  
              if (baseURI == null) {
                  // Search for baseURI in parent treeData (xml:base="").
                  node = node.getParent();
              } else {
                  break;
              }
          }
  
          if (baseURI == null) {
              baseURI = mDocWrapper.getBaseURI();
          }
  
          return baseURI;
      }
docs: {@inheritDoc}