'" " BOGMODVCVADAOT~O TRUONG DAI HOC NGOAI NGU - TIN HOC TP.HCM KHOA CONG NGIffl THONG TIN - ~ "K " KHOA LUAN TOT NGHIEP • • NGHIEN euu LUAT Ill U TU TRue TIEP Nuoe NGoAI TAl VIET NAM UNG Dl)NG eONG NGHt HltN J1~1XAY , DUNGHEH6TRaG~PIlaeAeNHAIll.U TUTAI VIET NAM GVHD: Ts Vii Thanh Nguyen SVTH: Tr~n Thanh Quang THANH PHD HO CHi MINH - 2001 I Qua qua trlnh du'., , hi6n thj th6ng tin, thl XML eho ph6p chlJng t.a c1anh dau t.hong tin b~ng btt I;U' eaeh n~lo rna chung ta thich rna phu h(.lp vdi slf trao c16i dITli9U _CHV(j~~.!: T6~~; Q~ANVI~Xl\!~ Vi d~1 3.1: Hi6n thi danh lTll,lCsaeh nha xuat han, sf{ trang, gi,i tiSn I> Uidi thieh: - Ph~n khai bao D1'D n:lm sau ph~n khai baa XML version=" I O"'! » «?xml Phan khai b~t dau bang DOCTYPE [ 8 DClu * eh I phfl n ttl' c() hay khong co cfing al(Qc + chI phfln tlt n~y c6 hI I trel k~n DrIll? chI ph~n ttt li.\tuy Ch(:ln [){lU _CHV parent.fra TIlel.doClllnc 01: write(" ") i flrl.lot:.childN odes itcln(top bl).c hildNodes.ilem(top.chuong).c hildNodes.lengthElnply"); else l.docuroent.\\rite("" + root.elli IdN odes itt:rn(top.hl ).ehildN odes.i tern(top.chuang).childN od e s ite1l1(i).childN ol.h~s.itern(1 ).tex 1); } parc.:~nt.franle l.doclllnc ot wri te(" "); fu ncli()Jl chuongO { parent.franle l.doclI]nc 01 write(" ") i:=O;i1lXM LHTTP"); )('1~"" Ilt1p ()]'.)J.open( '''P (,) , save.asp ht1pObj setRequestHeader( ",f'-a 1se ) ; "Content- type", "text/xml"); ht1pObj.send(root.xml); don l.sa \C(" d:\d.xnd "); pan~n1:.opeJJ("changel.ht:nl" ," frame It); pa n~n1:.ope]J (" change.htJll", "frarne2 It); le onload::="loadO"> odes.ite ).c _~I~~l! _e! ~ _~':I~~,- -7_4_- Option Explicit dim xI11lReLJ Set xrnlReq=Servc r.CreateObject(" >-'Inl Req.load(Requestl if X III 1Req.pari'.eError MsXlnI2.DOMDocument") () then Respon '.;(:.Wr ite(l(ml Req p arseError.reason) end if ),.ll11 Req.sa ve(" dbh.la L.\Inl ") Bi~n phi(lJSD)-::ffD>