Export Selection to XML

Hi,
I want to create a website that I can enter loads of dishes
to a database and then, go to a page where I can select a set of
dishes and have them export to an XML file.
Some of the descriptions will not be the same so the user can
use a textarea to add to the XML tag for Description.
But I do not have any experience with XML and databases. I
have no idea if it will work the way I want it to?
Please help me,
Thank you

It's exporting everything because your recordset query
selected everything.
Filter the recordset on some factor using the WHERE keyword
or select only
you need by using something like SELECT whatever, something
else from menu
would give you just whatever and something else. Because you
used *, you
got everything.
There is code on the Spry sample page that does this for you
in PHP, Cold
Fusion or ASP:
http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
It was created for use with Spry, but doesn't have to be used
just for Spry.
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: Dreamweaver CS3: The Missing Manual,
DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide
Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"The_FedEx_Guy" <[email protected]> wrote in
message
news:[email protected]...
> Hi,
> I've used ADDT to export recordset to XML but its
exporting everything :-s
>
>
>
> <?php
> // Load the XML classes
> require_once('includes/XMLExport/XMLExport.php');
>
> mysql_select_db($database_db, $db);
> $query_Recordset1 = "SELECT * FROM menu";
> $Recordset1 = mysql_query($query_Recordset1, $db) or
die(mysql_error());
> $row_Recordset1 = mysql_fetch_assoc($Recordset1);
> $totalRows_Recordset1 = mysql_num_rows($Recordset1);
>
> // Begin XMLExport Recordset1
> $xmlExportObj = new XMLExport();
> $xmlExportObj->setRecordset($Recordset1);
> $xmlExportObj->addColumn("Dish_group", "Dish_group");
> $xmlExportObj->addColumn("Dish_name", "Dish_name");
> $xmlExportObj->addColumn("Dish_description",
"Dish_description");
> $xmlExportObj->setMaxRecords("ALL");
> $xmlExportObj->setDBEncoding("UTF-8");
> $xmlExportObj->setXMLEncoding("UTF-8");
> $xmlExportObj->setXMLFormat("NODES");
> $xmlExportObj->setRootNode("menu");
> $xmlExportObj->setRowNode("dish");
> $xmlExportObj->Execute();
> // End XMLExport Recordset1
> ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <title>Untitled Document</title>
> </head>
> <body>
> <table border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td><?php echo $row_Recordset1['Dish_group'];
?></td>
> </tr>
> </table>
> <?php do { ?>
> <form id="form1" name="form1" method="post"
action="">
> <table border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td> </td>
> <td> </td>
> <td> </td>
> <td> </td>
> </tr>
> <tr>
> <td><span class="style1"><?php echo
$row_Recordset1['Dish_name'];
> ?></span></td>
> <td> </td>
> <td> </td>
> <td><input name="checkbox" type="checkbox"
id="checkbox"
> value="yes"
> /></td>
> </tr>
> <tr>
> <td><span class="style2"><?php echo
> $row_Recordset1['Dish_description'];
?></span></td>
> <td> </td>
> <td> </td>
> <td> </td>
> </tr>
> </table>
> </form>
> <?php } while ($row_Recordset1 =
mysql_fetch_assoc($Recordset1)); ?>
> <form id="form2" name="form2" method="post"
action="">
> <input type="submit" name="Submit" id="button"
value="Submit" />
> </form>
> Export
> </body>
> </html>
> <?php
> mysql_free_result($Recordset1);
> ?>
>

