Show / Hide Table of Contents

Interface IXmlDocument

An interface for XML document access.

Inherited Members
IXmlElement.Name
IXmlElement.Root
IXmlElement.AbsolutePath
IXmlElement.ElementList
IXmlElement.Comment
IXmlElement.Attributes
IXmlElement.GetElement(string)
IXmlElement.GetElements(string)
IXmlElement.AddElement(string)
IXmlElement.FindElement(string)
IXmlElement.GetSafeElement(string)
IXmlElement.EnsureElement(string)
IXmlElement.GetAttribute(string)
IXmlElement.SetAttribute(string, IXmlValue)
IXmlElement.AddAttribute(string)
IXmlElement.GetSafeAttribute(string)
IXmlElement.WriteXml(TextWriter, bool)
IXmlValue.GetBoolean()
IXmlValue.SetBoolean(bool)
IXmlValue.GetInt()
IXmlValue.SetInt(int)
IXmlValue.GetLong()
IXmlValue.SetLong(long)
IXmlValue.GetDouble()
IXmlValue.SetDouble(double)
IXmlValue.GetDecimal()
IXmlValue.SetDecimal(decimal)
IXmlValue.GetString()
IXmlValue.SetString(string)
IXmlValue.GetBinary()
IXmlValue.SetBinary(Binary)
IXmlValue.GetDateTime()
IXmlValue.SetDateTime(DateTime)
IXmlValue.GetBoolean(bool)
IXmlValue.GetInt(int)
IXmlValue.GetLong(long)
IXmlValue.GetDouble(double)
IXmlValue.GetDecimal(decimal)
IXmlValue.GetString(string)
IXmlValue.GetBinary(Binary)
IXmlValue.GetDateTime(DateTime)
IXmlValue.Value
IXmlValue.Parent
IXmlValue.IsEmpty
IXmlValue.IsAttribute
IXmlValue.IsContent
IXmlValue.IsMutable
IXmlValue.WriteValue(TextWriter, bool)
IXmlValue.ToString()
IXmlValue.GetHashCode()
IXmlValue.Equals(object)
ICloneable.Clone()
Namespace: Tangosol.Run.Xml
Assembly: Coherence.dll
Syntax
public interface IXmlDocument : IXmlElement, IXmlValue, ICloneable
Remarks

The IXmlDocumnet interface represents the document as both the root element (through the underlying IXmlElement interface) and the properties specific to a document, such as DOCTYPE.

Properties

DocumentComment

Get or set the XML comment that appears outside of the root element.

Declaration
string DocumentComment { get; set; }
Property Value
Type Description
string

The document comment.

Remarks

This differs from the Comment property of this object, which refers to the comment within the root element.

DtdName

Get or set the public identifier of the DTD (DOCTYPE) for the document.

Declaration
string DtdName { get; set; }
Property Value
Type Description
string

The DTD public identifier.

Examples

-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN

DtdUri

Get or set the URI of the DTD (DOCTYPE) for the document.

Declaration
string DtdUri { get; set; }
Property Value
Type Description
string

The document type URI.

Remarks

This is referred to as the System Identifier by the XML specification.

Examples

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd

Encoding

Get or set the encoding string for the XML document.

Declaration
string Encoding { get; set; }
Property Value
Type Description
string

The encoding set for the document.

Remarks

Documents that are parsed may or may not have the encoding string from the persistent form of the document.

Extension Methods

IXmlDocumentExtension.IterateThroughAllNodes(IXmlDocument, Action<IXmlElement>)
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.