[xml] question about how to set namespace in libxml
- From: Dan Quach <daniel shinzu com>
- To: xml gnome org
- Subject: [xml] question about how to set namespace in libxml
- Date: Tue, 1 Mar 2011 12:05:37 -0800
Currently I am reading in the following xml document (through a ruby wrapper)
LibXML::XML::Document.string( saml_plain)
<ds:SignedInfo>
<ds:Reference URI='#FYQBldG6i_i18gy6gJfhOh7.u_T'>
<ds:Transforms>
</ds:Transforms>
<ds:DigestValue>KpuhfX2q6nR660VW/dS0vIrVtSg=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
The problem when it is read in that all of the ds namespaces are stripped and errors occur
<SignedInfo>
<Reference URI="#FYQBldG6i_i18gy6gJfhOh7.u_T">
<Transforms>
</Transforms>
<DigestValue>KpuhfX2q6nR660VW/dS0vIrVtSg=</DigestValue>
</Reference>
</SignedInfo>
<ds:Reference URI='#FYQBldG6i_i18gy6gJfhOh7.u_T'>
<ds:Transforms>
</ds:Transforms>
<ds:DigestValue>KpuhfX2q6nR660VW/dS0vIrVtSg=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
thanks!
-dan
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]