SAX ADD PROCESSING INSTRUCTION

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004


SAX ADD PROCESSING INSTRUCTION (document; statement)

ParameterTypeDescription
documentDocRefReference of open document
statementTextText or BLOB to insert in the document

Description

In the XML document referenced by document, the SAX ADD PROCESSING INSTRUCTION command adds an XML processing statement.

A processing statement lets you indicate the application type and when necessary any additional parameters allowing you to process an unparsable external entity.

The command formats the data of the statement in conformity with XML. However, the statements themselves are not parsed and it is up to the developer to make sure that they are valid.

Example

The following code:

   vtInstruct:="xml-stylesheet type="+Char(Quotes)+"text/xsl"+Char (Quotes)+ 
                        "href="+Char (Quotes)+"style.xsl"+Char (Quotes)
   SAX ADD PROCESSING INSTRUCTION ($DocRef;vtInstruct)

... will write the following line in the document:

<?xml-stylesheet type="text/xsl" href="style.xsl"?>

See Also

SAX GET XML PROCESSING INSTRUCTION.

System Variables or Sets

If the command has been executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0 and an error is generated.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next