0 Replies Latest reply on Sep 1, 2008 6:11 AM by sotospeak (carlo bazzo)

    XML elements and XML class

    sotospeak (carlo bazzo)
      I elaborate one xml file and change some contents parsing another xml file. I found the XML class extremely powerful and well engineered.
      This is my start.

      myxmlfile = File.openDialog("Choose your xml file");
      var myResult = myxmlfile.open("r", undefined, undefined);
      myroot=new XML(test);

      Everything works fine but I am wondering, what if instead of opening this file from disk I liked to use the collection of xmlelements of an existing open document?

      Trying to explain better: I would like to open an already tagged document and declare a new instance of the XML class based on the current xml tree, something like:

      myroot=new XML(my_actual_document_xml_tree)

      Would it be possibile? Thank you