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

integrating xml file into coldfusion

Guest
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

Hi all,

I need a syntax help for
HOW TO INCLUDE .XML FILE INTO COLDFUSION.

Thanks
Sudhakar
TOPICS
Advanced techniques

Views

247

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
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

HOW TO INCLUDE .XML FILE INTO COLDFUSION.

<cfinclude template="aFile.xml">

Would do just that. But this is probably not what you are trying to do.
Give us a more specific question and we can probably help a bit better.

Otherwise reading the entire chapters the CF documentation has on the
many ways it can work with XML would probably help.

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
Engaged ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

Do a search for XMLParse(). XMLSearch(). You can also use CFFILE to read the xml file and then use XMLParse() to make a query object out of it.

You can make an XML file using the CFXML tag also.

There is alot of documentation on this subject, as it is widely used in CFML.

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
Guest
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

Hi,

Thanks a lot for your help.

My requirement is:

I want to store my own custom metadata with image.
after uploading the image by the user,
we need to give flexibility to the user to add/edit that metadata.

The corresponding metadata tabs and fields were designed in coldfusion.
Now how to integrate my custom metadata fields data what user edited, with image.

sudhakar

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
LEGEND ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

LATEST
The corresponding metadata tabs and fields were designed in coldfusion.
Now how to integrate my custom metadata fields data what user edited,
with image.


You have two major techniques you can do this with ColdFusion. You can
read/create the XML data into XML objects (not quite the same as a query
objects - but similar) in the ColdFusion memory. You can then use the
many xml, array and structure functions to manipulate these objects.
Then use the toString() function to write out the final XML to files for
long term storage.

You can also use XML objects and|or strings with XSLT objects and|or
strings to manipulate the data using the xmlTransform() function. I do
this allot. You then have all the capability of XSLT and xPath syntax
for changing XML data into new XML, XHTML or other forms. Again using
<cffile...> tags to write out the resulting data to files.


HTH

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