[xml] Error in LIBXML exc-c14n



Hello Sir,
 
I was testing Exclusive canonicalization by following xml file which is given in exclusive canonicalization specification. The input is below
 
<n2:pdu xmlns:n1="http://example.com"
           xmlns:n2="http://foo.example"
           xml:lang="fr"
           xml:space="retain">
      <n1:elem2 xmlns:n1="http://example.net"
                xml:lang="en">
          <n3:stuff xmlns:n3="ftp://example.org"/>
      </n1:elem2>
   </n2:pdu>
 
The output is below
 

<n1:elem2 xmlns:n1="http://example.net" xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en"><n3:stuff xmlns:n3="ftp://example.org"></n3:stuff></n1:elem2>

But the Actual Output should be

<n1:elem2 xmlns:n1="http://example.net"
             xml:lang="en">
       <n3:stuff xmlns:n3="ftp://example.org"></n3:stuff>
   </n1:elem2>

I couldn't get the problem Can you help mewhy is it coming wrongly.

 

Regards

Gopa

 

 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]