0

I am retrieving some XML files from the server and I want to get elements by some tags. But It shows me an error to catch the element by tag. Can somebody help me to get the element by tag(tag name also contains dots)?

XML File

<org.openmrs.module.Module>
<name>OpenHMIS Inventory Module</name>
<moduleId>openhmis.inventory</moduleId>
<author>OpenHMIS</author>
<version>2.3.4</version>
</org.openmrs.module.Module>

My AngularJS Code,

function(data){
 $scope.name=data.['org.openmrs.module.Module'].name;
}
4
  • stackoverflow.com/questions/15490658/… Commented Jun 2, 2017 at 3:58
  • Problem is handling XML tags with dots Commented Jun 2, 2017 at 4:29
  • Are you first converting XML the to JSON? Commented Jun 2, 2017 at 5:37
  • After the conversation also, there will be problems with dots Commented Jun 2, 2017 at 9:27

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.