bug fix in xpath lib
This commit is contained in:
parent
485ea617a9
commit
ed841bbcbc
10
p/C0CXPATH.m
10
p/C0CXPATH.m
|
@ -148,8 +148,8 @@ XPG2XML(OUTXML,INXPG,NUM) ;
|
|||
. F ZI=1:1:$QL(G) D ;
|
||||
. . I ZI<$QL(G) D ;
|
||||
. . . S ZB=$QS(G,ZI)
|
||||
. . . I ZA(ZA(0))'=ZB ZOPEN(ZB)
|
||||
. . . E ZCLOSE(ZB)
|
||||
. . . I ZA(ZA(0))'=ZB D ZXO(ZB)
|
||||
. . . E D ZXC(ZB)
|
||||
. . S ZV=""
|
||||
. . S G2=$QS(G,ZI)
|
||||
. . I ZI=$QL(G) S ZV=@G
|
||||
|
@ -158,17 +158,17 @@ XPG2XML(OUTXML,INXPG,NUM) ;
|
|||
. W !
|
||||
Q
|
||||
;
|
||||
ZOPEN(WHAT)
|
||||
ZXO(WHAT)
|
||||
D PUSH("GA",WHAT)
|
||||
D PUSH(OUTXML,"<"_WHAT_">")
|
||||
Q
|
||||
;
|
||||
ZCLOSE(WHAT)
|
||||
ZXC(WHAT)
|
||||
D POP("GA",.TMP)
|
||||
D PUSH(OUTXML,"</"_WHAT_">")
|
||||
Q
|
||||
;
|
||||
ZVAL(WHAT,VAL)
|
||||
ZXVAL(WHAT,VAL)
|
||||
D PUSH(OUTXML,"<"_WHAT_">"_VAL_"</"_WHAT_">")
|
||||
Q
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue