lib/rews/util.rb
# convert rsxml to xml, transforming local_parts of QNames to CamelCase and prefixing with
# the t: namespace prefix if no namespace is already applied
convert rsxml to xml, transforming local_parts of QNames to CamelCase and prefixing with
the t: namespace prefix if no namespace is already applied
convert rsxml to xml transforming local_parts of QNames to CamelCase and prefixing with the t : namespace prefix if no namespace is already applied
def rsxml_to_xml(sexp)
      transform_visitor = Rsxml::Visitor::BuildRsxmlVisitor.new() do |context, element_name, attrs|
        t_element_name = camelize_qname(apply_namespace(element_name, "t", Rews::SCHEMA_TYPES))
        t_attrs = Hash[attrs.map{|attr_name,v| [camelize_qname(attr_name), v]}]
        [t_element_name, t_attrs]
      end
      xrsxml = Rsxml::Sexp.traverse(sexp, transform_visitor).sexp
      Rsxml.to_xml(xrsxml, :ns=>{"t"=>Rews::SCHEMA_TYPES, "wsdl"=>Rews::SCHEMA_MESSAGES})
    end
def rsxml_to_xml ( sexp ) transform_visitor = Rsxml :: Visitor :: BuildRsxmlVisitor . new ( ) do | context , element_name , attrs | t_element_name = camelize_qname ( apply_namespace ( element_name , "t" , Rews :: SCHEMA_TYPES ) ) t_attrs = Hash [ attrs . map { | attr_name , v | [ camelize_qname ( attr_name ) , v ] } ] [ t_element_name , t_attrs ] end xrsxml = Rsxml :: Sexp . traverse ( sexp , transform_visitor ) . sexp Rsxml . to_xml ( xrsxml , :ns => { "t" => Rews :: SCHEMA_TYPES , "wsdl" => Rews :: SCHEMA_MESSAGES } ) end
convert rsxml to xml, transforming local_parts of QNames to CamelCase and prefixing with
the t: namespace prefix if no namespace is already applied
convert rsxml to xml transforming local_parts of QNames to CamelCase and prefixing with the t : namespace prefix if no namespace is already applied
# visit the rsxml, prefix the element tags with "t" namespace prefix, and camelcase # all QName local_parts
sexp
<not_specific>