4D v14.3SAX GET XML ENTITY |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SAX GET XML ENTITY
|
SAX GET XML ENTITY ( document ; name ; value ) | ||||||||
Parameter | Type | Description | ||||||
document | DocRef |
![]() |
Reference of open document | |||||
name | String |
![]() |
Entity name | |||||
value | String |
![]() |
Entity value | |||||
The SAX GET XML ENTITY command allows you to get the name and value of an XML entity that exists in the XML document referenced in the document parameter. This command must be called with the XML Entity SAX event. For more information about SAX events, refer to the description of the SAX Get XML node command.
Let's look at the following piece of XML code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE body [ <!ELEMENT body (element*)> <!ELEMENT element (#PCDATA)> <!ENTITY name "Replacement"> ]> <body> <element>Entity updated by &name;</element> </body>
The following instruction will return “name” in vName and “Replacement” in vValue.
SAX GET XML ENTITY(DocRef;vName;vValue)
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.
Product: 4D
Theme: XML SAX
Number:
879
Created: 4D 2004
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)
Inherited from : SAX GET XML ENTITY ( 4D v11 SQL Release 6)