REXML retrieve elements not working with namespaces

Hi All,

I am unable to retrieve an element from following xml using REXML.
xml is valid, i had to make some changes before i could post.
i need to retrieve AName and BName elements from below xml.

I will not be aware of all the namespaces before i parse, is there a way
to get all the namespaces from following doc and then may be i can
iterate through all the namespaces with AName. However i am not able to
retrieve all the namespaces as well.

Thanks


<?xml version="1.0" encoding="UTF-8"?>

<cho:Poperation xmlns:cho=“http://xmlns.balla.com/rocess/2003
xmlns:xsl=“http://www.w3.org/1999/XSL/Transform
xmlns:xsd=“http://www.w3.org/2001/XMLSchema
xmlns:ns12=“http://www.local.com/dd”>
<cho:activity name=“Assign”>
cho:typecom.balla.signActivity</cho:type>
cho:resourceTypedd.tivities.asstivity</cho:resourceType>
cho:inputBindings
ns12:root
ns12:AName
<xsl:value-of select="“RetrieveInfo”"/>
</ns12:AName>
ns12:BName
<xsl:value-of
select="“RetrieveInfoProcess”"/>
</ns12:BName>
</ns12:root>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs