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

Similar Messages

  • 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

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

  • Create virtual recordset from XML

    I'm searching a extension that give the possibility to create a virtual recordet from a XML file.
    Interaktonline had an extension called "XML Import-Export" but isn't compatible with php 5.3 and require Dreamweaver 8.
    Any ideas how can I resolve this my problem?
    Thanks

    I haven't read it, but you might find this helpful:
    http://www.adobe.com/devnet/dreamweaver/articles/xsl_overview.html
    It was written by Marius Zaharia when he worked for InterAKT (now Adobe Systems Romania). The XSL Transformations server behavior was actually created by InterAKT before it was acquired by Adobe.

  • Recordset xml export WITH html tags

    Hi there,
    I am trying a rather simple thing (I hope) but cannot figure it out how to do it.
    I created a dynamic xml (.php) file using the export recordset as xml behaviour. The generated xml works fine when I use spry to display it. The downside is that html tags are converted to something like this (I understand that these are the greater then and lesser then signs used in html):
    <strong>fringilla</strong>
    In the html document where I use spry to display this xml, the < etc are converted back to <  and >, but the html is not rendered.
    I tried cdata, but somehow cannot get this to work. I also cannot get dsSpecials.setColumnType("quote_tekst", "html"); to render the xml as correct html.
    Can someone tell me how to do this? Database and xml are both utf-8.
    Kind regards and big thanks in advance if you can help (it is really appreciated ;-D),
    Ben

    Sorry about that, don't know what happened in that last post..formatting I guess, here's the whole reply - xml enclosed w/ a pre - thanks again.<br /><br />Hi Günter,<br /><br />Thanks so much for the info.  I have been diligently trying to use CDATA and read the generated XML, but still I'm not seeing the HTML text rendereed in my detail section.<br /><br />The XML is setup from my mySQL data as:<br /><pre> <br /><?xml version="1.0" encoding="UTF-8"?><br /><CurrentSpecials><br />     <special><br />          <name> Caribbean Sun </name><br />          <detail> <h1>special deal!!</h1><p style="color:#00f;"><strong>Join us</strong>!</h1> </detail><br />          <expire> 2007-08-31 00:00:00 </expire><br />          <rating> highest </rating><br />     </special><br />...<br /></pre><br />and I want the detail to render in my div (or I'll add a table/textarea...) as the html indicates.  I'm not having any luck w/ using CDATA for it - it's probably just me - I'm just starting out with this stuff.  Any pointers in the right direction? I'm getting the detail as {dsList:detail} and somehow need to say - this is html.  I've tried using javascript and php to render it.<br /><br />I could I guess just echo the detail on a mouseclick without a spry but didn't want to have to do all the implementation myself - I wanted to take advantage of dreamweaver's functionality! <br /><br />Thanks so much for looking at this - any help is so much appreciated!!

  • SPRY XML Dataset Get Schema

    Currently when I try and add a SPRY XML Dataset and hit the Get Schema button I get "Unable to locate or parse the XML Source (-1,-1). I created the XML from the Export recordset to XML tool in the Developer Toolbox. I can't seem to figure out what I am missing. Anyone else having this problem as well. It use to work then I think my system did some update from Adobe and since has stopped working. Any assistance is greatly appreciated. Thanks.

    Hello,
    The error usually means that the XML source that you choose within Spry XML Data Set interface is not valid.
    So you should check the XML source to see if it returns a valid XML.
    Regards,
    Ionut

  • Developer Toolbox XML-Export

    Hello,
    to use html-tags in XML, I have to use a CDATA-Section.
    Unfortunately, the Export Recordset As XML dose not support
    CDATA, and converts <, >, &, " to htmlentities.
    I rewrote the "XMLExport.class.php"-File from Line 195 to 207
    like this:
    195: // $value = str_replace(array('&', '>', '<',
    '"'), array('&amp;', '&gt;', '&lt;', '&quot;'),
    $value);
    I don't want to replace '&', '>', '<', '"' by
    default
    199: $row .= str_replace(array('&', '>', '<', '"'),
    array('&amp;', '&gt;', '&lt;', '&quot;'), $value);
    But I have to replace '&', '>', '<', '"' when I
    want to export as ATTRIBUTES.
    203: $row .= '<' . $colName . '><![CDATA[';
    204: $row .= $value;
    205: $row .= ']]></' . $colName . '>';
    Now I put the CDATA-Section arround the value, when I export
    as NODES.
    Maybe in the future there will be a checkbox inside the
    behavior to select using CDATA.
    Hope this is helpful
    Arne
    Lines Line 195 to 207:

    Hi,<br /><br />-----<br />I need the xml to look like this:<br /><br /><location address="701 first street, Sunnyvale, CA"><br /><br />How do I do this?<br />-----<br /><br />just select "export columns as: Attributes" in the Advanced tab<br /><br />Cheers,<br />Günter Schenk<br />Adobe Community Expert, Dreamweaver

  • Exporting xml

    Is it possible to export a xml of my filled form if I have a xsd file in a data connection and had previously imported a different xml?<br /><br />Let me explain:<br /><br />I have a dynamic form, with a data connection to a xsd that describes a list of products with their prices:<br /><br /><?xml version="1.0" standalone="yes"?><br /><xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><br />  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="pt-BR"><br />    <xs:complexType><br />      <xs:choice maxOccurs="unbounded"><br />        <xs:element name="Table1"><br />          <xs:complexType><br />            <xs:sequence><br />              <xs:element name="product" type="xs:string" minOccurs="0" /><br />              <xs:element name="price" type="xs:decimal" minOccurs="0" /><br />            </xs:sequence><br />          </xs:complexType><br />        </xs:element><br />      </xs:choice><br />    </xs:complexType><br />  </xs:element><br /></xs:schema><br /><br />I import a xml with the list of products, use it to populate my form, and fill out my form with other things.<br /><br />The problem is that i can't get my form to export the xml of my filled form. It exports the same xml that I have previously imported. How can I do to get my form to export the complete xml of my filled form?

    Hi James,
    >>
    I know you must think I'm incredibly stupid
    >>
    by no means, this is indeed a tricky matter, and also I still feel like having to keep fighting it out, as this is a rather unknown territory to me as well.
    However, the PHP file containing ADDT´s "Export Recordset as XML" behaviour can be previewed in a browser and will display the XML structure & exported data correctly -- but this alone won´t give you an instant "ready for consumption" result, because you´ll first need to use your browser to save the currently displayed page as an XML file and store it on your server for re-use with e.g. SPRY
    Because of this required intermediate step you can´t expect *this* exported data to be "dynamic", means you´ll get static data after all, which would require a manual "save as..." update everytime you preview it in a browser
    But :: what you *do* get in the same time, is a file containing the correct XML structure incl. the correctly named nodes and all -- and *this* structure is what you can use as basis for creating a truly dynamic XML file
    (can in fact be a .php file, as long the XML syntax is correct) using the steps explained in the Developer Center link I gave you.
    Better now ? ;-)
    Günter Schenk
    Adobe Community Expert, Dreamweaver

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

  • Spry menubar and nested xml

    I'm need some help to create a nested spry menu. I use a xml
    file dynamically created

    yes and no, the problem is when I create the xml file from a
    DB whit export recordset as xml I get a xml file structure looking
    like this
    menu1
    submenu1
    menu2
    submenu2
    instead of
    menu1
    submenu1.1
    submenu1.2
    menu2
    submenu2.1
    menu3
    menu4
    Is the a way to make the xml file this way from a DB. My DB
    looks like this (mySQL)
    topic table
    id_top
    name_top (menu item)
    article table
    id_art
    name_art (submenu)
    content_art

  • Issue with split of file

    Hello SAP Gurus,
    I have file to multiple idoc scenario , where i am not using any message mapping or FCC.
    However the file size is huge (60 MB) , so i want to divide the data and process it.
    So can i use the advanced mode of sender file adapter and use " data sent in chunks "  or shall i go ahead with Record set per-message.
    Can you pls provide some links for the configuration of this.
    Regards,
    Ravi

    Actually, i am receive the XML IDOC and want to use recordset for XML file .. is it possible ?
    you can use port type is " XML Port " , that is used to convert IDOC into Xml format .
    step by step please refer below doc :
    http://www.****************/Tutorials/ALE/IDOCToXML/IDOCToXML.htm
    Second question is , if i want to divide the file before it comes to PI for processing, then how can i do it ?
    might be that is possiable with  Message Packaging concept.

  • Ghosts in the Spry Dataset Wizard

    I've been struggling all day with a very peculiar problem. I have a php file with the "Recordset to XML" server behavior applied. I also created an XML file from this. Then, on another page, I tried to make a dataset, taking the information from the php file and using the xml  file for the design time feed. I also put a table in the page. But everytime, when I came out of the wizard, it replaced the path to the source php file with a path to the xml file. I would then change it in the code of the page and open up the dataset wizard and it would have changed the source file to the xml file! I've gone round and round. And yet, although I've done this before but now successfully, I cannot stop the dataset wizard from changing it today.
    I've even gone to the code and changed the source file to what is correct and then uploaded the file but it still can't find the the source - and when I get back to DreamWeaver, I see that the dataset wizard has changed the source file back to the xml file again.
    I've been struggling with this for 9 hours and am giving up in disgust. If anyone can help, I would be so grateful!

    Hi Ben,
    Yes, I can which makes it even weirder!! It's just so strange that the dataset wizard just recodes the page no matter what I do.
    What I get now when I come to the page that should have the dataset (and this is something new) is the headers on the spry table but no data.
    Another thing is that when I created the xml from the php page, I just chose two of the fields to export. And yet when I am using this as a design feed, it sees all of the fields from the recordset so it doesn't seem like it really is using the local xml file as a design feed since that has only the two fields. Maybe I should go through and not filter out the fields when I create the xml from the php and just filter in the table. Although that shouldn't be the problem. And I still don't know why no matter what I input into the dataset wizard, it will change the code to something else when I exit it.

  • Com.sap.aii.messaging.adapter.trans.TransformException:'java.lang.NullPoint

    Hi, This is Prasad
    We are using 7.0 with SP15, i am using MTB module at receiver side ,we are getting following error.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.NullPointerException'; nested exception caused by: java.lang.NullPointerException
    And we are passing following FCC Parameters
    Transform.Class = com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType = text/xml;charset=utf-8
    xml.Record.fieldFixedLengths
    xml.Recordset.fieldSeparator
    xml.conversionType= StructXML2Plain
    xml.recordsetStructure  = Recordset,Record
    Please help me out ASAP

    Hi Stefan,
    I am a little bit confused with the parameter "Transform.ContentType".
    According to your post it should be "TransformContentType" but the document has not yet been updated. At least when I search within SDN for the document I still get the old version with the dot.
    In addition there is OSS note 1131655 from September 2008 (pretty new) and there SAP still refers to parameter "Transform.ContentType".
    So, I assume the parameter with the dot is the correct one, right?
    Klaus

  • Output Flatfile Conversion

    Hi All,
           I am doing Flatfile to Flatfile scenario.My input format is like ID,Name,Address.I want to get the output which should be same like Input format but through mapping.I am using J2SE file Adapter in both sending and receiving side.I am getting output in Flatfile but with only one field that is "ID".I am not getting the remaining fields i.e., Name and Address in my output flatfile.
    My input structure from SXMB_MONI is 
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_FCC1 xmlns:ns="namespace">
    - <Recordset>
    - <Data>
      <ID>100</ID>
      <Name>X</Name>
      <Address>Y</Address>
      </Data>
      </Recordset>
      </ns:MT_FCC1>
    Content Conversion Parameters which i have specified at receiver side is
    xml.recordsetStructure=Recordset,Data
    xml.addHeaderLine=0
    xml.fieldSeparator=,
    xml.endSeparator='nl'
    Can anyone suggest me what to do ASAP?
    Thanks in Advance
    Dinakar

    Hi Dinakar,
    U should use it like this
    Recordset Structure :- Recordser,DATA
    DATA.addHeaderLine=0
    DATA.fieldSeparator=,
    DATA.endSeparator='nl'
    insted of
    xml.addHeaderLine=0
    xml.fieldSeparator=,
    xml.endSeparator='nl'
    chk this link
    Re: file2file receiver side
    Sachin
    Message was edited by:
            Sachin Dhingra

  • Newbie question about datasets

    Say I wanted to use data from a recordset from an asp page
    from an access database for the dynamic table, would the data have
    to be made into an xml file first? or what? If so anyone know of
    some good articles on turning access database tables/querys or
    recordsets into xml? I'll real new to all the xml stuff, it look
    great, but I just do not see the benefit unless you can some how
    right it on the fly

    so once you get your specific data base info set up, in it
    -db connection info
    -sql statement
    If you are using the manual mode, set up your required node
    names.
    If you are using the automatic version, just get up the db
    info and go.
    then you can use it directly in your Spry page.
    var ds1 = new Spry.Data.XMLDataSet("yourXML.asp","root/row");
    and then build your page from there.
    You don't have to output a static XML file from this. Spry
    takes any page that generates XML.
    I am not sure how most people build RSS feeds or otherwise.
    Some make static files, some build static files from databases.
    Just depends.
    If the info is going to be mostly unchanging, a static file
    would work.
    If it is going to change often, a database driven file would
    be a better choice. Just depends on your needs. People have XML
    files with thousands of records or just a few. It comes in all
    types.
    So once your ASP page is set up, you should be able to browse
    to it and see the valid XML tree.
    Let us know if you have more questions.
    Don
    Then set up your dataset using that page directly and off you
    go.

Maybe you are looking for

  • How to have an Oracle procedure send and receive value from a java program.

    The below procedure is place inside a package. This procedure "get_extract_ready_headers " is selecting columns store_number, terminal_number, tran_number, tran_date, cust_id from the source REX_HEAD_EXTRACT table. This information is selected into a

  • Albums in Itunes

    Hi! I have a strange problem... When I look for ALBUMS in my ipad, it appears as if I had many different albums with the same name. Just to give an example... There are 6 "The While Album", each with a few songs (random). If you combine all of them,

  • Constant PDF Problems

    I have had multiple problems with my Toshiba LX835-D3300 when it comes to pdf files and opening some programs. Twice now it will not open .pdf files, it acts like its going to and then just constantly stays at the screen and says not responding. The

  • Buttons quit working

    I'm adding buttons (that open other Captivate tutorials) to the end of my tutorials. If the user doesn't click the buttons pretty quickly they quit working. They highlight and look like they're being clicked, but they don't open the programmed projec

  • Captivate 4 - audio editing issue (distortion heard once published)

    Hi -- I am working on a 17 minute movie with audio on each page (total project size about 60mb).  I recorded the audio outside of Captivate and imported the .wav files (for some reason the .mp3s sounded too tinny).  When I started the project in Nove