Changeset 1383 for fmts


Ignore:
Timestamp:
Mar 22, 2012, 3:41:24 PM (13 years ago)
Author:
George Lilly
Message:

fixed bug in non-xml inport

Location:
fmts/trunk/p
Files:
2 edited

Legend:

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

    r1381 r1383  
    147147 N ZTXTNM
    148148 S ZTXTNM="_TXT_INCOMING_RDF_FILE_"_ZNAME_"_"_$$LKY5 ; NAME FOR TEXT NODE
    149  D ADD(ZGRAPH,ZSUBJECT,"fmts:rdfSource",ZTXTNM,FARY)
    150  D ADD(ZGRAPH,ZSUBJECT,"fmts:tag",$$name2tag(ZNAME),FARY)
     149 D ADD(ZGRAPH,ZSUBJECT,"fmts:fileSource",ZTXTNM,FARY)
     150 D ADD(ZGRAPH,ZSUBJECT,"fmts:fileTag",$$name2tag(ZNAME),FARY)
    151151 D SWUPDIE(.C0XFDA) ; TRY IT OUT
    152152 K C0XCNT ;RESET FOR NEXT TIME
    153153 D STORETXT(ZRDF,ZTXTNM,FARY)
    154  W !,"ADDED: ",ZGRAPH," ",ZSUBJECT," fmts:rdfSource ",ZTXTNM
     154 W !,"ADDED: ",ZGRAPH," ",ZSUBJECT," fmts:fileSource ",ZTXTNM
    155155 D PROCESS(.G,ZRDF,ZNAME,ZGRAPH,FARY) ; PARSE AND INSERT THE RDF
    156156 Q
     
    241241 S C0XDLC2=$$NOW^XLFDT ; START OF PARSE
    242242 I @ZRDF@(1)'["<?xml" D  Q  ;
     243 . K @ZRDF ; don't need the input buffer
    243244 . W !,"Not an XML file"
    244245 S C0XDOCID=$$EN^MXMLDOM(ZRDF,"W") ;
  • fmts/trunk/p/C0XGET1.m

    r1382 r1383  
    451451 ; associated with ztag
    452452 n zs,zo
    453  s zs=$$subject("fmts:tag",ztag)
     453 s zs=$$subject("fmts:fileTag",ztag)
    454454 i zs="" d  q  ;
    455455 . w !,"error, tag is either missing or there are more than one ",ztag
    456  s zo=$$object(zs,"fmts:rdfSource")
     456 s zo=$$object(zs,"fmts:fileSource")
    457457 i zo="" d  q  ;
    458458 . w !,"error, tag source not found ",zs
Note: See TracChangeset for help on using the changeset viewer.