/[webpac]/branches/humanistika/import_xml/convert_delimiter.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /branches/humanistika/import_xml/convert_delimiter.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 291 by dpavlin, Sun Mar 14 20:34:24 2004 UTC revision 741 by dpavlin, Wed May 24 19:04:42 2006 UTC
# Line 14  foreach my $file (@ARGV) { Line 14  foreach my $file (@ARGV) {
14    
15          close(XML);          close(XML);
16    
 <<<<<<< .working  
         if ($xml =~ s,<(\w+)\s+delimiter\s*=\s*"(\s[^"]+|[^"]+\s)"\s*>(.*?)</\1>,<$1>\n\t\t\t<delimiter>$2</delimiter>\n\t\t\t<value>$3</value>\n\t\t</$1>,gis) {  
 =======  
17          if ($xml =~ s,<(\w+)(\s+[^>]*)delimiter\s*=\s*"(\s[^"]+|[^"]+\s)"([^>]*)>(.*?)</\1>,<$1$2$4>\n\t\t\t<delimiter>$3</delimiter>\n\t\t\t<value>$5</value>\n\t\t</$1>,gis) {          if ($xml =~ s,<(\w+)(\s+[^>]*)delimiter\s*=\s*"(\s[^"]+|[^"]+\s)"([^>]*)>(.*?)</\1>,<$1$2$4>\n\t\t\t<delimiter>$3</delimiter>\n\t\t\t<value>$5</value>\n\t\t</$1>,gis) {
 >>>>>>> .merge-right.r290  
18                  open(XML,"> $file-new") || die "can't create '$file-new': $!";                  open(XML,"> $file-new") || die "can't create '$file-new': $!";
19                  print XML $xml;                  print XML $xml;
20                  close(XML);                  close(XML);

Legend:
Removed from v.291  
changed lines
  Added in v.741

  ViewVC Help
Powered by ViewVC 1.1.26