%XML_AddProcInstruction function


Function
The function adds an XML element of the process instruction type.
Declaration
INT %XML_AddProcInstruction(
   INT in node,
   TEXT in instrName,
   TEXT in instrValue
 )
Parameters
nodeHandle to parent XML node.
instrNameName of process instruction.
instrValueValue of process instruction.
Return value
Handle to the added XML element.
Description
The function adds the process instruction into the defined parent XML node. The parent node can be document or element.
Example
 INT _doc
 _doc := %XML_CreateDocument()
 
 INT _pi
 _pi := %XML_AddProcInstruction(_doc, "xml-stylesheet", "type=""text/xsl"" href=""books_style.xsl""")
 
 ;content of XML document:
 ;<?xml version="1.0" encoding="utf-8"?>
 ;<?xml-stylesheet type="text=xsl" href="books_style.xsl"?> 
Napíšte komentár