Emit an opening tag ready for nested values. No new line

@param tag
@param attrName
@param attrVal
@throws IOException
330177
public void openTagSameLine(final QName tag,
                              final String attrName,
                              final String attrVal) throws IOException {
    lb();
    emitQName(tag);
    attribute(attrName, attrVal);
    endOpeningTag();
  }
88763
public void writeTag(Tag<?> tag) throws IOException {
        String name = tag.getName();
        byte[] nameBytes = name.getBytes(NBTConstants.CHARSET.name());

        os.writeByte(tag.getType().getId());
        os.writeShort(nameBytes.length);
        os.write(nameBytes);

        if (tag.getType() == TagType.TAG_END) {
            throw new IOException("Named TAG_End not permitted.");
        }

        writeTagPayload(tag);
    }
418815
function _tag_open( &$parser, $tag, $attributes ) {
		$this->currentElement = strtoupper( $tag );

		switch( $this->currentElement ) {
			case 'QUERY':
				// Create a new query in a SQL queryset.
				// Ignore this query set if a platform is specified and it's different than the
				// current connection platform.
				if( !isset( $attributes['PLATFORM'] ) OR $this->supportedPlatform( $attributes['PLATFORM'] ) ) {
					$this->newQuery();
				} else {
					$this->discardQuery();
				}
				break;
			default:
				// print_r( array( $tag, $attributes ) );
		}
	}
104188
public void attribute(final QName attr, final String attrVal) throws IOException {
    out(" ");

    emitQName(attr);

    out("=");
    quote(attrVal);

    emitNs();
  }
486145
function writeTag(name, attrs, close, content) {
  var end = close ? '/>' : '>'
    , pairs = []
    , tag;

  for (var key in attrs) {
    pairs.push(key + '="' + escape(attrs[key]) + '"');
  }
  tag = '<' + name + (pairs.length ? ' ' + pairs.join(' ') : '') + end;

  if (content){
    tag += content + '</' + name + end;
  }
  return tag;
}
1151613
def emit_element( output_node, element_name, attr_hash=nil )
      if (attr_hash != nil) then
        attr_hash.each do |key, value|
          if (value == nil) then
            attr_hash.delete( key )
          end
        end
        if attr_hash.empty? then
          attr_hash = nil
        end
      end
      output_node.add_element( element_name, attr_hash )
    end
663799
private void writeTag(String tag, String value) throws IOException {
    printIndents();
    if(value.length() > 0) {
      write("<" + tag + ">" + value + "</" + tag + ">\n");
    } else {
      write("<" + tag + "/>\n");
    }
  }
848150
public static String enclose(Tag tag, String text, AttributeValue... attrs) {

        return open(tag, attrs) + text + close(tag);
    }
528817
public void addAttribute(TreeHtmlAttributeInfo attr)
    {
        if (_attribute == null) {
            _attribute = new ArrayList();
        }
        attr.setParent(this);
        _attribute.add(attr);
    }
819753
def add_tag(name, start, stop)
      @attr_tags << InlineTag.new(SM::Attribute.bitmap_for(name), start, stop)
    end
1304864
private void parseAttribute(final Attributes atts) {
        final URI attrValue = toURI(atts.getValue(ATTRIBUTE_NAME_HREF));
        if (attrValue == null) {
            return;
        }

        final String attrScope = atts.getValue(ATTRIBUTE_NAME_SCOPE);
        if (isExternal(attrValue, attrScope)) {
            return;
        }

        String attrFormat = atts.getValue(ATTRIBUTE_NAME_FORMAT);
        if (attrFormat == null || ATTR_FORMAT_VALUE_DITA.equals(attrFormat)) {
            final File target = toFile(attrValue);
            topicHref = target.isAbsolute() ? attrValue : currentDir.resolve(attrValue);

            if (attrValue.getFragment() != null) {
                topicId = attrValue.getFragment();
            } else {
                if (attrFormat == null || attrFormat.equals(ATTR_FORMAT_VALUE_DITA) || attrFormat.equals(ATTR_FORMAT_VALUE_DITAMAP)) {
                    topicId = topicHref + QUESTION;
                }
            }
        } else {
            topicHref = null;
            topicId = null;
        }
    }
1141582
function createOpenTag (tagName, attrs) {
  var attrString = Object.keys(attrs).map(function (key) {
    return ' ' + key + '="' + attrs[key] + '"';
  }).join('');

  return '<' + tagName + attrString + '>';
}
1161769
public void setAttribute(String attrname, String value) {
        if (attributes == null)
            attributes = new ArrayList<Attribute>();
        Attribute.setAttribute(attributes, attrname, value);
    }
547729
protected void __invokeTag(int line, String name) {
        __engine.invokeTemplate(line, name, this, null, null, null);
    }
195232
public void startElement(String elemName, String attrName, String attrValue) {
        AttributesImpl attrs = new AttributesImpl();
        attrs.addAttribute("", attrName, "", "CDATA", attrValue);
        writeStartElement(elemName, attrs);
        m_tagStack.push(elemName);
    }
1066892
public function attribute( string $attr, string $value ): Tag
    {
        $this->attributes[$attr] = $value;

        return $this;
    }
1051423
def set_attr(self, name, value):
    
    self.exec_script("node.setAttribute(%s, %s)" % (repr(name), repr(value)))