From: Sebastien Pouliot <[EMAIL PROTECTED]>
Reply-To: Sebastien Pouliot <[EMAIL PROTECTED]>
To: "ginga(A.E.)" <[EMAIL PROTECTED]>, mono-list <[EMAIL PROTECTED]>
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


_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to