/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.xcodeml.xnode;

import org.w3c.dom.Document;

/**
 * The XcodeML class represents the basic XcodeML file unit. Both XcodeProgram
 * and Xmod inherit from this class.
 *
 * @author clementval
 */
public class XcodeML extends Xnode {

  /**
   * Constructs a basic XcodeML object representing the XcodeML file given in
   * input.
   * @param baseElement Document representing the XcodeML file.
   */
  public XcodeML(Document baseElement){
    super(baseElement.getDocumentElement());
  }
}

@@ -340,16 +340,56 @@
 node %7B%0A%0A
+  private Document _xcodemlDoc = null;%0A%0A
   /**%0A  
@@ -631,14 +631,180 @@
 ent());%0A
+    _xcodemlDoc = baseElement;%0A  %7D%0A%0A  /**%0A   * @return The XML Document representing the XcodeML file.%0A   */%0A  public Document getDocument()%7B%0A    return _xcodemlDoc;%0A
   %7D%0A%7D%0A

Add document var