4D v16.3

SAX ADD PROCESSING INSTRUCTION

Home

 
4D v16.3
SAX ADD PROCESSING INSTRUCTION

SAX ADD PROCESSING INSTRUCTION 


 

SAX ADD PROCESSING INSTRUCTION ( document ; statement ) 
Parameter Type   Description
document  DocRef in Reference of open document
statement  Text in Statement to insert in the document

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(Quote)+"text/xsl"+Char(Quote)+
 "href="+Char(Quote)+"style.xsl"+Char(Quote)
 SAX ADD PROCESSING INSTRUCTION($DocRef;vtInstruct)

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

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

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.



See also 

SAX GET XML PROCESSING INSTRUCTION

 
PROPERTIES 

Product: 4D
Theme: XML SAX
Number: 857

The OK variable is changed by the commandThis command can be run in preemptive processes

 
HISTORY 

Created: 4D 2004

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)