issue while reading xml file

Danger

New Member
I have to read an XML file that resides on Fitnesse Page.Let's take an example.\[code\]<?php$url = http://localhost:9090/TestSuite.Fitnesse?Suite&Format=XML;$xml=file_get_contents($url);?>\[/code\]My XML is in form of: \[code\]<xml version="some version"><Results><name>Karan</name></Results>...etc...\[/code\]When I output the \[code\]$xml\[/code\] on page, some strange numbers appears to come before each and every tag and output seems to be like\[code\]37 9 Karan 9f .........and so on....\[/code\]When I checked the source of that webpage, the page containes the below code:\[code\]37 9<?XML Version="some version">32<Results>32<name>45Karan 0f</name>and so on....\[/code\](I didn't use the exact value, I can provide if needed).Can anybody help me on this as I was not expecting these strange characters in output string.
 
Back
Top