public virtual string ToXmlShort(int offset) { StringBuilder buffer = new StringBuilder(); AceElement.AppendOffset(buffer, offset); buffer.Append("<" + mentionType + "_argument REFID=\"" + mContent.GetParent().GetId() + "\" ROLE=\"" + mRole + "\"/>"); return(buffer.ToString()); }
public virtual string ToXml(int offset) { StringBuilder buffer = new StringBuilder(); AceElement.AppendOffset(buffer, offset + 2); buffer.Append("<charseq START=\"").Append(mByteOffset.Start()).Append("\" END=\"").Append(mByteOffset.End()).Append("\">"); buffer.Append(mText).Append("</charseq>"); return(buffer.ToString()); }
public virtual string ToXml(int offset) { StringBuilder buffer = new StringBuilder(); AceElement.AppendOffset(buffer, offset); buffer.Append("<" + mentionType + "_mention_argument REFID=\"" + mContent.GetId() + "\" ROLE=\"" + mRole + "\">\n"); //buffer.append(getContent().toXml(offset + 2)); AceCharSeq ext = GetContent().GetExtent(); buffer.Append(ext.ToXml("extent", offset + 2)); buffer.Append("\n"); AceElement.AppendOffset(buffer, offset); buffer.Append("</" + mentionType + "_mention_argument>"); return(buffer.ToString()); }