Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Question regarding C14N namespace

Reply
Thread Tools

Question regarding C14N namespace

 
 
jacksuyu@gmail.com
Guest
Posts: n/a
 
      10-26-2005
I am a little confused about "Elimination of superfluous namespace
declarations" in the w3c C14 document.

Couple sample situations:
1.
<ParentNode xmlns="parent" xmlns:C="child">
<C:TheNode>
</C:TheNode>
</ParentNode>

If I perform C14N process on C:TheNode, will it be
<C:TheNode xmlns:C="child">
</C:TheNode>
Or just
<C:TheNode>
</C:TheNode>

2. Useless namespace
<C:TheNode xmlns:C="child" xmlns:junk="junkURI">
</C:TheNode>

After C14N process, should it be
<C:TheNode xmlns:C="child">
</C:TheNode>
or
<C:TheNode xmlns:C="child" xmlns:junk="junkURI">
</C:TheNode>


Thanks.

-- Jack

 
Reply With Quote
 
 
 
 
jacksuyu@gmail.com
Guest
Posts: n/a
 
      10-26-2005
One more question regarding C14N, shouldn't the line breaks in elements
be changed to #xA #xD ?

Such as
<C:TheNode xmlns:C="child" xmlns:junk="junkURI">
</C:TheNode>

should be CN14 to
<C:TheNode xmlns:C="child" xmlns:junk="junkURI"> #xA </C:TheNode>

Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
c14n-r 1.0 Roland Schmitt Ruby 1 07-04-2007 03:18 PM
Ruby module for canonicalizing xml (c14n)? Peter Krantz Ruby 0 02-15-2006 09:14 PM
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) li.eddie@gmail.com ASP .Net 0 01-06-2006 11:31 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Help:Why can't I use namespace System.Web? It is said that this namespace doesn't exist. But it should exist. Èý¹â ASP .Net 1 07-29-2003 04:31 PM



Advertisments