Re: [xml] question about how to set namespace in libxml



On Sat, 2011-03-05 at 14:52 +0100, Michael Ludwig wrote:
Dan Quach schrieb am 01.03.2011 um 12:05 (-0800):
Currently I am reading in the following xml document (through a ruby
wrapper)
LibXML::XML::Document.string( saml_plain)

<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm='
http://www.w3.org/2001/10/xml-exc-c14n#'/>
[â]
</ds:SignedInfo>

That document is not namespace-well-formed.

<wrapper xmlns:ds="http://www.example.org/ds/";>
  <ds:SignedInfo>
  <ds:CanonicalizationMethod
    Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#'/>
  </ds:SignedInfo>
</wrapper>

might be one way to handle it.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/




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