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

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.

  • 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);
    > ?>
    >

  • Recordset to XML

    Now that I'm using CS5, I see that the developer toolbox is no longer available. As such, I'm wondering what others are using to export recordsets to XML. I know that I can do this manually with some code, but I wondered if there is a new way in CS5 that I'm missing or a preferred extension.
    Thanks for any suggestions.
    J

    Rest assured the preferred method is to do this manually with some code.
    http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html

  • 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

  • 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>

  • 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

  • XML Tutorial doesn't work

    I tried the one xml tutorial listed under http://otn.oracle.com/sample_code/tutorials/xml.html and I got the error:
    XMLNormalization.java:1: Package oracle.xml.parser.v2 not found in import.
    import oracle.xml.parser.v2.*;
    ^
    .\MyDocumentBuilder.java:2: Package oracle.xml.parser.v2 not found in import.
    import oracle.xml.parser.v2.*;
    ^
    .\MyDocumentBuilder.java:4: Superclass DocumentBuilder of class MyDocumentBuilde
    r not found.
    public class MyDocumentBuilder extends DocumentBuilder
    ^
    3 errors
    I believe the problem is that it can't find xmlparserv2.jar, which seems to be packed up in an ext directory as xmlparserv2.jar!_1076361799.ojpd. Must be some proprietary compression format. Let me know when you have something that works with java or an example that explains how to unpack your proprietary format.
    Regards

    Yes, you are true : the xmlparserv2.jar is missing from CLASSPATH in your environment.
    If you have installed Oracle9i JDeveloper, then the xmlparserv2.jar is available at JDEV_HOME\lib\ directory.
    If you are not using Oracle9i JDeveloper, then you need to download Oracle XDK for Java at location http://otn.oracle.com/software/tech/xml/xdk_java/content.html
    This is specified in Required Software Section of the tutorial. After downloading the Oracle XDK (xdk_java_9_2_0_5_0.zip for windows or similar for windows), unzip/unjar the zip file.
    You can find xmlparserv2.jar file as part of the unzipped version of xdk_java_9_2_0_5_0.zip or similar equivalent on Unix.
    You need to embed xmlparserv2.jar as part of the CLASSPATH.
    Please let me know if you need any other help.
    Thanks
    -- Umesh

  • 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

  • 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.

  • Anyone using PDDocExportUserProperties for exporting PDF to XML

    Hi,
    Anyone using PDDocExportUserProperties for exporting PDF to XML. I am using Adobe PDFL 9.0 to do the same. However, do not find any sample programs or tutorials.
    Please anyone have any samples, do provide.
    -Abhi

    > PDDocExportUserProperties
    Where did you find this method? It's not listed in the PDFL API Reference for 8.1 or 9.

  • Access - can't export schema to xml

    omwb 10.1.0.4
    windows 2000 work station.
    can't export schema to xml.
    waited for an hour and the omwb2000.mde just hung there with no response.
    while with 10.1.0.2 it only takes several seconds

    hi hilary,
    I've noticed that another instance of access was up.
    But it's not minimized.
    And I've also noticed that omwb created three temp tables in the source mdb.
    ( all starting with '_'. can't remember the names. maybe acctables, acccolumns etc )
    And the source schema data was stored in the temp tables above.
    Then the access instance opening source mdb seems hanging somewhere waiting for something.
    And the omwb2000.mde seems to be waiting for the other instance to end.
    I don't know whether the source mdb has any security settings.
    ( omwb doc doesn't tell me the way to check that)
    But I did the import which omwb doc said will eliminate secure setting problem.

  • Multi channel audio not exporting from fcpx xml as mono to logic always comes in a mixed surround

    I have a long edit cut with 24 bit multi channel wav files (i.e 6 microphones on separate tracks but in a single wav file.)
    This is very a very common production practice.
    when i import into fcpx it defaults to seeing the files as surround. I change this to mono so i can mix and spit the audio between each mic.
    The last step in the edit is to hand the mix off to the sound designer in logic.
    however no matter how i export the xml file for logic. it always comes in as a surround file again instead of mixed mono files.
    it shows up in logic as 6 tracks but all but generally only the top track has a mono mix of all 6 and the rest are blank.
    it shows that all 6 are seen as 5.1 surround indicated by the icon.
    interestingly if i just import the file directly into logic it comes in as 6 mono files. (the icon for mono showing and all are separate microphones)
    Any ideas on how to get fcpx not to export the audio xml as surround? (it seems that it is locked to that on import no matter how i modify after)

    Ok so i order to help anyone who is interested.
    The only ironic solution to this problem i found was to use a plugin called xto7 to convert the xml to the old fcp7 format.
    i then imported this into premiere pro.
    this was then able to export an OMF that when imported into logic 10 that was using the correct 6ch mono setting as separate tracks.
    Insane but it works until Apple fixes the incorrect meta data import in FCPX that sets the xml export to the default import that is always surround.
    this is the only way i was able to send stems with all the edit points and fades for the sound editor.
    If you don't have premiere lying around you maybe able to do it with fcp7 too we just didn't have it in this studio.
    Fingers crossed Apple fixes the fcpx xml export.

  • Export data to XML from JSP possible?

    I have a small JSP to retrieve data in a Browse form. Is there information on how to save information retrieved in a Browse (or Edit) form to XML output in order for a spreadsheet application (e.g. Excel) to pull up the data? I have not noticed this in the help files. Are there sample codes examples that illustrate this?
    Is exporting data to XML even possible using JDeveloper 9.0.3?

    You can call write XML on your ViewObject to get an XML representation.
    If you are using IE you can change the content type for a page to :
    <%@ page contentType="application/vnd.ms-excel" %>
    This will open excel within your browser. It seems to deal nicely with any data in the page that is formatted in HTML <table> elements.
    Matt

Maybe you are looking for

  • Change price in material master

    Dear Experts, May I know how we can change std. price that maintained in material master. I believe t/code MR21 use to change price for MOP (moving average price) but I'm not sure for std. price. *Please assist me how we can use MR21 & what are the i

  • Alternative For Select Queries

    H All, Is there a way to extract sales doc. number of corresponding billing doc. number with out using select query in a report?

  • Scanning, faxing and copying

    i am unable to scan, fax or copy more than one page without getting a printer jam.  i have used the Scan Doctor and  went thru the process of clearing any torn bits of paper or anything causing a jam.   What can i be missing?

  • List coercion question?

    How can I turn a list like this (with 2 or more items): {"58347-22", " 59315-10"} into a list of items like this: {"58347", "59315"} In other words I want to use the "(text -1 thru (offset of "."???) on each of the items. How can I do this? Pedro G5

  • Webserver on VMS server stops working

    Folks, I just deployed VMS with the latest release and service pack level. I am unable to see the event viewer of IDS MC as it complains about apache not working correctly, is it a BUG? or may be my log files are too big?? If i reboot the VMS server,