| 4D v15.4SAX GET XML ELEMENT VALUE | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v15.4
 SAX GET XML ELEMENT VALUE 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SAX GET XML ELEMENT VALUE ( document ; value ) | ||||||||
| Parameter | Type | Description | ||||||
| document | DocRef |   | Reference of open document | |||||
| value | Text, BLOB |   | Element value | |||||
The SAX GET XML ELEMENT VALUE command allows you to get the value of an XML element that exists in the XML document referenced in the document parameter. This command must be called with the XML DATA SAX event. For more information about SAX events, refer to the description of the SAX Get XML node command.
Pass a Text or BLOB type variable in the value parameter. If you pass a BLOB, the command will automatically attempt to decode it into base64.
Let's look at the following piece of XML code:
<RootElement> <Child Att1="111" Att2="222" Att3="333">MyText</Child> </RootElement>
The following instruction will return “MyText” in vValue:
 SAX GET XML ELEMENT VALUE(DocRef;vValue)If the command was 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:  
        877
        
        
        
	
	Created:  4D 2004
	Modified:  4D v12
	
	
	
	4D Language Reference ( 4D v15.4)
	
	
	4D Language Reference ( 4D v15)
	
	
	
	
	
	
	4D Language Reference ( 4D v15.3)
 Add a comment
Add a comment