Changeset 1380 for fmts/trunk/p


Ignore:
Timestamp:
Mar 21, 2012, 10:35:26 PM (13 years ago)
Author:
George Lilly
Message:

change for non-xml incoming files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fmts/trunk/p/C0XF2N.m

    r1378 r1380  
    3838 S @ZFARY@("C0XTN")=$NA(^C0X(101)) ; TRIPLES GLOBAL NAME
    3939 S @ZFARY@("C0XSN")=$NA(^C0X(201)) ; STRING FILE GLOBAL NAME
    40  S @ZFARY@("C0XDIR")="/home/glilly/fmts/trunk/samples/smart-rdf-in/"
     40 S @ZFARY@("C0XDIR")="/home/glilly/sage/test/"
    4141 S @ZFARY@("BLKLOAD")=1 ; this file supports block load
    4242 S @ZFARY@("FMTSSTYLE")="F2N" ; fileman style
     
    235235 ;S C0XDOCID=$$PARSE^C0CNHIN(ZRDF,"C0XARRAY") ; PARSE WITH MXML
    236236 S C0XDLC2=$$NOW^XLFDT ; START OF PARSE
     237 I @ZRDF@(1)'["<?xml" D  Q  ;
     238 . W !,"Not an XML file"
    237239 S C0XDOCID=$$EN^MXMLDOM(ZRDF,"W") ;
    238240 ;B
     
    633635 ; 
    634636SWUPDIE(ZFDA) ; SWITCH BETWEEN UPDIE AND BULKLOAD
    635  . I $G(BLKLOAD) D  ; bulk load
    636  . . D BULKLOAD(.ZFDA) ; bulk load the batch
    637  . E  D  ; no bulk load
    638  . . D UPDIE(.ZFDA)
    639  . K ZFDA
     637 I $G(BLKLOAD)=1 D  ; bulk load
     638 . D BULKLOAD(.ZFDA) ; bulk load the batch
     639 E  D  ; no bulk load
     640 . D UPDIE(.ZFDA)
     641 K ZFDA
    640642 Q
    641643 ;
Note: See TracChangeset for help on using the changeset viewer.