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

XML Node Name

Contributor ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

I am working on a project where the XML file doesn't always have the same stuff in it. So I need to be able to read the node names but I can't remember how in CF. argh. Tried searching on it and came up blank.

So if you are quick you may help me here before it hits me in the face like a baseball bat. 🙂
TOPICS
Advanced techniques

Views

188

Translate

Translate

Report

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
Advocate ,
Apr 04, 2007 Apr 04, 2007

Copy link to clipboard

Copied

LATEST
You could probably do that a couple of ways: XMLSearch(xmlDoc, xPath) or loop over the XMLChildren nodes of your parent element and retrieve the element name manually. I forget the structure notation for the element name (I think its something like NodeName), but a <cfdump> should illuminate the situation.

Hope that helps!

Votes

Translate

Translate

Report

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
Documentation