Re: [xmljs-users] parsing problem
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-01-19 19:56:53
|
--- Chandan Kumar <cha...@bl...> wrote: > Hi, > I started using xml for script just yesterday. > > I seem to be having a problem with parsing xml. If the xml contains a line > like this > > <A attribute1 ='value1' attribute2='value2' /> > > the parser does not read this in the domimplementation object. I am using > the w3cdom implementation. > > On the other hand, > xml like <A></A> works prefectly allright. > > Please let me know how to get over this problem. > > Thanks, > Chandan > I believe I have found the root problem for this. I have attached a new (gzipped) xmlw3cdom.js to this Email for your testing purposes. Please let me know if this fixes your problem. If it doesn't, can you please send a full XML code snippit to me? For reasons yet unexplained, the 3.0 parser seems to sometimes parse tags like this and sometimes not. I think what I'm sending you now will always parse them correctly. At least it has in all of my tests so far. Best regards, David __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus |