The following XML will be used to demonstrate the function's behavior:
<root>
<child>
Text1
<elem1>String</elem1>
<elem2>String</elem2>
Text2
</child>
</root>
To fetch the first text node “Text1” use: DbXmlMixedGet (‘1’DSOURCE, ‘/root/child’, ‘’)
There is no text node between “elem1” and elem2”, therefore:
DbXmlMixedGet ('1'DSOURCE, '/root/child', 'elem1') returns ''
DbXmlMixedGet ('1'DSOURCE, '/root/child', 'elem2') returns 'Text2'
DbXmlMixedGet ('1'DSOURCE, '/root/child', 'elem3') returns NULL
DbXmlMixedGet ('1'DSOURCE, '/root/child_not_exist', '') returns NULL
|