[Mono-list] Re: some System.XML bugfixes
A Rafael D Teixeira
rafaelteixeirabr@hotmail.com
Tue, 03 Dec 2002 08:19:12 -0200
>From: Sebastien Pouliot <spouliot@videotron.ca>
>Reply-To: Sebastien Pouliot <spouliot@videotron.ca>
>To: "ginga(A.E.)" <ginga@kit.hi-ho.ne.jp>, mono-list <mono-list@ximian.com>
>Subject: Re: [Mono-list] Re: some System.XML bugfixes
>Date: Mon, 02 Dec 2002 19:21:55 -0500
>
>Nope. I still got the same results :-(
>
><KeyInfo
>xmlns="http://www.w3.org/2000/09/xmldsig#"><KeyName>Mono::</KeyName></KeyInf
>o>
><KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"><KeyName
>xmlns="http://www.w3.org/2000/09/xmldsig#">Mono::</KeyName></KeyInfo>
>
>here's the code being called...
>
>int KeyInfoTest.cs
>
> KeyInfo info;
>
> public void TestKeyInfoName ()
> {
> KeyInfoName name = new KeyInfoName ();
> name.Value = "Mono::";
> info.AddClause (name);
> //******** this is the assertion that fails ******** !
> AssertEquals ("name", "<KeyInfo
>xmlns=\"http://www.w3.org/2000/09/xmldsig#\"><KeyName>Mono::</KeyName></KeyI
>nfo>", (info.GetXml ().OuterXml));
> AssertEquals ("name count", 1, info.Count);
> }
XML must be first normalized to its canonical form, before any textual
comparison can be made. I'm not sure if System.Xml implements some
canonicalization service, but we need one because w3c's xml signatures
require it.
Happy Searching,
Rafael Teixeira
Brazilian Polymath
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail