%XML_AddProcInstruction function


Function
The function adds XML element of process instruction type.
Declaration
INT %XML_AddProcInstruction(
   INT in node,
   TEXT in instrName,
   TEXT in instrValue
 )

Parameters
node Handle to parent XML node.
instrName Name of process instruction.
instrValue Value 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"?> 

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .