Validates that an XML file in session is well-formed, schema compliant or DTD compliant.
|
AWE's XML actions require a basic understanding of XML and related terms, such as XPath, DTD and XSLT. |
Declaration
<AMXMLVALIDATION VALIDATIONTYPE="text [options]"><Schema FileName="text" /></AMXMLVALIDATION>
Example
Validate that XML file adheres to the specified schema. Sessionname is "Two".
<AMXMLVALIDATION VALIDATIONTYPE="SCHEMA" SESSION="Two"><Schema FileName="C:\Tutorials\XML Data\Schema Files\booksSchema.xsd" /></AMXMLVALIDATION>
See Also: Create XML Node, Delete XML Node, End XML Session, Evaluate Xpath Expression, Extract XML Fragment, Merge XML Files, Output XML, Read XML Node, Sign XML Document, Validate XML File, Verify XML Document, XML Node to Dataset
Property |
Type |
Required |
Default |
Markup |
Description |
Validation Type |
Text (options) |
Yes |
Key Container |
VALIDATIONTYPE="Schema" |
The type of validation in which the in-memory xml document should pass through. The available options are:
|
Schema Files |
Text |
Yes |
(Empty) |
<Schema FileName= "C:\Schema\database.xsd" |
Specifies the schema files to validate in-memory XML document against. This parameter is available only if the Validation Type parameter is set to Schema. Click Add to add a new schema file to the list which the in memory xml file will be validated against. Click Remove to remove a schema file from the list. |
Session Name |
Text |
No |
(Empty) |
SESSIONNAME="FirstXMLSession" |
The session name created by a previous Start XML Session step that this action should identify with. This allows several in-memory XML documents to be active simultaneously within the same task. |
This action includes the Description tab for entering a custom step description.
More on setting custom step description
This action also includes the standard Error Causes and On Error failure handling options/tabs.
More on Error Handling Options
An XML document has two levels of accuracy:
Well-formed. A well-formed document conforms to all of XML's syntax rules. For example, if an element has an opening tag with no closing tag and is not self-closing, it is not well-formed. A document that is not well-formed is not considered to be XML and a conforming parser is not allowed to process it.
Valid. A valid document additionally conforms to some semantic rules. These rules are either user-defined, or included as an XML schema or DTD. For example, if a document contains an undefined tag, then it is not valid; a validating parser is not allowed to process it
All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, % Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.