Property | Type | Description |
---|
Method | Description | |
---|---|---|
CreateDocument ( string path, string fileName, string xml, string xsd, string ns ) : bool |
Create a XML document
|
|
GetElement ( string path, string element, System.Xml.Linq.XNamespace ns ) : string |
Gets the value of the specified XML element from the specified XML file.
|
|
UpdateElement ( string path, string element, string value, System.Xml.Linq.XNamespace ns ) : bool |
Updates the specified XML element with a value for the specified XML file.
|
|
ValidateDocument ( string xml, string xsd, string ns ) : bool |
Validates if the specified XML document conforms to the specified XSD schema containing the specified namespace.
|
|
XmlUtils ( ) : System |
Creates a new instance of the
|
|
XmlUtils ( IIoDirectoryUtils ioDirectoryUtils ) : System |
Creates a new instance of the
|
|
XmlUtils ( IIoDirectoryUtils ioDirectoryUtils, IIoFileUtils ioFileUtils ) : System |
Creates a new instance of the
|
|
XmlUtils ( IIoFileUtils ioFileUtils ) : System |
Creates a new instance of the
|
public CreateDocument ( string path, string fileName, string xml, string xsd, string ns ) : bool | ||
path | string | The path to the file. |
fileName | string | The file name. |
xml | string | The XML document as a string to validate. |
xsd | string | The XSD schema as a string used for validation. |
ns | string | The target namespace. |
return | bool |
public GetElement ( string path, string element, System.Xml.Linq.XNamespace ns ) : string | ||
path | string | The path to the file. |
element | string | The name of the XML element. |
ns | System.Xml.Linq.XNamespace | An optional namespace for the XML element. (Set null to ignore) |
return | string |
public UpdateElement ( string path, string element, string value, System.Xml.Linq.XNamespace ns ) : bool | ||
path | string | The path to the file. |
element | string | The name of the XML element. |
value | string | The value to update for the XML element. |
ns | System.Xml.Linq.XNamespace | An optional namespace for the XML element. (Set null to ignore) |
return | bool |
public ValidateDocument ( string xml, string xsd, string ns ) : bool | ||
xml | string | The XML document as a string to validate. |
xsd | string | The XSD schema as a string used for validation. |
ns | string | The target namespace. |
return | bool |
public XmlUtils ( IIoDirectoryUtils ioDirectoryUtils ) : System | ||
ioDirectoryUtils | IIoDirectoryUtils | A reference to the |
return | System |
public XmlUtils ( IIoDirectoryUtils ioDirectoryUtils, IIoFileUtils ioFileUtils ) : System | ||
ioDirectoryUtils | IIoDirectoryUtils | A reference to the |
ioFileUtils | IIoFileUtils | A reference to the |
return | System |
public XmlUtils ( IIoFileUtils ioFileUtils ) : System | ||
ioFileUtils | IIoFileUtils | A reference to the |
return | System |