On Wed, Jul 14, 2010 at 7:19 AM, viktoras d. <[email protected]> wrote:
> err., what's the simplest way of displaying all contents of an XML document
> in a rev field? e.g. getting a list of all elements with all their
> attributes and values. Is there a simple way to do this - a one liner
> probably ;-) ?

Not a one-liner, but try this:

   put URL ("file:" & tFileName) into tData
   put revCreateXMLTree(tData, false, true, false) into tDocID
   put revXMLRootNode(tDocID) into tParentNode
   put revXMLText(tDocID, tParentNode, true) into tXML

After every call to a revXML function, you can check the result for
"xmlerr" which indicates a problem.

Cheers,
Sarah
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to