Skip to main content
Participating Frequently
June 8, 2010
Question

xml outputting

  • June 8, 2010
  • 2 replies
  • 376 views

Hi,

I'm calling an api using cfhttp and getting an xml document back

I'm struggling to output the xml document though in a sensible format.

The xml looks roughly like this:-

soap:Envelope
XmlText
XmlAttributes
struct
xmlns:soaphttp://schemas.xmlsoap.org/soap/envelope/
xmlns:wsahttp://schemas.xmlsoap.org/ws/2004/08/addressing
xmlns:xsdhttp://www.w3.org/2001/XMLSchema
xmlns:xsihttp://www.w3.org/2001/XMLSchema-instance
soap:Header
XmlText
wsa:Action
XmlTexthttp://smbsaas/websitepanel/enterpriseserver/GetWindowsProcessesResponse
wsa:MessageID
XmlTexturn:uuid:88280590-c900-4ff6-a84f-a99ba46c7bb0
wsa:RelatesTo
XmlTexturn:uuid:33e8aab5-27c6-431d-b891-a79d7104967d
wsa:To
XmlTexthttp://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
soap:Body
XmlText
GetWindowsProcessesResponse
XmlText
XmlAttributes
struct
xmlnshttp://smbsaas/websitepanel/enterpriseserver
GetWindowsProcessesResult
XmlText
WindowsProcess
XmlText
Pid
XmlText0
Name
XmlTextSystem Idle Process
CpuUsage
XmlText0
MemUsage
XmlText24576
WindowsProcess
XmlText
Pid
XmlText4
Name
XmlTextSystem
CpuUsage
XmlText0
MemUsage
XmlText311296


I've tried a number of different methods but to no avail to extra the data.

how do I extract and output the windows processes sectoins into a table?

Thanks

Paul

    This topic has been closed for replies.

    2 replies

    ilssac
    Inspiring
    June 8, 2010

    Are you properly accounting for the name spaces used in that XML file?

    If not, I would sugest searching and reading up on ColdFusion and XML and Name Spaces.  They do make it a little more diffiecult to get around an XML node tree.

    If you are, provide some idea what "different methods" you have tried.

    Participant
    June 8, 2010

    Check out this source.

    http://www.learn-coldfusion-tutorial.com/Xml.cfm

    If that doesn't help. Can you post a link to the xml file?