NODE-VALUE-TO-MEMPTR( ) method
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Copies the contents of an XML X-noderef node to a MEMPTR. This makes it easier to manipulate when its length exceeds the ABL limit for text strings, which is approximately 32K.
Return type: LOGICAL
Applies to: X-noderef object handle
Syntax
|
- memptr
- An expression of type MEMPTR.
NODE-VALUE-TO-MEMPTR( ) frees the memory currently allocated by memptr (if any), allocates sufficient memory to the MEMPTR to accommodate the node, and copies the node to the MEMPTR.
If X-NODEREF:NODE-VALUE is "" (the empty string), the resulting memptr has a size of zero.
The following fragment uses NODE-VALUE-TO-MEMPTR( ) to access a large text node in chunks:
|
For more information on accessing XML documents using the Document Object Model (DOM) interface, see Use XML with ABL Applications.