My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

Summary

  • a tools(like dom4j)which parase the xml file with the schema. And give a detail error message is parse failure.
  • a new data structure(domTree) which contain all of the xml elements/attribute and its rule come from the schema

TODO List

2008.9.10:

  • Add lazy loading function
  • Remove some parameters and method
2008.9.1
  • Add a new method to enable in FF3.0 browser - getElementsByTagName should refact this method!!
    • modify the "getRuleBySimpleType" method in x-rule.js
    • modify the "MultiNSSchemaParse" class's findRootElement/findElementByName/findSimpleType/findElementChildrenContentRule/findElementChildrenStructRule
    • modify the DefaultDomTree class's init/isElementExist method
    • add new method "getElementsByTagName" in x-common.js
  • Modify the List class in x-common.js - (add new method:removeAll)
  • change the "RULE_VALIDATE_NOT_PATTERN_1" and "RULE_VALIDATE_NOT_PATTERN_2" values in x-variable.js - (128 to 256)
  • change the "PrintableStringRule" method in x-rule.js - (128 to 256)
  • change the "formatData" method in x-common.js - (: character to ;)
  • change the "getRuleByType" in x-rule.js -(support the "nonNegativeInteger" rule)Investigate: SHOULD GIVE THE REASON WHY?!
  • add new field prototype in DomTreeElement class
  • modify the "DefaultDomTree" class (Why?)in the "init" method. omit the below code.
  •   //add special attributes which be defined in the xml file
      //like xmlns:/xsi etc.
      /*
       var alength = dt_r.attributes.length;
       var xattrs = root.attributes;
       for(var i=0;i<xattrs.length;i++){
        if((/xmlns/.test(xattrs[i].name)) || (/xsi/.test(xattrs[i].name))){
        var attr = new DomTreeAttribute(alength + i + 1 , xattrs[i].name , xattrs[i].value);
        attr.display = false;		
        dt_r.addAttribute(attr);
        attr.setElement(dt_r);
       }
      */
    • add new fields in DefaultDomTree class - root and this(Why?)
    • modify the toXml method implementation!
    • modify addChildrens method: set the prototype value
    • modify addChildrens method: remove the formatData method
    • add a new metho this.findAllAttributes()!!
    • modify the findAllAttributes implementation!!
    • add a new method getNameSpacePrefix.
  • modify the xmleditor.js file
    • add new field "expandAll"
    • add new method: displayActivityTable
    • modify the openElement method- add "element.setAttributes(domTree.findAllAttributes(element));"
    • modify the showHelpIcon method - estimate the attribute is null or empty
    • modify the changeAttrStatus method - estimate the attribute is null or not
    • modify the isElementItemExisted method (why?)
    • modify the printElement method(why?)
    • modify the printElementChildrens method(why?)
    • modify the appendLeafElementTd2 method.(format data value)
    • modify the appendAttributeTd2 method.(format data value)
    • modify the appendElementValueTd2 method.(format the data value)
    • modify the getInputOfAttribute method. (change the patten)
    • modify the executeSuccess method.(format the data value)
  • modify the xmleditor-function.js file
    • omit the toggleHelpState method (why?)
  • modify the validate.js file
    • fix the isNonNegativeInteger method's bug
    • add a new method-isHex()

2006.09.06

  • implement the "save" function
  • enhange SingleNSSchemaParse class
  • modify getElementChildrens method : add logic to parse the
    <choice>
    node
  • modify findElementStructRule method: above
  • add a new rule ChoiceOccursRule class
  • modify findElementChildrenStructRule method of SingleNSSchemaParse class
  • add toXml method in the domtree.js
  • modify prototype: if the element has no childrens,do not display the action options
  • add LinkListDomTreeContext class
  • add a property "imagePrefix" in the XXXSchema2Html

Reference

Schema

Regex

Powered by Google Project Hosting