Similar Messages

  • Export Recordset As XML w/ session variable

    I'm trying to use the Export Recordset As XML function. It works great for recordsets without any variables (such as a session variable), but as soon as a add a variable to the record set, I get a "Header already Sent!" Error.
    The prior (non-adobe) version had a "variable" selection on the Advanced tab which seems to be gone now.
    How do I add a session variable to the recordset and have it play nice with Export Recordset As XML? I need an XML doc that only includes a specific users information. The session variable is made when the user logs in to see the data.

    I'm trying to use the Export Recordset As XML function. It works great for recordsets without any variables (such as a session variable), but as soon as a add a variable to the record set, I get a "Header already Sent!" Error.
    The prior (non-adobe) version had a "variable" selection on the Advanced tab which seems to be gone now.
    How do I add a session variable to the recordset and have it play nice with Export Recordset As XML? I need an XML doc that only includes a specific users information. The session variable is made when the user logs in to see the data.

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • How do I set up my drag and drop questionaire to export to a XML file?

    How do I set up my drag and drop questionaire to export to a
    XML file?
    I have a 70 seperate SWF files that pose a question and
    contain a drag and drop rank order response of 1,2,3,4.How do I set
    up a XML file that receives the responses.I don't understand how to
    do the Actionscript
    and get my responses to connect to the XML.Please
    Help!Thanks!
    Here's an example of my XML.
    <assessment>
    <sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
    <request>save_progress</request>
    <question>
    <number>1</number>
    <slot_a>2</slot_a>
    <slot_b>1</slot_b>
    <slot_c>4</slot_c>
    <slot_d>3</slot_d>
    </question>
    <question>
    <number>2</number>
    <slot_a>4</slot_a>
    <slot_b>3</slot_b>
    <slot_c>2</slot_c>
    <slot_d>1</slot_d>
    </question>
    <question>
    <number>3</number>
    <slot_a>1</slot_a>
    <slot_b>2</slot_b>
    <slot_c>3</slot_c>
    <slot_d>4</slot_d>
    </question>
    </assessment>

    Use XML.sendAndLoad.
    http://livedocs.macromedia.com/flash/8/main/00002879.html
    You will need a server script to receive the XML structure
    and it depends on
    the server scripting language how you obtain that data. Then
    you can either
    populate a database or write to a static file or even email
    the XML data
    received from Flash.
    For a basic example, I have two links I use for students in
    my Flash
    courses:
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLASP/Ex01/XMLASPEchoEx01_D oc.php
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "kenpoian" <[email protected]> wrote in
    message
    news:e5i9hp$cs6$[email protected]..
    How do I set up my drag and drop questionaire to export to a
    XML file?
    I have a 70 seperate SWF files that pose a question and
    contain a drag and
    drop rank order response of 1,2,3,4.How do I set up a XML
    file that receives
    the responses.I don't understand how to do the Actionscript
    and get my responses to connect to the XML.Please
    Help!Thanks!
    Here's an example of my XML.
    <assessment>
    <sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
    <request>save_progress</request>
    <question>
    <number>1</number>
    <slot_a>2</slot_a>
    <slot_b>1</slot_b>
    <slot_c>4</slot_c>
    <slot_d>3</slot_d>
    </question>
    <question>
    <number>2</number>
    <slot_a>4</slot_a>
    <slot_b>3</slot_b>
    <slot_c>2</slot_c>
    <slot_d>1</slot_d>
    </question>
    <question>
    <number>3</number>
    <slot_a>1</slot_a>
    <slot_b>2</slot_b>
    <slot_c>3</slot_c>
    <slot_d>4</slot_d>
    </question>
    </assessment>

  • Advice on ADDT Export Recordset as XML Tutorial

    Hello all,
    I recently had a situation where I needed to use ADDT's "Export Recordset as XML" behavior. However, the "Export Recordset as XML" behavior creates a php page that generates the XML when the php script is run and the resulting XML is published to the browser.
    Unfortunately, I needed the php page to not publish to the browser, but to write the generated XML to a real XML file. I looked for help in the forums, but I was unable to find any information regarding this and it seemed some people had been looking for this ability.
    I was able to figure out how to use ADDT's "Export Recordset as XML" to write the XML to a file when the ADDT created Export XML php page is run.
    I want to share a brief description on how I did this. However, I had to modify the ADDT file "XMLExport.class.php" to get this to work. The modifications are are very simple and easy. You just have to comment out a few lines and change an echo to a return in the "XMLExport.class.php" file.
    Before I take the time to write this up, I wanted to be sure it's ok to explain in these forums how to edit ADDT files. I know the license agreement allows me to modify the code for my own use. But does the license agreement allow me tell other's how to modify the code?
    At the top of the Adobe "XMLExport.class.php" page you see this:
    Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it.
    Rather than try and decipher a license agreement, I thought someone, probably Gunter :), might be able to let me know before I go to the trouble.
    Thanks,
    Shane

    Hi Shane,
    But does the license agreement allow me tell other's how to modify the code?
    As this snenario isn´t explicitely mentioned respectively prohibited, I don´t see any problem at all with telling folks how to modify an ADDT "includes" file, though I´m not sure about the "distribution" aspect, as - to my understanding - an original or modified ADDT file can´t be offered for download or sent to others per email or whatever else might qualify as "distribution".
    My suggestion for remaining on the safe side :: just write a tutorial and tell folks how to modify whatever file, because merely providing an information about a modification certainly doesn´t tangent the "use, modify, and distribute" definition of the license at all -- however, it´s the reader of your tutorial who´s having to decide whether the suggested modification is in accordance with the terms of the Adobe license agreement, though this shouldn´t be a problem as well, as they´re going to modify the code for their own use :-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.h

    I have 100 groups in planning for those 100 groups i want to build roles like interactive,view user,planner etc.for those how to change in export -import folder .xml file  in that edit  how  to change user roles in that xml it will generate automatic id.how to do that in xml file ?

    Thanks john for you are reply.
    I had tried what you sad.I open shared service in that foundation project i had export shared service.after that in import-export file.In that role.csv,user.csv,group.csv.Like this file have.When i open user file added some users after i trying save in excel it shown messgse
    I click yes and save the .csv file and import from share servie. i got error like this
    am i doing right way john.or explain clearly

  • Export selected photos with comments

    How does one export selected photos (or an album) in such a way that when someone else imports them (on a different computer), the comments are preserved?
    That is, the recipient gets to see in their iPhoto the comments that the originator added in their iPhoto.
    I've done some searching in this forum and it kind of looks like there is no way using iPhoto, and that probably the best bet is to use iPhoto Library Manager. Is that right, or have I missed something?
    (As an aside to my main question: I think I recall an older version of iPhoto having an option to export selected photos in what was essentially an iPhoto Library structure (not the entire library, just a library of the selected photos), and this structure could be copied to another computer and then imported into the other iPhoto. But I haven't found any such option in iPhoto 08. If I'm correct I'm puzzled, since it seems like a step backwards.)
    Thanks in advance!

    Don:
    Use the File->Export->File Export menu option with the options shown below:
    You can change the size and quality level as needed. The description as well as the keywords and titles will be included.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Export Selected Text as EPS

    Hi All,
    I want export my selection (text) as EPS using InDesign CS4.
    Please suggest how it possible to export selection text as eps.
    Thanks,
    Shonky

    Do you literally mean you have a textbox with lots of text, you select one single word (for example), and then want to export just this one word?
    I can't think of any possible way. What if you select a sentence that runs from the right side of your text frame and wraps to the next line on the left side of that same frame?
    If you want to have an EPS containing some text, you might want to copy the text, paste it into a new document, then export that.

  • "Export selection as MIDI file" problem...

    Hi, i'm having some trouble when exporting my MIDI tracks to MIDI files. I select File, Export, Export selection as MIDI file and when i listen to the midi file, it's the same rhythm pattern but the instrument is a piano instead of the instrument it was originally.
    What the ****'s wrong! am i doing something wrong? I'd be really grateful if someone could solve this for me as i don't have a lot of time, it's for a college assignment!

    You're not doing anything wrong......if you are using Quicktime to preview the exported MIDI file the piano is from the Quicktime Synthesizer....
    [SMF|http://www.midi.org/aboutmidi/tut_midifiles.php]
    [Working with Standard MIDI Files|http://documentation.apple.com/en/logicpro/usermanual/index.html#chapter= 32%26section=7]
    [Saving Standard MIDI Files|http://documentation.apple.com/en/logicpro/usermanual/index.html#chapter= 32%26section=10]
    A

  • Exporting InfoArea as XML by Transport Connection

    Hi to everyone, i hope somebody can help me.
    I tried to export InfoAreas as XML via the Export Feature within the Transport Connection.
    Unfortunately when I import the generated XML File, in a new bw system - the InfoAreas will not be generated.
    The Import message says only Object successfully saved and the xml file looks correct to me.
    In the source system Objects are collected in automatic mode and grouped data flow before and after.
    I heard that exporting InfoAreas is a known bug in SAP BW, is this truw?
    TIA
    Mike

    Problem solved

  • [AS CS3] Export JPEG options, setting, export selection

    Hi all,
    I am having trouble getting a JPEG export of a selected group of items to adhere to the export options I'm setting. I swear I've done the same thing with PDF export prefs and it works OK.
    I need to export a group that is selected, not the whole page, using the options I specify. Every time it's 72 dpi, and probably medium quality.
    thanks a million
    PS if the only way is to use javascript I will consider that, but Applescript is best for me.
    tell application "Adobe InDesign CS3"
    tell JPEG export preferences
    set resolution to 600
    set JPEG Quality to maximum
    set JPEG Rendering style to baseline encoding
    end tell
    set myJPEGPrefs to JPEG export preferences
    export selection format JPG to "PREPCTRL-10:Users:chris.paveglio:Desktop:test.jpg"
    end tell

    >You can only export whole pages; exporting selections has been broken since
    CS2.
    I just ran into this, and I'm a bit confused.
    In my testing, it appears that a page item cannot be exported to most of the export formats in that trying to do so will result in the entire page (or possibly it's the spread) being exported. However, I
    am able to export a JPEG of a single page item, though setting the JPEG Export Preferences of the application seems to have no effect on the rendered JPEG which is always at 72 ppi and of a quality less than maximum as reported by the OP.
    Are these two separate bugs? Is there no way to get the JPEG preferences to "stick"?

  • Maxl to export/import partition xml

    I have searched thru the tech ref at all the Maxl commands and I'm not seeing what I'm looking for.
    Is there a way to automate thru maxl (or esscmd) the exporting and importing of the xml file for partitions?
    TIA,
    Robert

    Is that the only option?
    I've already seen the result of
    display partition appname.dbname advanced
    and it doesn't seem very friendly as an input file. Looks like much parsing and chopping would need to be done in order to get what I need as input to
    create or replace partition command.
    So the answer to my question about maxl for exporting/importing the xml version of partition is "no"?

  • Export EDL or XML for seq with speed change

    Hi,
    I am trying to export an EDL or XML of a 30 sec sequence of 10 clips. 5 of them have speed change. Basic speed change, not variable. They are UC 10bit from a DigiBeta captured with a Kona 2.
    The problem is that the exported EDL or XML doesn't get the right clips in and out points for recapture on other systems. Any clue?

    As long as there are speedchanges in the sequence, FCP will screw the EDL timecodes for source clip in/out and position in the timeline....and it's way off.
    And the problem is not with Flame, if I open the XML or EDL in TextEdit, I see the TC mistakes. We do that all the time with the Avid MC and it works very well. Even if the speed changes wouldn't go through, I would expect clips coordonates and in/out to be ok.

  • Export Selection Video Juddery?

    Hello, i am very new to motion and i am currently working my way through chapter 2 of my Apple Pro Training book on Motion 3. Very much enjoying the lessons, a few paragraphs i am not quite sure of but i am sure i will get it later. Anyway, i got to a section on 'Baking' which basically frees up your CPU, followed the book which told me to highlight some layers, file export selection, select import into project then done. But the video that was exported back into the project was very juddery, i even went to the desktop to check the quicktime file that was saved & that was juddering all over the shop also. I also deleted the file & started again but the same. Any ideas or am i panicking over nothing. Cheers, Daz

    OK, open up the movie in QT Player and export it in h.264 with best settings and then see if that is jittery.
    If that is also jittery, it has something to do with the export settings you are using in Motion and I would look at those output settings' FPS.
    If it's not jittery, your Animation codec movie's bandwidth is too big for your system and it's only a playback issue, which means you can go ahead and use it in Motion and when you export out your final movie it will be fine. If you can't live with that, bake it again and try a difference codec, like Apple Intermediate or ProRes or see if h.264 at highest settings is good enough.
    One of the best ways to bog down Motion is to have layers/objects that are no longer on the screen, but are extended out in the timeline and are underneath the stuff on top. To Motion, that stuff is still there and it gets unresponsive, especially with images that have large dimensions. So make sure you clean up your timeline and trim the duration of each layer and object to only when they are on screen.

  • Export Recordest to XML help, please

    I'm trying to display my database info using Spry in CS4. In
    CS3 there was a utility called "Export Recordest to XML" that was
    part of the toolkit, but was also available as a registration
    incentive. Is this functionality now built into CS4?
    I guess what I' m really looking for is a tutorial on how to
    bring data in directly from the database to the webpage. I've seen
    the video of how to do it from a static HTML page, but that doesn't
    help here.
    I've also seen this page (
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html)
    but it doesn't offer any practical info for how to actually
    implement this into a dreamweaver/spry page.
    What is frustrating (aside from my own lack of knowledge) is
    that one of the original raison d'être for Dreamweaver and its
    ancestors, was the creation of dynamic sites from databases by
    people who were somewhat programming challenged.
    Maybe it is all there and I'm just missing it, but I would
    truly appreciate any help.

    RiddleyWalker2 wrote:
    > I'm trying to display my database info using Spry in
    CS4. In CS3 there was a
    > utility called "Export Recordest to XML" that was part
    of the toolkit, but was
    > also available as a registration incentive. Is this
    functionality now built
    > into CS4?
    >
    > I guess what I' m really looking for is a tutorial on
    how to bring data in
    > directly from the database to the webpage. I've seen the
    video of how to do it
    > from a static HTML page, but that doesn't help here.
    >
    > I've also seen this page
    > (
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html)
    but it
    > doesn't offer any practical info for how to actually
    implement this into a
    > dreamweaver/spry page.
    >
    > What is frustrating (aside from my own lack of
    knowledge) is that one of the
    > original raison d'?tre for Dreamweaver and its
    ancestors, was the creation of
    > dynamic sites from databases by people who were somewhat
    programming
    > challenged.
    >
    > Maybe it is all there and I'm just missing it, but I
    would truly appreciate
    > any help.
    Once you have your page that creates the xml, just use that
    link in spry
    as your datasource. Ignore the fact that it doesn't end in
    xml, that
    doesn't matter, as the output content type is xml, so it will
    be treated
    like xml.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

Maybe you are looking for

  • Why animated gif not working in webpage designed in fireworks?

    Hi, I have 2 questions. Pl. consider me a novice in this field, started just 2 days ago. 1. I have designed a website page in fireworks cs5, I have added an animated gif in the page and when I preview in browser or export the webpage.png the animated

  • Problem while testing a BAPI Web Service

    i face this problem in web service bapi when i am carrying out the test... so can anyone help me??? HTTP/1.1 500 Internal Server Error Set-Cookie: <value is hidden> content-type: text/xml; charset=utf-8 content-length: 803 sap-srt_id: 20080610/144609

  • XI have to break/split XML-File into N times a XML Message

    Hello, Can anyone help with this one. I guess this is not an easy exercise but I need to solve it urgently. XI gets a XML-file from a system. This file has N times a element <XBT>. Every time XI gets such a file the number of <XBT> is different. XI h

  • Strange error in requests returning huge data

    Hi Whenever a request returns huge data, we get the following error, which is annoying because there is no online source or documentation about this error: Odbc driver returned an error (SQLFetchScroll). Error Details Error Codes: OPR4ONWY:U9IM8TAC S

  • Query Needed for Partitioning table

    Hi, I have created a table called Test. There is a column named business_name. There are several businesses like ABC,BCD,ADE.... There will be lakhs of rows corresponding to each business, i mean there will be lakhs of entires corresponding to ABC,BC