Oops Sarah, I use an undocumented feature of the revXMLText (not revXMLTree!) with a third parameter with value TRUE in order to get the formatted xml:
put revXMLText(treeID[[,startNode],formatted]) into tFormattedXML I have probably found the undocumented features by analysing the script of the xmltree- view.rev stack in the sample stacks Folder. Below is a summary of all the API I have extracted from stack "xmltree-view.rev". If any one found parameters to fixed, please let me know (or better let rr know). Joel - revDeleteAllXMLTrees command : Removes all XML tree structures in memory. - revDeleteXMLTree treeID command : Removes an XML tree structure from memory. - revXMLAddDTD treeID,DTDText command : Adds an internal DTD to an existing XML tree. - revXMLRemoveAttribute treeID,node,attributeName command : remove the specified attributes. - revSetXMLAttribute treeID,node,attributeName,newValue command : Creates an attribute of a node, or sets the value of an existing attribute. - revPutIntoXMLNode treeID,node,newContents command : Sets the contents of a node in an XML tree. - revDeleteXMLNode treeID,nodeToDelete command : Removes a node from an XML tree. - revAppendXML treeID,parentNode,newXML command : Adds XML text to an XML tree. - revAddXMLNode treeID,parentPath,nodeName,nodeContents command : Adds a child node to the specified node in an XML tree. - revCreateXMLTree(XMLText,parseBadData,createTree,sendMessages) function : Creates an XML tree structure from XML text data. - revCreateXMLTreeFromFile(filePath,parseBadData,createTree,sendMessages) function : Reads an XML file, optionally creating an XML tree. - revXMLAttribute(treeID,node,attributeName) function : Returns the value of the specified attribute of the specified node of an XML tree. - revXMLAttributes(treeID,node,valueDelim,attributeDelim) function : Returns a list of all attributes and their values for the specified node. - revXMLAttributeValues(treeID,startNode,childName,attributeName,delimiter,depth) function : Returns a list of the values of a specified attribute for the specified nodes in an XML tree. - revXMLChildContents(treeID,startNode,tagDelim,nodeDelim,includeChildCount,depth) function : Returns a list of the tags and text contents of the specified nodes. - revXMLChildNames(treeID,startNode,nameDelim,childName,includeChildCount) function : Returns a list of the child nodes under the specified node in an XML tree. - revXMLMatchingNode(treeID,startNode,childName,attributeName,attributeValue,depth) function : Finds the node in an XML tree where the specified attribute of the node has the specified value. - revXMLNodeContents(treeID,node) function : Returns the text contained in the specified node in an XML tree. - revXMLNumberOfChildren(treeID,startNode,childName,depth) function : Returns the number of child nodes under the specified node in an XML tree. - revXMLParent(treeID,childNode) function : Returns the path to the parent node of a node in an XML tree. - revXMLFirstChild(treeID,parentNode) function : Returns the path to a node�s first child node. - revXMLPreviousSibling(treeID,siblingNode) function : Returns the path to a child node�s previous sibling node. - revXMLNextSibling(treeID,siblingNode) function : Returns the path to a child node�s next sibling node. - revXMLRootNode(treeID) function : Returns the path to the starting node of an XML tree. - revXMLText(treeID[[,startNode],formatted]) function : Returns the contents of an XML tree as XML text. - revXMLTree(treeID,startNode,nodeDelim,padding,includeChildCount,depth) function : Returns a list of the nodes in an XML tree, in a form that shows their parent/child relationships. - revXMLTrees() function : Returns a list of all XML trees in memory. - revXMLValidateDTD(treeID,DTDText) function : Checks whether the syntax of an XML tree conforms to a DTD. - revStartXMLData elementData message : Sent to the current card when the revCreateXMLTree or revCreateXMLTreeFromFile function encounters data between tags while parsing an XML document. - revEndXMLNode message : Sent to the current card when the revCreateXMLTreeFromFile function encounters a closing tag while parsing an XML file. - revEndXMLTree message : Sent to the current card when the revCreateXMLTreeFromFile function finishes parsing an XML document. - revStartXMLTree message : Sent to the current card when the revCreateXMLTreeFromFile function starts parsing an XML document. - revStartXMLNode nodeAttributes message : Sent to the current card when the revCreateXMLTreeFromFile function encounters an opening tag while parsing an XML file. _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
