grmfetch
The system can only retrieve values in terminal data nodes:
Input: grmfetch $grmIdXml root.child.&attr1
Output: datum0
Input: datget datum0 TYPE
Output: ch
Input: datget datum0 VALUE
Output: definedAttrValue
Data is returned as an XML Datum object when grm is created for an XML document and data is retrieved from an
address ending in ##any
or ##anyAttribute
. This object is the textual representation of the
matching wildcard nodes and their children.
For example:
Input: grmfetch $grmIdXml root.child.0(0).##any
Output: datum1
Input: datget datum1 TYPE
Output: xml
Input: datget datum1 VALUE
Output: <xml attr1=’value’>textvalue</xml>
If the selected path is explicitly to ##anyAttribute
, multiple values are returned if multiple values match
the wildcard.
For example:
Input: grmfetch $grmIdXml root.##anyAttribute
Output: datum0 datum1
Input: datget datum0 TYPE
Output: xml
Input: datget datum0 VALUE
Output: attr1="attrvalue1"
Input: datget datum1 TYPE
Output: xml
Input: datget datum1 VALUE
Output: attr2="attrvalue2"