Click or drag to resize

XDocumentWrapper Class

This class is an abstract base class for the wrapping of an XDocument, to provide additional schema specific document processing utilities. This class is used by the AMLEngine to provide a CAEXDocument. Other XML Engines, supporting different schemas (PLCopen, COLLADA) could also use this base class.
Inheritance Hierarchy
SystemObject
  Aml.Engine.XMLXDocumentWrapper
    Aml.Engine.CAEXCAEXDocument

Namespace: Aml.Engine.XML
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public class XDocumentWrapper : IDocument, 
	IDisposable

The XDocumentWrapper type exposes the following members.

Properties
 NameDescription
Public propertyXDocument Gets the underlying XDocument
Top
Methods
 NameDescription
Public methodDispose Dispose
Public methodStatic memberDocument(IXMLWrapper) Gets the XDocument wrapper which contains the specified object. If the object has not been inserted into a document, no document is returned.
Public methodStatic memberDocument(XNode) Gets the XDocument wrapper which contains the specified XML node. If the node is not contained in an XML document, no document is returned.
Public methodSaveToFile Saves the document to the specified file path.
Public methodSaveToStream Saves the document to the specified file path.
Public methodUnload Unloads this document instance.
Public methodXName Gets the correct XName for the provided element name (Tag name).The XName contains a namespace, if the assigned schema requires a namespace. If no namespace is defined for the assigned schema, no namespace is added to the XName. The XName has to be used for all Xml.Linq queries, used to access objects with the element name.
Top
See Also