XML example

I am trying to go a little backwards I realize...but I would
like to add my content to an XML file, then dynamically load it via
the accordion. I used the example and created the following .html:
<!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"
xmlns:spry="
http://ns.adobe.com/spry">
<head>
<link href="SpryAccordion.css" rel="stylesheet"
type="text/css" />
<script language="JavaScript" type="text/javascript" src="
http://labs.adobe.com/technologies/spry/includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript" src="
http://labs.adobe.com/technologies/spry/includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript" src="
http://labs.adobe.com/technologies/spry/widgets/accordion/SpryAccordion.js"></script>
<script type="text/javascript">
var dsFaq = new Spry.Data.XMLDataSet("xmltest.xml",
"faqs/faq");
</script>
<body>
<div id="example1Region" spry:region="dsFaq">
<div id="Acc1" class="Accordion" tabindex="0">
<div spry:repeat="dsFaq" class="AccordionPanel">
<div class="AccordionPanelTab">{title}</div>
<div
class="AccordionPanelContent">{content}</div>
</div>
</div>
<script type="text/javascript">
var a1 = new Spry.Widget.Accordion("Acc1");
</script>
</div>
</body>
</html>
And am using the following basic XML:
<?xml version="1.0" encoding="iso-8859-1"?>
<faqs xmlns="
http://www.foo.com/faq">
<faq id="123456">
<title>What is Haute Secure?</title>
<content>
</content>
</faq>
<faq id="127937">
<title>title 2</title>
<content>
<![CDATA[<p>MYHTMLHERE</p>]]>
</content>
</faq>
</faqs>
But I cannot get CDATA to translate to HTML in the resulting
HTML.
Any ideas?

