RE: [xmljs-users] parsing problem
Brought to you by:
djoham,
witchhunter
|
From: David J. <dj...@ya...> - 2004-01-20 17:15:26
|
Hi,
I'm glad it worked for you. Can you send a quick code example of a situation where IE throws an
error please? I have IE 5 and I don't get any error condition reported to me in my test cases.
Thanks!
David
--- Chandan Kumar <cha...@bl...> wrote:
> Thanks a lot.
> The new file worked perfectly.
>
> The old file works if the namespaceaware property is set to false as shown
> here:
> ......................................................
> var parser = new DOMImplementation();
> //this property has to be set to false to enable the parser to read
> tags closed in a single line
> //for eg <A ........ />
> parser.namespaceAware = false;
> .......................................................
>
> There is another problem with the file in internet explorer. This problem
> was present in the old file too. An "exception thrown but not caught" error
> is thrown in IE. This problem vanished when line 428 in the new file was
> commented:
> ......................................................
> else if(iEvt == XMLP._ERROR) {
> //throw(new DOMException(DOMException.SYNTAX_ERR));
> .........................................................
>
> Thanks,
> Chandan
>
> |-----Original Message-----
> |From: David Joham [mailto:dj...@ya...]
> |Sent: Tuesday, January 20, 2004 1:27 AM
> |To: Chandan Kumar; xml...@li...
> |Subject: Re: [xmljs-users] parsing problem
> |
> |
> |--- 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
> |
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> xmljs-users mailing list
> xml...@li...
> https://lists.sourceforge.net/lists/listinfo/xmljs-users
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
|