Page 1 of 1

GetXMLNodeCDATA()

Posted: Mon Aug 13, 2007 9:52 pm
by Flype

Code: Select all

Procedure.s GetXMLNodeCDATA(*node)
  
  If *node
    *node = ChildXMLNode(*node)
    If *node And XMLNodeType(*node) = #PB_XML_CData
      ProcedureReturn GetXMLNodeText(*node)
    EndIf
  EndIf
  
EndProcedure
while doing some tests with the xml lib, i needed to read some CDATA values.

and it's easier with such a function which i will need to use very often.