Yup. You need to tell Spry that that column is HTML
var dsFaq = new Spry.Data.XMLDataSet("xmltest.xml",
"faqs/faq");
dsFaq.setColumnType("content","html);
http://labs.adobe.com/technologies/spry/articles/data_api/apis/dataset.html#setcolumntype
http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
Hope this helps,
Donald Booth
Adobe Spry Team

Similar Messages

  • SDK 4.0.0.5: CM.jar Is Not Copied BUG-cm_jars_structure.xml.example Missing

    Could someone please help me out. I am trying to fix this bug with:
    SDK 4.0.0.5: CM.jar Is Not Copied into the Package To Be Deployed [ID 1315169.1]
    And according to Oracle support I need to:
    Solution
    In SDK version 4.0.0, the cm.jar gets copied only in etc/lib folder. In the target environment it gets distributed by executing initialSetup.sh, which is part of the CM installation.
    The structures/cm_jar_structure.xml should be created for the cm.jar distribution. You can see an example of the structure under the pkg scripts folder: etc/cm_jars_structure.xml.example (it just needs to be copied to structures/cm_jar_structure.xml). The cm.jar will then be copied to the correct locations in the application.
    But I am missing the file cm_jars_structure.xml.example.
    Does some have that file please?

    Hi,
    Here the comment from the FW_jars_strucure.xml.
    <!-- for list_of_AND_conditions all conditions must be true for jar to be distributed       -->
    <!-- for list_of_OR_conditions any of the conditions must be true for jar to be distributed -->
    <!--
       example:
       <jar_name>
          <source_dir_jar>source directory where the jar file is located (mandatory)</source_dir_jar>
          <dest_folders>
             <dest_folder_1>destination 1</dest_folder_1>
             <dest_folder_2>destination 2</dest_folder_2>
             <dest_folder_3>destination 3</dest_folder_3>
          </dest_folders>
          <list_of_AND_conditions>
                <condition_1>SPLWAS=WLS</condition_1>
                <condition_2>DBNAME=TESTING</condition_2>
          </list_of_AND_conditions>
          <list_of_OR_conditions>
                <condition_1>DBUSER=cisuser</condition_1>
                <condition_2>DBUSER=CISUSER</condition_2>
          </list_of_OR_conditions>
          if child jvm path exists, then the jar file from the location specified
          here will be added to class_path (child_jvm_option)
          <child_jvm_path>PATH where jar file is located</child_jvm_path>
          <target_folder>(subfolder under java/target used as basedir for jar creation)</target_folder>
          <copy_classes>true (set to true if during install single fixes the class should just copied to $SPLEBASE/java/target)</copy_classes>
          <update_source_jar>
             <update_source_jar_1>(list here the folder that should be updated in base-shared-${jversion}-src.jar. eg.: source/base)</update_source_jar_1>
             <update_source_jar_2></update_source_jar_2>
          </update_source_jar>
       </jar_name>
       Uncomment the following block for testing
       ensure you have a test.jar under $SPLEBASE/etc/lib
       The jar file will be copied if SPLWAS=WLS and DBNAME=TESTDB and
       DBUSER is either cisuser or CISUSER.
    -->
    <!--
       <test.jar>
          <source_dir_jar>@SPLEBASE@/etc/lib</source_dir_jar>
          <dest_folders>
             <dest_folder_1>@SPLEBASE@/splapp/applications/XAIApp/WEB-INF/lib</dest_folder_1>
             <dest_folder_2>@SPLEBASE@/splapp/applications/root/WEB-INF/lib</dest_folder_2>
             <dest_folder_3>@SPLEBASE@/splapp/businessapp/lib</dest_folder_3>
             <dest_folder_4>@SPLEBASE@/splapp/mpl/lib</dest_folder_4>
             <dest_folder_5>@SPLEBASE@/splapp/standalone/lib</dest_folder_5>
          </dest_folders>
          <list_of_AND_conditions>
                <condition_1>SPLWAS=WLS</condition_1>
                <condition_2>DBNAME=TESTDB</condition_2>
          </list_of_AND_conditions>
          <list_of_OR_conditions>
                <condition_1>DBUSER=cisuser</condition_1>
                <condition_2>DBUSER=CISUSER</condition_2>
          </list_of_OR_conditions>
          <child_jvm_path>@SPLEBASE@/splapp/standalone/lib</child_jvm_path>
          <target_folder>base</target_folder>
       </test.jar>
    -->/Markus

  • XML example for testing query with soapui

    Hello,
    I am trying to build a query using XML with the downloaded Contact Custom.wsdl.
    I did get a msg complaining about that there were no session. I've looked into the Web Services.pdf doc and see the description about session, etc.
    I'd appreciate if I could get a XML example for doing the authentication / session ... If you have a query example would be nice too...
    Txs. a lot.

    Hello,
    Here is a sample QueryPage request for the Contact object containing the UserName and password tokens:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"><soap:Header>
    <wsse:Security>
    <wsse:UsernameToken>
    <wsse:UserName>[username]</wsse:UserName>
    <wsse:Password>[password]</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    <soap:Body>
    <ContactWS_ContactQueryPage_Input xmlns="urn:crmondemand/ws/contact/10/2004">
    <UseChildAnd>true</UseChildAnd>
    <PageSize>100</PageSize>
    <ListOfContact>
    <Contact>
    <ContactId></ContactId>
    <ContactFirstName></ContactFirstName>
    <ContactLastName></ContactLastName>
    </Contact></ListOfContact>
    <StartRowNum>0</StartRowNum></ContactWS_ContactQueryPage_Input></soap:Body></soap:Envelope>
    Thanks,
    Sean

  • XML example file in a comment

    Hi,
    i need to know how to put a little XML example file in a comment. This is what i have :
    * to be consulted. Next you can see an example of a configuration file :
    *<P>
    * blablablablalbablablabla
    *</p>
    * <br>
    * <?xml version="1.0" encoding="utf-8" ?><br>
    * <!-- Comments --><br>
    * <CONF><br>
    * <FONT><br>
    * <FONT_SIZE>11</FONT_SIZE><br>
    * <FONT_TYPE>SansSerif</FONT_TYPE><br>
    * </FONT><br>
    * <THREADPOOL><br>
    * <MAX_POOL_SIZE>30</MAX_POOL_SIZE><br>
    * </THREADPOOL><br>
    * <FIELDS><br>
    * <FIELD_NAME>to</FIELD_NAME><br>
    * <FIELD_NAME>subject</FIELD_NAME><br>
    * </FIELDS><br>
    * <WAIT_TIME>0.1</WAIT_TIME><br>
    * </CONF><br><br>
    I tried using the <code> tag but it does not work. anyone??
    thanks in advance

    TrogDog, thanks for resurrecting this post; it seems all questions about this topic are answered with the idiodic suggestion of substituting character entities for the < and > signs, a rather crude and inefficient way to document code.
    In my case, the <pre> tag did not render at all, however, this minor adjustment worked like a charm:
    <xmp>
    <example>
    <message>no special escaping nonsense</message>
    <hopethishelps>true</hopethishelps>
    </example>
    <xmp>
    Node the change from <pre> to <xmp>, and the removal of {@code}. If you leave {@code} then the < and > will be displayed as character entities, the absolute opposite of the intended effect.
    Thank you for the elegant solution!

  • XML example for GANTT (2004s)

    Hi,
    Does anyone have an XML example for the GANTT component (2004s)? (I mean a data file for plotting a gantt chart.)
    The examples in the documentation apply to other chart types.
    Thanks,
    Roelof

    Hi all,
    there is the new link for the schemas:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/lw/uuid/f010ec31-9658-2910-3c83-c6e62904eceb
    and a little tutorial in Wiki: https://wiki.sdn.sap.com/wiki/x/iTE, where I will provide a little xml sample soon (-;
    kind Regards
    Stefanie

  • Fxstruts and xml example needed

    Hello,
    I'm using fxstruts to bridge to a new flex app. I am using
    secure http and am using the HTTPService request on the client. The
    request goes through successfully (i.e. a logon). Once that
    succeeds on the server I forward to a page which returns some very
    basic user information (name, etc):
    <%@ page language="java" contentType="text/html;
    charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="com.myCompany.actions.HomePageForm"%>
    <%@ taglib uri="/WEB-INF/lib/fxstruts-0.2.jar" prefix="fx"
    %>
    <jsp:useBean id="userInfo"
    class="com.myCompany.actions.HomePageForm"></jsp:useBean>
    <fx:write name="userInfo" type="xml" />
    From stepping via a debugger this fxstruts code is definitely
    being hit. The appropriate attribute, "userInfo" is indeed in the
    request attributes. I've modeled this example after the AMF
    examples provided. However, the client always returns to the fault
    handler on the client with the following error:
    Error: [IOErrorEvent type="ioError" bubbles=false
    cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:
    https://localhost:9444/fieldsales/web/j_security_check"]. URL:
    https://localhost:9444/fieldsales/web/j_security_check
    As more detail regarding my environment, I'm running
    FlexBuilder 3.0 standalone pointing to an IBM RAD 7.5 localhost
    environment. Everything seems to go well: the logon, the forward to
    the fxstruts jsp but the flex client always seems to get this
    error. Thanks for any help.

    I'm hoping I understand what you're doing... I would probably
    do it all in one frame and just toggle the .visible property of the
    subcategory list after the first one has been clicked, but there's
    no rules about how you do it.
    Without being sure, I think what you may have done is put a
    second "copy" of the category list on another keyframe, which
    replaces the previous instance. By taking away the second copy it
    should work. If that's not the case, then I'm stumped... otherwise
    read on.
    So if you have the category list in its own layer, just have
    it in frame one, on frame 2 of the same layer have a frame but
    not a keyframe. This will mean the instance in frame one is
    still the same one when the playhead gets to frame 2.
    And have the subCategory list on a separate layer, it appears
    on frame 2...
    BTW the .getSelectedItem() method of the list reminds me of
    flash mx... is that the version you're using (curiosity only I
    don't think its relevant, because its obviously working).

  • I can't to download xml example application PRODUCT CATALOG

    Hi, i'm a registered user, but i can't to download sample product catalog, http://www.oracle.com/technology/tech/xml/xdk_sample/ProductCatalogSample.html
    Please, give me advise - how to download it!
    Thanks

    Thank YOU!!!!!!!!!!!
    Can you also give links to next examples:
    * customer managment application sample and employee managment information using xsql and building product orders
    *Employee Information Management using the XSQL page publishing framework
    *Building Product Orders with New Oracle9i Database XML Features and the Oracle9i XDK
    http://www.oracle.com/technology/sample_code/tech/xml/index.html

  • File adapter XML example

    Hi,
    can anyone supply me with an xml and xsd example that works?
    thanks
    amit

    hi amite,
    i've e-mailed you an example. In the example i used a bpws:getVariableData to obtain the message type, but a straight assignment would also work so long as you get the message type and not its child, see Re: xpath expression is empty for input XML file - Help!!!

  • XML example please

    hi,
    i've read lots of threads about storing data in xml file but all i saw was links to tutorials and some advices. Could somebody post at least a small example, please?
    And what i need to store in my xml file is data from several comboboxes and textfields.
    Thanx in advance.

    plz, provided xml using java standalone application source codes.

  • CP-7970G (SIP70.8-0-3S) SEP mac .cnf.xml example, more info needed

    www.trixbox.com provides a (working) example of a SEP<mac>.cnf.xml file (see attachment).
    I would appreciate ANY explanation on some of the tags or any information on other tags.
    Please note that you'll need to change some of the fields in the attached example.
    Jan Willem
    IPtelligence

    www.trixbox.com provides a (working) example of a SEP<mac>.cnf.xml file (see attachment).
    I would appreciate ANY explanation on some of the tags or any information on other tags.
    Please note that you'll need to change some of the fields in the attached example.
    Jan Willem
    IPtelligence

  • FileInbound.xml example for OFFSET to XML transforming

    Hi there.
    In the B1iSN 2007 Guide - 04 Connectivity (chapter 6.6, in the FlatFile Connectivity part)  an example of FileFormat.xml file is given that explains how to rewrite the xml outbound file to an offset format.
    It seems that the FlatFile Connectivity Package is also able to manage different formats (xml, csv, offset) for InBound files too.
    Is this correct ?
    Is there any documentation available explaining how to  write the expected
    /com.sap.b1i.datasync.directory/ Ext.META.File/FileInbound.xml
    needed to transform an offset format file to an xml file ?
    Thanks for the help.
    Regards.
    Christophe Ramon
    Edited by: Christophe Ramon on Sep 17, 2010 8:38 AM

    Dear Motty
    Thanks a lot for your return.
    I checked in the B1iSN Guide - 04 Connectivity I have but didn't find any 6.5.2 chapter in it   
    Since my guide is corresponding to 2007 version, I guess that the 6.5.2 chapter you are talking about is available in the new 8.8 version guide. Our company having just been accepted in the ramp up process for this new 8.8 version, I should be able to download this new guide then. I'll check and let you know.
    Thanks again for your help !
    Kind regards.
    Christophe

  • How create XML example file from DTD

    Hi,
    I'm using for good tips/solution (I didn't find anyone) how to create example xml from existing DTD?
    Best Regards,
    Rafal

    Various tools are available generate an XML document from a DTD.
    http://www.eclipse.org/webtools/community/tutorials/XMLWizards/XMLWizards.html
    http://www.altova.com/products/xmlspy/dtd_editor.html
    http://www.stylusstudio.com/xml_generator.html

  • XML example templates

    Hi
    Is there a repository where people have posted example XML publisher rtf templates that are designed for standard Oracle reports? Would be useful if someone has one for customer listing.
    Regards, Marty

    > don't know of any built-in support in xpand. But StringEscapeUtils from
    > Apache Commons Lang Supports such stuff.
    Thanks,
    String xml(String xml) : JAVA
    org.apache.commons.lang.StringEscapeUtils.escapeXml(java.lan g.String);
    does the trick. I guess there isn't a way to tell xpand to apply such a function for every
    value that goes into the output document? (writing «somevalue.xml()» for each and every
    value is redundant and errorprone as it might be forgotten failing only one day where you
    have a '&' char in the model data)
    - Ralf | http://www.ralfebert.de/

  • HIS 2013 HISServerConfig.xml example location and unattended install question

    Hello,
        I've never used the unattended part of the installer but wanted to give it a try.  The installation guide refers to an example in the support\unattended_installs folder.  I don't see that folder or file on the media I down loaded. 
    The guild also instructs to "save" the configuration during setup to create my own xml.  I didn't see a "save" but tried using an export during my test unattended install but that didn't work.  I would appreciate any help/information.
    Thanks, Jim.

    Hi Jim,
    you are right. Unlike stated in the Installation guide this folder doesn't exist.
    Anyway, here it goes:
    When you install HIS the latest Setup/configuration screen will provide a link to create a XML file. Anyway, exporting the XML file out of the configuration utility will create the reference XML of your current installation and configuration.
    You may modify the XML file according to the required settings of your new Server by changing the subdomain name, role,  etc....
    Also please note that we do not store the password in the XML file for security reasons, so you need to add this manually.
    Once done, please run a similar command according to you settings as below:
    Setup.exe /InstallPlatform /L c:\HISInstall.log /S c:\HISServerConfig.xml /INSTALLDIR C:\HIS Configuration.exe /L c:\ConfigFramework.Log /S c:\HISServerConfig.xml
    Options
    The following table describes the command options.
    /InstallPlatform
    This flag causes the installation program to install any platform prerequisites.
    /L c:\HISInstall.log
    This flag determines the log file location that is created during setup.
    /S C:\HISServerConfig.xml
    This flag specifies the configuration file (list of features) that is used on installation. The file "HISServerConfig.xml" contains information about which features to install and how they should be configured. Sample copies of these files are located
    in the Support\Unattended_Installs directory of the installation folder. This file can also be created during setup by clicking Save in the summary panel of the Configuration Tool.
    /INSTALLDIR
    This option tells Setup where to install the product.
    The Setup.exe installs all required binaries according to you reference installation while the configuration.exe configures you HIS Server the same as the reference configuration.
    Hope that helps
    Manfred Mittermüller
    -- MSFT --

  • CIM XML Examples for Importing Service Item Data

    Use these simple XMLs to edit and create your CIM file to import SI Data...
    The Lifecycle Center guide provides all the instructions on how to create the CIM XML for importing Service Item data - the attached examples can be used as a starting point for you to use.
    The "Host Policies" example provides the format for a single service item
    The "System Policies Approvals" example provides the format for multiple service items
    Note the image below taken from the LCC guide to capture the correct data type that must be used in defining each SI attribute in the XML.

    maybe I'm being a bit slow on the uptake, but I've tried and tried and none of my XML files will import, they always stop at 'Class Not Recognised'.
    I had originally assumed the class was the SI type - does anyone have any information about this?
    Thanks, meghan

Maybe you are looking for