Changeset 50 for ccr/trunk/p/GPLXPATH.m
- Timestamp:
- Jul 7, 2008, 1:30:04 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ccr/trunk/p/GPLXPATH.m
r43 r50 331 331 Q 332 332 ; 333 TRIM(THEXML) ; TAKES OUT ALL NULL ELEMENTS 334 ; THEXML IS PASSED BY NAME 335 N I,J,TMPXML,DEL 336 F I=1:1:@THEXML@(0) D ; LOOP THROUGH ENTIRE ARRAY 337 . I @THEXML@(I)'["><" D PUSH("TMPXML",@THEXML@(I)) 338 D INDEX("TMPXML") ; MAKE AN XPATH INDEX 339 S I="" S I=$O(TMPXML(I)) 340 F K=0:0 D Q:I="" ; NOW LOOK FOR EMPTY SECTIONS 341 . I I["//" D ; 342 . . W I,TMPXML(I),! 343 . . S J=$P(TMPXML(I),"^",1) 344 . . I J+1=$P(TMPXML(I),"^",2) D ; 345 . . . W I,! 346 . . . S DEL(J)="" 347 . . . S DEL(J+1)="" 348 . S I=$O(TMPXML(I)) 349 F I=1:1:TMPXML(0) D ; 350 . I '$D(DEL(I)) 351 . D PUSH("TMPXML2",TMPXML(I)) 352 D CP("TMPXML2",THEXML) 353 Q 354 ; 333 355 PARY(GLO) ;PRINT AN ARRAY 334 356 N I
Note:
See TracChangeset
for help on using the changeset viewer.