Changeset 85


Ignore:
Timestamp:
Sep 2, 2009 5:21:54 PM (10 years ago)
Author:
prjemian
Message:

beautification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 1dwg/trunk/php/xmlWriter/index.php

    r84 r85  
    99########### SVN repository information ################### 
    1010 
     11##### GLOBALS ##################################################################### 
    1112 
    1213$tool['titleStr'] = "canSAS1d/1.0 XML formatter"; 
     
    3536$vars['SASdata'] = 'SAS data (3 columns: Q I Idev)'; 
    3637 
    37  
    3838$process = 0;           // Should processing be run this time? 
    3939$post = array();    // processing parameters to be used 
     40 
     41##### main body of code ##################################################################### 
    4042 
    4143# look for any input parameters 
     
    8890} 
    8991#phpInfo(); 
     92 
     93####### function definitions ################################################################### 
    9094 
    9195 
     
    361365} 
    362366 
     367 
    363368function addAttribute($parent, $name, $value = '') { 
    364369        $attr = $parent->setAttribute($name, $value); 
     
    367372} 
    368373 
     374 
    369375function addText($doc, $parent, $text = '') { 
    370376        $node = $doc->createTextNode($text); 
     
    373379} 
    374380 
     381 
    375382function addComment($doc, $parent, $text = '') { 
    376383        $node = $doc->createComment($text); 
     
    379386} 
    380387 
     388 
    381389function addTextElement($doc, $parent, $tag, $text) { 
    382390        $node = addElement($doc, $parent, $tag); 
     
    384392        return($node); 
    385393} 
     394 
    386395 
    387396function prettyXML($sXML) { 
     
    393402        return($doc->saveXML()); 
    394403} 
     404 
    395405 
    396406// PRJ_mysqlDate 
Note: See TracChangeset for help on using the changeset viewer.