- Timestamp:
- Sep 2, 2009 5:21:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
1dwg/trunk/php/xmlWriter/index.php
r84 r85 9 9 ########### SVN repository information ################### 10 10 11 ##### GLOBALS ##################################################################### 11 12 12 13 $tool['titleStr'] = "canSAS1d/1.0 XML formatter"; … … 35 36 $vars['SASdata'] = 'SAS data (3 columns: Q I Idev)'; 36 37 37 38 38 $process = 0; // Should processing be run this time? 39 39 $post = array(); // processing parameters to be used 40 41 ##### main body of code ##################################################################### 40 42 41 43 # look for any input parameters … … 88 90 } 89 91 #phpInfo(); 92 93 ####### function definitions ################################################################### 90 94 91 95 … … 361 365 } 362 366 367 363 368 function addAttribute($parent, $name, $value = '') { 364 369 $attr = $parent->setAttribute($name, $value); … … 367 372 } 368 373 374 369 375 function addText($doc, $parent, $text = '') { 370 376 $node = $doc->createTextNode($text); … … 373 379 } 374 380 381 375 382 function addComment($doc, $parent, $text = '') { 376 383 $node = $doc->createComment($text); … … 379 386 } 380 387 388 381 389 function addTextElement($doc, $parent, $tag, $text) { 382 390 $node = addElement($doc, $parent, $tag); … … 384 392 return($node); 385 393 } 394 386 395 387 396 function prettyXML($sXML) { … … 393 402 return($doc->saveXML()); 394 403 } 404 395 405 396 406 // PRJ_mysqlDate
Note: See TracChangeset
for help on using the changeset viewer.