Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

xml outputting

New Here ,
Jun 08, 2010 Jun 08, 2010

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

340
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 08, 2010 Jun 08, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jun 08, 2010 Jun 08, 2010
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources