4D v14.3

SAX ADD PROCESSING INSTRUCTION

Home

 
4D v14.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.

 
PROPERTIES 

Product: 4D
Theme: XML SAX
Number: 857

The OK variable is changed by the command

 
HISTORY 

Created: 4D 2004

 
SEE ALSO 

SAX GET XML PROCESSING INSTRUCTION

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)