Changeset 1383 for fmts/trunk/p
- Timestamp:
- Mar 22, 2012, 3:41:24 PM (13 years ago)
- Location:
- fmts/trunk/p
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fmts/trunk/p/C0XF2N.m
r1381 r1383 147 147 N ZTXTNM 148 148 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) 151 151 D SWUPDIE(.C0XFDA) ; TRY IT OUT 152 152 K C0XCNT ;RESET FOR NEXT TIME 153 153 D STORETXT(ZRDF,ZTXTNM,FARY) 154 W !,"ADDED: ",ZGRAPH," ",ZSUBJECT," fmts: rdfSource ",ZTXTNM154 W !,"ADDED: ",ZGRAPH," ",ZSUBJECT," fmts:fileSource ",ZTXTNM 155 155 D PROCESS(.G,ZRDF,ZNAME,ZGRAPH,FARY) ; PARSE AND INSERT THE RDF 156 156 Q … … 241 241 S C0XDLC2=$$NOW^XLFDT ; START OF PARSE 242 242 I @ZRDF@(1)'["<?xml" D Q ; 243 . K @ZRDF ; don't need the input buffer 243 244 . W !,"Not an XML file" 244 245 S C0XDOCID=$$EN^MXMLDOM(ZRDF,"W") ; -
fmts/trunk/p/C0XGET1.m
r1382 r1383 451 451 ; associated with ztag 452 452 n zs,zo 453 s zs=$$subject("fmts: tag",ztag)453 s zs=$$subject("fmts:fileTag",ztag) 454 454 i zs="" d q ; 455 455 . 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") 457 457 i zo="" d q ; 458 458 . w !,"error, tag source not found ",zs
Note:
See TracChangeset
for help on using the changeset viewer.