[xmlsec] help

Aleksey Sanin aleksey at aleksey.com
Wed Mar 31 07:30:08 PST 2004


It's another issue with namespaces. C14N dies not allow
"relative" namespaces (see the last Note in the paragraph):
	http://www.w3.org/TR/2001/REC-xml-c14n-20010315#DataModel

Aleksey
	

StackWood wrote:

> Hello!
> 
>    At first I'm very appreciate your help. But there still have that error according to your reference. And I found an interesting thing. If I change node: <abc:Envelope xmlns:abc="mylover">  to <abc:Envelope xmlns:abc="urn:mylover"> , the result is right.Why? 
> 
>    I have another question, that is how to delete a node?
>    When I have verified a signed XML file, I have to delete <Signature> from this file and submit to application. Then how to delete node Signature in the chain of doc?
>    
>    Thank you very much!
>    
> 
> 	
> 
> 
>>>xmlSecTmplTransformAddXPath(transformNode,BAD_CAST "ancestor-or-self::PriceAndVolume",NULL)
>>
>>Try "ancestor-or-self::abc:PriceAndVolume" instead.
>>
>>Aleksey
>>
>>
> 
> ---------soap.xml--------------------------------------
> <?xml version="1.0" encoding="GB2312"?>
> <abc:Envelope xmlns:abc="mylover">
>    <abc:Body>
>        <abc:GetLastTradePriceResponse>
>            <abc:PriceAndVolume>
>                <abc:LastTradePrice>
>                    34.5
>                </abc:LastTradePrice>
>                <abc:DayVolume>
>                    10000
>                </abc:DayVolume>
>            </abc:PriceAndVolume>
>        </abc:GetLastTradePriceResponse>
>    </abc:Body>
> </abc:Envelope>
> -------------------------------------------------------
> 				 
>         StackWood
>         stackwood at 263.net
>           2004-03-31
> 



More information about the xmlsec mailing list