XML help wanted

wrote a code to generate the an .xml file. It doesnot work.
Can any one find any mistake in the code.
code:
===============================
<cfquery datasource="Arunatest1" name="update">
select * from emp where deptno=10
</cfquery>
<cfxml variable="POXML">
<cfoutput>
<Productrequested Name="Test"
PODATE="#Dateformat(now(),"mm/dd/yyyy")#" Supplier="UMUC web apps"
SupplierName="Aruna"></cfoutput>
<Itemdetails>
<cfoutput query="Update">
<TaID> #emplid# </TaID>
<StuID> #deptno# </StuID>
<SSAN> #Name# </SSAN>
<Stu_Last> #City# </Stu_Last>
</cfoutput>
</Itemdetails>
<Productrequested>
</cfxml>
<cfoutput>
<cfset XMLTextForFile=ToString(POXML)>
<cfset varFile="..\student.xml">
<cffile action="write" file="#varFile#"
output="#XMLTextForFile#">
</cfoutput>

Bob,
I need some more help.
When I run the cfm file it is supposed to write each record
to the attibutes in xml. But it repeats the emplid of all the
records in the first itemdetail's emplid tag. It repeats for all
the attributes of the record. There are 6 records in the database.
For the second record, except for the first record in the database,
it displays all the other 5 records.
Do you have any idea? Any help is appreciated.
===============xml output======================
<?xml version="1.0" encoding="UTF-8" ?>
- <Productrequested Name="Test" PODATE="12/24/2008"
Supplier="UMUC web apps" SupplierName="Aruna">
- <Itemdetails>
<TaID>123 124 125 126 127</TaID>
<StuID>10 10 10 10 10</StuID>
<SSAN>Shilpa Aruna Sheila Cat Tom</SSAN>
<Stu_Last>Landover Greenbelt Silver spring
Silverspring Silverspring</Stu_Last>
</Itemdetails>
- <Itemdetails>
<TaID>124 125 126 127</TaID>
<StuID>10 10 10 10</StuID>
<SSAN>Aruna Sheila Cat Tom</SSAN>
<Stu_Last>Greenbelt Silver spring Silverspring
Silverspring</Stu_Last>
</Itemdetails>
- <Itemdetails>
<TaID>125 126 127</TaID>
<StuID>10 10 10</StuID>
<SSAN>Sheila Cat Tom</SSAN>
<Stu_Last>Silver spring Silverspring
Silverspring</Stu_Last>
</Itemdetails>
- <Itemdetails>
<TaID>126 127</TaID>
<StuID>10 10</StuID>
<SSAN>Cat Tom</SSAN>
<Stu_Last>Silverspring Silverspring</Stu_Last>
</Itemdetails>
- <Itemdetails>
<TaID>127</TaID>
<StuID>10</StuID>
<SSAN>Tom</SSAN>
<Stu_Last>Silverspring</Stu_Last>
</Itemdetails>
</Productrequested>
=====================================
============CFM file============================
<cfquery datasource="Arunatest1" name="update">
select * from emp where deptno=10
</cfquery>
<cfoutput query="Update">
<TaID> #emplid# </TaID>
<StuID> #deptno# </StuID>
<SSAN> #Name# </SSAN>
<Stu_Last> #City# </Stu_Last>
</cfoutput>
<cfstoredproc datasource="Arunatest1"
procedure="aruna.Su_pkg.Su_fnc">
<cfprocresult name="SUResult">
</cfstoredproc>
<cfxml variable="POXML">
<Productrequested Name="Test"
PODATE=<cfoutput>"#Dateformat(now(),"mm/dd/yyyy")#"</cfoutput>
Supplier="UMUC web apps" SupplierName="Aruna">
<cfoutput query="Update">
<Itemdetails>
<TaID> <cfoutput> #xmlformat(emplid)#
</cfoutput></TaID>
<StuID> <cfoutput> #xmlformat(deptno)#
</cfoutput></StuID>
<SSAN> <cfoutput> #xmlformat(Name)#
</cfoutput></SSAN>
<Stu_Last> <cfoutput> #xmlformat(City)#
</cfoutput></Stu_Last>
</Itemdetails>
</cfoutput>
</Productrequested>
</cfxml>
<cfoutput>
<cfset XMLTextForFile=ToString(POXML)>
<cfset
varFile="D:\WebSites\WebServices\Aruna\student.xml">
<cffile action="write" file="#varFile#"
output="#XMLTextForFile#">
</cfoutput>

Similar Messages

  • NullPointerException when parsing Xml.Help Wanted

    Hi,
    I tried running your code,but am getting NullPointerExcpetion...Could somebody please help me out.
    Srinivas, Mark could you please help me out.
    thanks in advance
    --------from createUser--code-----
    String simpleUserString = "<?xml version = '1.0' standalone = 'yes'?>\n"
    + "<SimpleUser>\n"
    + " <UserName>"+userId+"</UserName>\n"
    + " <Password>"+userId+"</Password>\n"
    + " <HomeFolderRoot>/home</HomeFolderRoot>\n"
    + "</SimpleUser>\n";
    System.out.println("Parsing "+simpleUserString);
    //invoke the XML parser for creating the new user
    StringReader userDefinition = new StringReader(simpleUserString);
    //here I am using IfsParser as SimpleXmlParser has been deprecated..
    IfsXmlParser xmlParser = new IfsXmlParser(ifsSession);
    xmlParser.parse(userDefinition,null,null);
    null

    Please post the stack trace from a debug environment...

  • I replaced my printer. Now Itunes help wants to print to my old printer. How do i change the printer in Itunes?

    I replaced my printer with an newer printer. Now itunes Help wants to print to my old printer.How do I change Itunes to print to my new printer?

    Sorry, It was not Itunes. My laptop had reverted back to my old printer.

  • XML Helper Packages

    I've installed the XML Helper packages from Steven Muench's "Oracle XML Applications" but when I try to use the xmldoc pacakge to insert XML into the xml_documents table I get the following eror:
    ERROR at line 1:
    ORA-20103: Null input is not allowed
    ORA-06512: at "SYSTEM.XMLDOM", line 35
    ORA-06512: at "SYSTEM.XMLDOM", line 533
    ORA-06512: at "XMLWORK.XML", line 99
    ORA-06512: at "XMLWORK.RECORDGAME", line 62
    ORA-06512: at line 1
    Any ideas what went wrong???

    the code examples from the book can be downloaded from this site:
    http://www.oreilly.com/catalog/orxmlapp
    succes, Bart

  • AS3 and XML, HELP!

    Hi
    I have no idea where to post this, so pls forgive me if im in the wrong place, but I have an Assessment due tomorrow, I'm only 4 weeks knew to AS3 and Flash, and confused as, so pls forgive me if i also look silly asking this question.
    The issue is loading data from an XML file and having it present in a Flash website. Its a book review thing (i've altered the XML and AS3 for posting here so please bare that in mind), so the XML looks a little like this
    <books>
        <book>
            <bookName>The Monsters</bookName>
            <genres>
                <genre>Thriller</genre>
                <genre>Crime</genre>
                <genre>Comedy</genre>
            </genres>
            <description>about the mummies.</description>
            <image>mummies.jpg</image>
            <reviews>
                <review>
                    <date>16/07/2011</date>
                    <name>unnamed</name>
                    <info>
                        <rating>5</rating>
                        <why>blah blah</why>
                        <theGood>it was good...</theGood>
                        <the Bad>it was bad…</theBad>
                    </info>
                </review>
            </reviews>
        </book>
    <books>
    but each Book has multiple reviews, i've just shown you one. Anyway, i need to present this information in 3 dynamic text fields when a book is selected in my ComboBox… after a lot of trouble i got the basics of it. So in the Genre box the genres will display, and in the Description box the description will display, and in the Review box i can get all the information, but only with all the tags. I need it to display without any tags, it would be wonderful if i could figure out how i could put date, name etc in front of that information as well, but I cant even begin to figure that one out.  For the life of me i cannot figure it out. below is the code I have so far:
    //Load XML
    var booksXML:XML = new XML();
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest("gigGuide.xml");
    loader.addEventListener(Event.COMPLETE,loaderOnComplete);
    loader.load(request);
    function loaderOnComplete(event:Event):void
       booksXML = new XML(event.target.data);
       var books:Array = new Array({label:"Select a Book"});
       for each (var book:XML in booksXML.band)
          books.push({label:book.bookName.toString(), data:book.description.toXMLString(),
                     infoLocal:book.genres.genre.toString(), infoDate:book.reviews.review.toString(),
                     infoImage:book.image});
       bandCB.dataProvider = new DataProvider(bands);
    //ComboBox changeable
    bookCB.addEventListener(Event.CHANGE, changeHandler2);
    function changeHandler2(event:Event):void
       genre_txt.text = ComboBox(event.target).selectedItem.infoLocal;
       description_txt.text = ComboBox(event.target).selectedItem.data;
       reviews_txt.text = ComboBox(event.target).selectedItem.infoDate;
       empty_mc.tex = ComboBox(event.target).selectedItem.infoImage; //doesn't work
    any help would be greatly appreciated, and the image doesn't work, i've already faced facts that im not going to get that one to work
    Thank you in advance

    From what I can see you have a few problems. In your loaderOnComplete you set the data provider with 'bands' but create a variable called 'books'.
    Also, you want to be using the XMLList object to parse your data out. It's much simpler.
    Have a look at the following:
    var booksXML:XML;
    function loaderOnComplete(e:Event):void
              booksXML = new XML(e.target.data);
              var books:XMLList = booksXML.book;
              trace(books[0].bookName);
              var bookReviews:XMLList = books[0].reviews.review;
              trace(bookReviews[0].name);
    trace(bookReviews[0].date);
    First we get all the book xml objects in an XML List - the trace traces book number 0's name - The Monsters.
    Next, you can get all the reviews for a book in another XML List. Here we use the first book - book[0] and trace out the review's name and date.
    You can iterate through an XMLList as it has a length() method - (not a length property)
    Also, loading an image for a book would be easy - you just grab the image property of the current book and then use a Loader to load it.
    trace(books[0].image);

  • XML Help Needed- SYS_XMLGEN

    Hi,
    How to eliminate the default "ROW" tag from the below result?
    Result:
    <?xml version="1.0"?>
    <ROW>
    <request>
    <operationId>SERVICE</operationId>
    <transactionId>12</transactionId>
    <processId>123</processId>
    <parameters>
    <Department Type="integer" null="false">Marketing</Department>
    </parameters>
    </request>
    </ROW>
    Query
    SELECT
    SYS_XMLGEN
    ( xmlelement
    "request",
    XMLForest
    ('SERVICE' AS "operationId",
    123 AS "processId",
         xmlelement("Department",xmlattributes('integer' AS "Type",'false' AS "null" ),'Marketing')AS "parameters")
    ).EXTRACT('/*')
    ).getStringval()
    FROM dual ;

    hi
    iam geting output of xml in single line can u help me, it is urgent to me pls help me for below query
    select sys_xmlgen(xmlconcat(xmlelement(sub1, xmlforest(ename,empno)),
    xmlelement(sub2, xmlforest(mgr,sal))),xmlformat(main))
    from emp;
    output
    <?versio 1.0?><main><sub1><ename>jhon</ename><empno>123</empno><sub2><mgr>
    likethis iam getting ouput in single line but i want in nextline in setp by setp format
    <?versio 1.0?>
    <sub1>
    <ename>jhon</ename>
    <sub2>
    like this i want the output
    can any one help me immediatly

  • XML Help

    So i will try to explain it as i can . So I have this flash game. In it there is one movie clip called address_group. In address_group i have another MC called address. In address i have many text fields. Their info is being loaded from a xml file called database.xml. In the timeline where my address_group MC is located i have placed this code to load the XML data to flash:
    var planet_title = new Array();
    var planet_subtitle = new Array();
    var chevron1_txt = new Array();
    var chevron2_txt = new Array();
    var chevron3_txt = new Array();
    var chevron4_txt = new Array();
    var chevron5_txt = new Array();
    var chevron6_txt = new Array();
    var chevron7_txt = new Array();
    var chevron8_txt = new Array();
    var symbol_1 = new Array();
    var symbol_2 = new Array();
    var symbol_3 = new Array();
    var symbol_4 = new Array();
    var symbol_5 = new Array();
    var symbol_6 = new Array();
    var symbol_7 = new Array();
    var symbol_8 = new Array();
    var planet_stats = new Array();
    var planet_id = new Array();
    var pln_location = new Array();
    var pln_atmos = new Array();
    var pln_weather = new Array();
    var pln_day = new Array();
    var pln_inhabited = new Array();
    var database = new XML();
    database.ignoreWhite = true;
    database.load("database.xml");
    dir = address_group.address
    database.onLoad = function()
    var nodes:Array = this.firstChild.childNodes;
    for(var i=0;i<nodes.length;i++)
    planet_title.push(nodes[i].attributes.title_planet);
    planet_subtitle.push(nodes[i].attributes.subtitle);
    chevron1_txt.push(nodes[i].attributes.chevron1_name);
    chevron2_txt.push(nodes[i].attributes.chevron2_name);
    chevron3_txt.push(nodes[i].attributes.chevron3_name);
    chevron4_txt.push(nodes[i].attributes.chevron4_name);
    chevron5_txt.push(nodes[i].attributes.chevron5_name);
    chevron6_txt.push(nodes[i].attributes.chevron6_name);
    chevron7_txt.push(nodes[i].attributes.chevron7_name);
    chevron8_txt.push(nodes[i].attributes.chevron8_name);
    symbol_1.push(nodes[i].attributes.symbol1_name);
    symbol_2.push(nodes[i].attributes.symbol2_name);
    symbol_3.push(nodes[i].attributes.symbol3_name);
    symbol_4.push(nodes[i].attributes.symbol4_name);
    symbol_5.push(nodes[i].attributes.symbol5_name);
    symbol_6.push(nodes[i].attributes.symbol6_name);
    symbol_7.push(nodes[i].attributes.symbol7_name);
    symbol_8.push(nodes[i].attributes.symbol8_name);
    planet_stats.push(nodes[i].attributes.planet_status);
    planet_id.push(nodes[i].attributes.ID);
    pln_location.push(nodes[i].attributes.pln_cuadrant);
    pln_atmos.push(nodes[i].attributes.planet_atmosphere);
    pln_weather.push(nodes[i].attributes.planet_weather);
    pln_day.push(nodes[i].attributes.planet_day_cycle);
    pln_inhabited.push(nodes[i].attributes.planet_inhabited);
    dir.title.text = planet_title;
    dir.sub_title.text = planet_subtitle;
    dir.chev1_name.text = chevron1_txt;
    dir.chev2_name.text = chevron2_txt;
    dir.chev3_name.text = chevron3_txt;
    dir.chev4_name.text = chevron4_txt;
    dir.chev5_name.text = chevron5_txt;
    dir.chev6_name.text = chevron6_txt;
    dir.chev7_name.text = chevron7_txt;
    dir.chev8_name.text = chevron8_txt;
    dir.SB1.text = symbol_1;
    dir.SB2.text = symbol_2;
    dir.SB3.text = symbol_3;
    dir.SB4.text = symbol_4;
    dir.SB5.text = symbol_5;
    dir.SB6.text = symbol_6;
    dir.SB7.text = symbol_7;
    dir.SB8.text = symbol_8;
    dir.planet_status.text = planet_stats;
    dir.planet_id.text = planet_id;
    dir.location.text = pln_location;
    dir.weather.text = pln_weather;
    dir.day_cycle.text = pln_day;
    dir.inhabited.text = pln_inhabited;
    My xml file structure is this:
    <?xml version="1.0" encoding="utf-8"?>
    <planets>
    <planet title_planet="Lqlq"
    subtitle="M45-98R"
    chevron1_name="Asus"
    chevron2_name="Asus"
    chevron3_name="Asus"
    chevron4_name="Asus"
    chevron5_name="Asus"
    chevron6_name="Asus"
    chevron7_name="Asus"
    chevron8_name="Asus"
    symbol1_name="d"
    symbol2_name="d"
    symbol3_name="d"
    symbol4_name="d"
    symbol5_name="d"
    symbol6_name="d"
    symbol7_name="d"
    symbol8_name="d"
    planet_status="ACTIVE"
    ID="#653265"
    pln_cuadrant="C8 Cuadrant"
    planet_atmosphere="YES"
    planet_weather="NORMAL"
    planet_day_cycle="24 hrs"
    planet_inhabited="NO" />
    <planet title_planet="Lqlq"
    subtitle="M45-98R"
    chevron1_name="Asus"
    chevron2_name="Asus"
    chevron3_name="Asus"
    chevron4_name="Asus"
    chevron5_name="Asus"
    chevron6_name="Asus"
    chevron7_name="Asus"
    chevron8_name="Asus"
    symbol1_name="d"
    symbol2_name="d"
    symbol3_name="d"
    symbol4_name="d"
    symbol5_name="d"
    symbol6_name="d"
    symbol7_name="d"
    symbol8_name="d"
    planet_status="ACTIVE"
    ID="#653265"
    pln_cuadrant="C8 Cuadrant"
    planet_atmosphere="YES"
    planet_weather="NORMAL"
    planet_day_cycle="24 hrs"
    planet_inhabited="NO" />
    </planets>
    My problem is that when there is a second <planet title_planet="Name"....> the new info from the second input which should be a new entry which means that i want when there is a second input this address_group to duplicate and in it to be placed the info from the second entry. But it doesnt do that it loads the second info over the first one in the flash. So my question is how to make flash to detect if there is something written as second entry or third or forth and so on... and than when he detects to duplicate this address_group Movie Clip and in it to put the info from the second enttry if they are 3 to make 3 copies of the MC and put in each the different informations....
    Did you understand what i mean please help? thanks a lot

    sorry.  that would only work for as3.
    for as2, assign address_group a linkage id (say address_groupID), and use:
    var planet_title = new Array();
    var planet_subtitle = new Array();
    var chevron1_txt = new Array();
    var chevron2_txt = new Array();
    var chevron3_txt = new Array();
    var chevron4_txt = new Array();
    var chevron5_txt = new Array();
    var chevron6_txt = new Array();
    var chevron7_txt = new Array();
    var chevron8_txt = new Array();
    var symbol_1 = new Array();
    var symbol_2 = new Array();
    var symbol_3 = new Array();
    var symbol_4 = new Array();
    var symbol_5 = new Array();
    var symbol_6 = new Array();
    var symbol_7 = new Array();
    var symbol_8 = new Array();
    var planet_stats = new Array();
    var planet_id = new Array();
    var pln_location = new Array();
    var pln_atmos = new Array();
    var pln_weather = new Array();
    var pln_day = new Array();
    var pln_inhabited = new Array();
    var database = new XML();
    database.ignoreWhite = true;
    database.load("database.xml");
    var tl:MovieClip=this;
    database.onLoad = function()
    var nodes:Array = this.firstChild.childNodes;
    for(var i=0;i<nodes.length;i++)
    var address_group:MovieClip = tl.attachMovie("attach_groupID","attach_groupMC_"+i,tl.getNextHighestDepth());
    address_group._ x= i*100;
    // assign x,y and any other properties needed for display
    var dir:MovieClip = address_group.address;
    planet_title.push(nodes[i].attributes.title_planet);
    planet_subtitle.push(nodes[i].attributes.subtitle);
    chevron1_txt.push(nodes[i].attributes.chevron1_name);
    chevron2_txt.push(nodes[i].attributes.chevron2_name);
    chevron3_txt.push(nodes[i].attributes.chevron3_name);
    chevron4_txt.push(nodes[i].attributes.chevron4_name);
    chevron5_txt.push(nodes[i].attributes.chevron5_name);
    chevron6_txt.push(nodes[i].attributes.chevron6_name);
    chevron7_txt.push(nodes[i].attributes.chevron7_name);
    chevron8_txt.push(nodes[i].attributes.chevron8_name);
    symbol_1.push(nodes[i].attributes.symbol1_name);
    symbol_2.push(nodes[i].attributes.symbol2_name);
    symbol_3.push(nodes[i].attributes.symbol3_name);
    symbol_4.push(nodes[i].attributes.symbol4_name);
    symbol_5.push(nodes[i].attributes.symbol5_name);
    symbol_6.push(nodes[i].attributes.symbol6_name);
    symbol_7.push(nodes[i].attributes.symbol7_name);
    symbol_8.push(nodes[i].attributes.symbol8_name);
    planet_stats.push(nodes[i].attributes.planet_status);
    planet_id.push(nodes[i].attributes.ID);
    pln_location.push(nodes[i].attributes.pln_cuadrant);
    pln_atmos.push(nodes[i].attributes.planet_atmosphere);
    pln_weather.push(nodes[i].attributes.planet_weather);
    pln_day.push(nodes[i].attributes.planet_day_cycle);
    pln_inhabited.push(nodes[i].attributes.planet_inhabited);
    dir.title.text = planet_title;
    dir.sub_title.text = planet_subtitle;
    dir.chev1_name.text = chevron1_txt;
    dir.chev2_name.text = chevron2_txt;
    dir.chev3_name.text = chevron3_txt;
    dir.chev4_name.text = chevron4_txt;
    dir.chev5_name.text = chevron5_txt;
    dir.chev6_name.text = chevron6_txt;
    dir.chev7_name.text = chevron7_txt;
    dir.chev8_name.text = chevron8_txt;
    dir.SB1.text = symbol_1;
    dir.SB2.text = symbol_2;
    dir.SB3.text = symbol_3;
    dir.SB4.text = symbol_4;
    dir.SB5.text = symbol_5;
    dir.SB6.text = symbol_6;
    dir.SB7.text = symbol_7;
    dir.SB8.text = symbol_8;
    dir.planet_status.text = planet_stats;
    dir.planet_id.text = planet_id;
    dir.location.text = pln_location;
    dir.weather.text = pln_weather;
    dir.day_cycle.text = pln_day;
    dir.inhabited.text = pln_inhabited;
    My xml file structure is this:
    <?xml version="1.0" encoding="utf-8"?>
    <planets>
    <planet title_planet="Lqlq"
    subtitle="M45-98R"
    chevron1_name="Asus"
    chevron2_name="Asus"
    chevron3_name="Asus"
    chevron4_name="Asus"
    chevron5_name="Asus"
    chevron6_name="Asus"
    chevron7_name="Asus"
    chevron8_name="Asus"
    symbol1_name="d"
    symbol2_name="d"
    symbol3_name="d"
    symbol4_name="d"
    symbol5_name="d"
    symbol6_name="d"
    symbol7_name="d"
    symbol8_name="d"
    planet_status="ACTIVE"
    ID="#653265"
    pln_cuadrant="C8 Cuadrant"
    planet_atmosphere="YES"
    planet_weather="NORMAL"
    planet_day_cycle="24 hrs"
    planet_inhabited="NO" />
    <planet title_planet="Lqlq"
    subtitle="M45-98R"
    chevron1_name="Asus"
    chevron2_name="Asus"
    chevron3_name="Asus"
    chevron4_name="Asus"
    chevron5_name="Asus"
    chevron6_name="Asus"
    chevron7_name="Asus"
    chevron8_name="Asus"
    symbol1_name="d"
    symbol2_name="d"
    symbol3_name="d"
    symbol4_name="d"
    symbol5_name="d"
    symbol6_name="d"
    symbol7_name="d"
    symbol8_name="d"
    planet_status="ACTIVE"
    ID="#653265"
    pln_cuadrant="C8 Cuadrant"
    planet_atmosphere="YES"
    planet_weather="NORMAL"
    planet_day_cycle="24 hrs"
    planet_inhabited="NO" />
    </planets>
    p.s.  you assign a linkage id the same way you assign a class.  so, just remove the input from the class textfield and enter the linkage id in the linkage textfield.

  • Formatting Text - XML newbie wants everything!

    Greetings Folks
    I am a newbie to this Forum and a relatively newbie to XML.
    As usual I want to know everything and do everything . . .
    and I want it now! Just kidding!
    Here is my first challenge with code following:
    Can I add tags to "text" in my .xml file so that I can have
    bold, italic, underline and link info embedded when using an .xsl
    stylesheet to format same?
    Here is my sample .xml file called "demo.xml" produced using
    DW8:
    quote:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <?xml-stylesheet href="demo.xsl" type="text/xsl"?>
    <demo>
    <text>
    <start>The quick brown fox</start>
    <finish>jumps over the lazy dog</finish>
    </text>
    </demo>
    And here is my .xsl file called "demo.xsl":
    quote:
    <?xml version="1.0" encoding="iso-8859-1"?><!--
    DWXMLSource="demo.xml" --><!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp " ">
    <!ENTITY copy "©">
    <!ENTITY reg "®">
    <!ENTITY trade "™">
    <!ENTITY mdash "—">
    <!ENTITY ldquo "“">
    <!ENTITY rdquo "”">
    <!ENTITY pound "£">
    <!ENTITY yen "¥">
    <!ENTITY euro "€">
    ]>
    <xsl:stylesheet version="1.0" xmlnssl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl
    utput method="html" encoding="iso-8859-1"
    doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="<A href="
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/">http://www.w3.org/TR/xhtml1/DTD /xhtml1-transitional.dtd"/>
    <xsl:template match="/">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1"/>
    <title>Untitled Document</title>
    </head>
    <body><table width="300" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td><div align="right"><xsl:value-of
    select="demo/text/start"/></div></td>
    <td> <xsl:value-of
    select="demo/text/finish"/></td>
    </tr>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    By asking IE or Firefox to display demo.xml I get the
    following result:
    The quick brown fox jumps over the lazy dog.
    Challenge: Can I have it rendered like this -
    The quick
    brown
    fox jumps
    over the
    lazy dog
    If lazy dog can be made a hyperlink as well then I would say
    XML really "ROCKS".
    The 2nd challenge is:
    Can I have a lengthy passage of text and be able to assign
    paragraph breaks so the browser will display sentences in
    paragraphs? (I trust this does not need an example and my request
    is self explanitory)
    If you can help me, with say a working example, I would be so
    appreciative.
    Thanks in anticipation
    AceTutor

    Odd quesiton but why are you doing it like this ?
    XHTML sounds like what you want ...
    Anyhow, you can do all you want - but its a little more
    complicated - and
    hard to explain here - you need to explicitly state how they
    should appear,
    within your XSLT ... (I Think, never having done it)
    G
    "AceTutor@Warwick" <[email protected]> wrote
    in message
    news:[email protected]...
    > Greetings Folks
    >
    > I am a newbie to this Forum and a relatively newbie to
    XML.
    > As usual I want to know everything and do everything . .
    . and I want it
    > now!
    > Just kidding!
    >
    > Here is my first challenge with code following:
    > Can I add tags to "text" in my .xml file so that I can
    have bold, italic,
    > underline and link info embedded when using an .xsl
    stylesheet to format
    > same?
    >
    >
    > Here is my sample .xml file called "demo.xml" produced
    using DW8:
    >
    > <blockquote>quote:<br><hr><?xml
    version="1.0" encoding="iso-8859-1"?>
    > <?xml-stylesheet href="demo.xsl" type="text/xsl"?>
    > <demo>
    > <text>
    > <start>The quick brown fox</start>
    > <finish>jumps over the lazy dog</finish>
    > </text>
    > </demo>
    > <hr></blockquote>
    >
    > And here is my .xsl file called "demo.xsl":
    >
    > <blockquote>quote:<br><hr><?xml
    version="1.0" encoding="iso-8859-1"?><!--
    > DWXMLSource="demo.xml" --><!DOCTYPE xsl:stylesheet
    > <!ENTITY nbsp " ">
    > <!ENTITY copy "?">
    > <!ENTITY reg "?">
    > <!ENTITY trade "?">
    > <!ENTITY mdash "?">
    > <!ENTITY ldquo "?">
    > <!ENTITY rdquo "?">
    > <!ENTITY pound "?">
    > <!ENTITY yen "?">
    > <!ENTITY euro "?">
    > ]>
    > <xsl:stylesheet version="1.0" xmlnssl="<a
    target=_blank
    > class=ftalternatingbarlinklarge
    > href="
    http://www.w3.org/1999/XSL/Transform">
    > <xsl
    utput">
    http://www.w3.org/1999/XSL/Transform">
    > <xsl
    utput</a> method="html" encoding="iso-8859-1"
    > doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
    doctype-system="<A
    > href="<a target=_blank
    class=ftalternatingbarlinklarge
    > href="
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/">http://www.w3.o
    > rg/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    >
    > <xsl:template">
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/">http:/
    > /www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    > <xsl:template</a> match="/">
    > <html xmlns="<a target=_blank
    class=ftalternatingbarlinklarge
    > href="
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta">
    http://www.w3.org/1999/xhtml">
    > <head>
    > <meta</a> http-equiv="Content-Type"
    content="text/html;
    > charset=iso-8859-1"/>
    > <title>Untitled Document</title>
    > </head>
    > <body><table width="300" border="0"
    cellspacing="0" cellpadding="0">
    > <tr>
    > <td><div align="right"><xsl:value-of
    select="demo/text/start"/></div></td>
    > <td> <xsl:value-of
    select="demo/text/finish"/></td>
    > </tr>
    > </table>
    > </body>
    > </html>
    > </xsl:template>
    > </xsl:stylesheet>
    >
    >
    >
    > By asking IE or Firefox to display demo.xml I get the
    following result:
    >
    >
    > The quick brown fox jumps over the lazy dog.
    >
    >
    > Challenge: Can I have it rendered like this -
    >
    > The quick <b>brown</b>
    <u>fox</u> jumps <i>over</i> the <a
    target=_blank
    > class=ftalternatingbarlinklarge href="
    http://www.google.com">lazy
    dog</a>
    >
    > If lazy dog can be made a hyperlink as well then I would
    say XML really
    > "ROCKS".
    >
    >
    > The 2nd challenge is:
    > Can I have a lengthy passage of text and be able to
    assign paragraph
    > breaks so
    > the browser will display sentences in paragraphs? (I
    trust this does not
    > need
    > an example and my request is self explanitory)
    >
    >
    > If you can help me, with say a working example, I would
    be so
    > appreciative.
    >
    > Thanks in anticipation
    >
    >
    > AceTutor
    >
    >

  • How to generate map.xml,toc.xml, help.hs file

    Hi All,
    In our application, we have all the help written in html files. I have the steps to configure ohw-config.xml, web.xml . We want to map the html help based on the application page name.
    Can anyone let me know the good tool to generate map.xml,toc.xml for the html files.

    try magichelp.
    it is multi-user help authoring tool,
    currently Support Oracle help .
    Home:http://www.gethelpsoft.com
    Download from:http://www.gethelpsoft.com/download/mhtrial.exe
    MagicHelp is multi-user help systems and documentation tool,it is the fastest, easiest way to create professional Help systems and documentation.
    Support export format:CHM/MsHelp2.x/Word/WebHelp/JavaHelp/OracleHelp/EclipseHelp...
    Support import format:COM TypeLib/FileSystem/...
    Team Working feature makes develop-team works more orderly, efficiently, and cost savely, the quality of software document will be increased. MagicTopic feature enables you extending MagicHelp to other fields, such as project management, requirement management and transaction assistance. One can develop different kinds of extensions to extend application of MagicHelp, e.g. database tables design.

  • Some more xml help please

    create table "HDTEST"
    "ENTRY_DATE" VARCHAR2(50 BYTE),
    "ENTRY_NUMBER" VARCHAR2(50 BYTE),
    "ENTRY_DESCRIPTION" VARCHAR2(500 BYTE),
    "ENTRY_TYPE" VARCHAR2(50 BYTE),
    "OPEN_CLOSED" VARCHAR2(50 BYTE),
    "RECORD_UPDATE_DATE" VARCHAR2(50 BYTE)
    --drop table hdtest
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE,OPEN_CLOSED,RECORD_UPDATE_DATE) VALUES ('01-JAN-12','123456','TEST DESC 1','TYPE1','OPEN','05-JAN-12');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE,OPEN_CLOSED,RECORD_UPDATE_DATE) VALUES ('01-JAN-12','123422','TEST DESC 2','TYPE2','CLOSED','08-JAN-12');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE,OPEN_CLOSED,RECORD_UPDATE_DATE) VALUES ('03-JAN-12','123433','TEST DESC 3','TYPE3','OPEN','06-JAN-12');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE,OPEN_CLOSED,RECORD_UPDATE_DATE) VALUES ('04-JAN-12','123444','TEST DESC 4','TYPE4','CLOSED','08-JAN-12');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE,OPEN_CLOSED,RECORD_UPDATE_DATE) VALUES ('01-JAN-12','123422','TEST DESC 2','TYPE2','CLOSED','04-JAN-12');
    --to generate xml
    select XMLSERIALIZE( content (
      xmlelement(
        "TESTING",
        XMLAttributes('XMLTEST' as "NAME",systimestamp as "UPDATED_DATE"),
        xmlelement(
          "PAGE",
          XMLAGG(
            xmlelement(
              "ENTRY_DATE",
              xmlattributes(entry_date  "DATE" ),
              xmlagg(
                xmlelement(
                  "ENTRY",
                  xmlattributes(ENTRY_NUMBER "NUMBER",ENTRY_DESCRIPTION DESCRIPTION,ENTRY_TYPE "TYPE",OPEN_CLOSED,RECORD_UPDATE_DATE)
    ) indent )
    as xml
    from HDTEST
    group by entry_date
    order by entry_date;
    --xml output
    <TESTING NAME="XMLTEST" UPDATED_DATE="2012-10-03T09:34:11.501941-04:00">
      <PAGE>
        <ENTRY_DATE DATE="01-JAN-12">
          <ENTRY NUMBER="123456" DESCRIPTION="TEST DESC 1" TYPE="TYPE1" OPEN_CLOSED="OPEN" RECORD_UPDATE_DATE="05-JAN-12"/>
          <ENTRY NUMBER="123422" DESCRIPTION="TEST DESC 2" TYPE="TYPE2" OPEN_CLOSED="CLOSED" RECORD_UPDATE_DATE="08-JAN-12"/>
        </ENTRY_DATE>
        <ENTRY_DATE DATE="03-JAN-12">
          <ENTRY NUMBER="123433" DESCRIPTION="TEST DESC 3" TYPE="TYPE3" OPEN_CLOSED="OPEN" RECORD_UPDATE_DATE="06-JAN-12"/>
        </ENTRY_DATE>
        <ENTRY_DATE DATE="04-JAN-12">
          <ENTRY NUMBER="123444" DESCRIPTION="TEST DESC 4" TYPE="TYPE4" OPEN_CLOSED="CLOSED" RECORD_UPDATE_DATE="08-JAN-12"/>
        </ENTRY_DATE>
      </PAGE>
    </TESTING>--im looking to have out put like this :
    <TESTING NAME="XMLTEST" UPDATED_DATE="2012-10-03T09:34:11.501941-04:00">
      <PAGE> <DATE="01-JAN-12">
        <OPENED_TODAY>
          <ENTRY NUMBER="123456" DESCRIPTION="TEST DESC 1" TYPE="TYPE1" OPEN_CLOSED="OPEN" RECORD_UPDATE_DATE="05-JAN-12"/>
          <ENTRY NUMBER="123422" DESCRIPTION="TEST DESC 2" TYPE="TYPE2" OPEN_CLOSED="CLOSED" RECORD_UPDATE_DATE="08-JAN-12"/>
           <ENTRY NUMBER="123422" DESCRIPTION="TEST DESC 2" TYPE="TYPE2" OPEN_CLOSED="CLOSED" RECORD_UPDATE_DATE="04-JAN-12"/>
        </OPENED_TODAY>
        <CLOSED>
         </CLOSED>
        </DATE>
        <DATE="03-JAN-12">
        <OPENED_TODAY>
          <ENTRY NUMBER="123433" DESCRIPTION="TEST DESC 3" TYPE="TYPE3" OPEN_CLOSED="OPEN" RECORD_UPDATE_DATE="06-JAN-12"/>
        </OPENED_TODAY>
        <CLOSED>
         </CLOSED>
        </DATE>
        <DATE="04-JAN-12">
        <OPENED_TODAY>
          <ENTRY NUMBER="123444" DESCRIPTION="TEST DESC 4" TYPE="TYPE4" OPEN_CLOSED="CLOSED" RECORD_UPDATE_DATE="08-JAN-12"/>
        </OPENED_TODAY>
        <CLOSED>
           <ENTRY NUMBER="123422" DESCRIPTION="TEST DESC 2" TYPE="TYPE2" OPEN_CLOSED="CLOSED" RECORD_UPDATE_DATE="04-JAN-12"/>
         </CLOSED>
        </DATE>
      </PAGE>
    </TESTING>1. <ENTRY_DATE DATE> changed to just <DATE>
    2. 2 new sections under each DATE called <OPENED_TODAY> and <CLOSED>
    everything should be listed under OPENED_TODAY that had an entry date of that day, but in the closed section, only records that have the OPEN_CLOSED = CLOSED and the RECORD_UPDATE_DATE = the date node
    hope i explained this right and hope someone can help.
    thanks again
    Edited by: BluShadow on 03-Oct-2012 15:17
    added {noformat}{noformat} tags for readability.  You should know how to do this by now.  See: {message:id=9360002}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Here is an attempt to provide what you say you want, although your input and your output don't seem to match.select XMLSERIALIZE( content (
      xmlelement(
        "TESTING",
        XMLAttributes('XMLTEST' as "NAME",systimestamp as "UPDATED_DATE"),
        xmlelement(
          "PAGE",
          XMLAGG(
            xmlelement(
              "DATE",
              xmlattributes(entry_date  "val" ),
              xmlelement(
                "OPEN_TODAY",
                xmlagg( case when closed_flag = 0 then
                  xmlelement(
                    "ENTRY",
                    xmlattributes(ENTRY_NUMBER "NUMBER",ENTRY_DESCRIPTION DESCRIPTION,ENTRY_TYPE "TYPE",OPEN_CLOSED,RECORD_UPDATE_DATE)
                  ) end
              xmlelement(
                "CLOSED",
                xmlagg( case when closed_flag = 1 then
                  xmlelement(
                    "ENTRY",
                    xmlattributes(ENTRY_NUMBER "NUMBER",ENTRY_DESCRIPTION DESCRIPTION,ENTRY_TYPE "TYPE",OPEN_CLOSED,RECORD_UPDATE_DATE)
                  ) end
    ) indent )
    as xml
    from (
      select a.*,
      case when open_closed = 'CLOSED' and entry_date = RECORD_UPDATE_DATE then 1 else 0 end closed_flag
      from HDTEST a
    group by entry_date
    order by entry_date;

  • Some xml help

    need some help with this xml. I am trying to generate the xml where it is ordered by a date node. so result should be like
    <TESTING NAME="XMLTEST" UPDATED_DATE="2012-09-28T16:05:14.943728-04:00">
    <PAGE>
    <ENTRY_DATE 01-JAN-12>
    <ENTRY_DATE="01-JAN-12" ENTRY_NUMBER="123456" ENTRY_DESCRIPTION="TEST DESC 1" ENTRY_TYPE="TYPE1">
    <ENTRY_DATE="01-JAN-12" ENTRY_NUMBER="123422" ENTRY_DESCRIPTION="TEST DESC 2" ENTRY_TYPE="TYPE2">
    </ENTRY_DATE>
    <ENTRY_DATE 03-JAN-12>
    <ENTRY_DATE="03-JAN-12" ENTRY_NUMBER="123433" ENTRY_DESCRIPTION="TEST DESC 3" ENTRY_TYPE="TYPE3">
    </ENTRY_DATE>
    <ENTRY_DATE 04-JAN-12>
    <ENTRY_DATE="04-JAN-12" ENTRY_NUMBER="123444" ENTRY_DESCRIPTION="TEST DESC 4" ENTRY_TYPE="TYPE4">
    </ENTRY_DATE>
    </PAGE>
    </TESTING>
    what i have so far....would really appreciate some help
    create table "HDTEST"
    "ENTRY_DATE" VARCHAR2(50 BYTE),
    "ENTRY_NUMBER" VARCHAR2(50 BYTE),
    "ENTRY_DESCRIPTION" VARCHAR2(500 BYTE),
    "ENTRY_TYPE" VARCHAR2(50 BYTE)
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE) VALUES ('01-JAN-12','123456','TEST DESC 1','TYPE1');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE) VALUES ('01-JAN-12','123422','TEST DESC 2','TYPE2');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE) VALUES ('03-JAN-12','123433','TEST DESC 3','TYPE3');
    INSERT INTO HDTEST (ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE) VALUES ('04-JAN-12','123444','TEST DESC 4','TYPE4');
    SELECT
    XMLElement("TESTING",
    XMLAttributes('XMLTEST' as "NAME",systimestamp as "UPDATED_DATE")
    , XMLElement("PAGE",
    XMLAgg(
    XMLElement("ENTRY_DATE",
    XMLAttributes(NVL("ENTRY_DATE",' ') AS ENTRY_DATE,
    NVL("ENTRY_NUMBER",' ') AS ENTRY_NUMBER,
    NVL("ENTRY_DESCRIPTION",' ') AS ENTRY_DESCRIPTION,
    NVL("ENTRY_TYPE",' ') AS ENTRY_TYPE
    XMLForest(
    NVL("ENTRY_DATE",' ') AS ENTRY_DATE,
    NVL("ENTRY_NUMBER",' ') AS ENTRY_NUMBER,
    NVL("ENTRY_DESCRIPTION",' ') AS ENTRY_DESCRIPTION,
    NVL("ENTRY_TYPE",' ') AS ENTRY_TYPE
    ) as xml
    FROM HDTEST

    The output you want is not correct XML.
    I wish you wouldn't put those NVLs in there; an empty node is the same as no node at all, so it would be better to just not have those empty nodes.
    Above all, putting the date in as part of the tag name is horrible.
    Anyway, here is something close to what you want: the key is the evalname function:select XMLSERIALIZE( content (
      xmlelement(
        "TESTING",
        XMLAttributes('XMLTEST' as "NAME",systimestamp as "UPDATED_DATE"),
        xmlelement(
          "PAGE",
          xmlagg(
            xmlelement(
              EVALNAME('ENTRY_DATE_' || TO_CHAR(ENTRY_DATE)),
              xmlagg(
                xmlelement(
                  "ENTRY",
                  xmlattributes(ENTRY_DATE,ENTRY_NUMBER,ENTRY_DESCRIPTION,ENTRY_TYPE)
    ) indent )
    as xml
    from HDTEST
    group by entry_date
    order by entry_date;
    <TESTING NAME="XMLTEST" UPDATED_DATE="2012-09-30T03:27:03.054939-07:00">
      <PAGE>
        <ENTRY_DATE_01-JAN-12>
          <ENTRY ENTRY_DATE="01-JAN-12" ENTRY_NUMBER="123456" ENTRY_DESCRIPTION="TEST DESC 1" ENTRY_TYPE="TYPE1"/>
          <ENTRY ENTRY_DATE="01-JAN-12" ENTRY_NUMBER="123422" ENTRY_DESCRIPTION="TEST DESC 2" ENTRY_TYPE="TYPE2"/>
        </ENTRY_DATE_01-JAN-12>
        <ENTRY_DATE_03-JAN-12>
          <ENTRY ENTRY_DATE="03-JAN-12" ENTRY_NUMBER="123433" ENTRY_DESCRIPTION="TEST DESC 3" ENTRY_TYPE="TYPE3"/>
        </ENTRY_DATE_03-JAN-12>
        <ENTRY_DATE_04-JAN-12>
          <ENTRY ENTRY_DATE="04-JAN-12" ENTRY_NUMBER="123444" ENTRY_DESCRIPTION="TEST DESC 4" ENTRY_TYPE="TYPE4"/>
        </ENTRY_DATE_04-JAN-12>
      </PAGE>
    </TESTING>Now here is what I think you should want (except that you use attributes way too much).select XMLSERIALIZE( content (
      xmlelement(
        "TESTING",
        XMLAttributes('XMLTEST' as "NAME",systimestamp as "UPDATED_DATE"),
        xmlelement(
          "PAGE",
          XMLAGG(
            xmlelement(
              "ENTRY_DATE",
              xmlattributes(entry_date "DATE"),
              xmlagg(
                xmlelement(
                  "ENTRY",
                  xmlattributes(ENTRY_NUMBER "NUMBER",ENTRY_DESCRIPTION DESCRIPTION,ENTRY_TYPE "TYPE")
    ) indent )
    as xml
    from HDTEST
    group by entry_date
    order by entry_date;
    <TESTING NAME="XMLTEST" UPDATED_DATE="2012-09-30T03:33:54.522425-07:00">
      <PAGE>
        <ENTRY_DATE DATE="01-JAN-12">
          <ENTRY NUMBER="123456" DESCRIPTION="TEST DESC 1" TYPE="TYPE1"/>
          <ENTRY NUMBER="123422" DESCRIPTION="TEST DESC 2" TYPE="TYPE2"/>
        </ENTRY_DATE>
        <ENTRY_DATE DATE="03-JAN-12">
          <ENTRY NUMBER="123433" DESCRIPTION="TEST DESC 3" TYPE="TYPE3"/>
        </ENTRY_DATE>
        <ENTRY_DATE DATE="04-JAN-12">
          <ENTRY NUMBER="123444" DESCRIPTION="TEST DESC 4" TYPE="TYPE4"/>
        </ENTRY_DATE>
      </PAGE>
    </TESTING>

  • CSS XML Help

    Hi i am trying to build a really simple banner that loads from an XML file. The idea was that the client wanted to be able to change things such as font colour, button colour, image links etc but the client would also like to alter the font or font family. I basically want to have a CSS inside the actionscript so that I can set the font family as a variable and change it via the xml. I think this is the best way to do it, or alternatively the client could just adjust an external CSS themselves. So far I have not got this to work and would greatly appreciate any help n loading in CSS in actionscript 2.0 as I have very little experience with it.
    Below is the actionscript I already have in place .
    1st Frame
    // Load XML
    var xmlItems = new Array();
    langXML = new XML();
    langXML.ignoreWhite = true;
    langXML.load('setup.xml');
    langXML.onLoad = function(sucess) {
            if (sucess) {
                    parseFile(langXML);
                    //trace(menuItems);
    play();
            } else {
    trace("XML problem!");
    function parseFile(xmlDoc_xml) {
            for (var a = 0; a<xmlDoc_xml.firstChild.childNodes.length; a++) {
    // push labels into Array
    xmlItems.push(xmlDoc_xml.firstChild.childNodes[a].firstChild.nodeValue);
    trace(xmlItems);
    Frame where content loads in :
    // init movie
    textTitle.text = xmlItems[0];
    textsubTitle.text = xmlItems[1];
    imageURL = xmlItems[2];
    // Create Varible for RGB colour reference
    titleColour = "0x" + xmlItems[3];
    trace("titleColour:" + titleColour);
    new Color(textTitle).setRGB(titleColour);
    subtitleColour = "0x" + xmlItems[4];
    trace("subtitleColour:" + subtitleColour);
    new Color(textsubTitle).setRGB(subtitleColour);
    clickURL = xmlItems[5];
    buttonColour = "0x"+ xmlItems[6]
    new Color(buttonBG).setRGB(buttonColour);

    to specify a font, you'll need to embed the font.  unless you embed all fonts your client may want to choose, you have a difficult task ahead of you:  dynamically embedding fonts in as2 is no easy task.
    you may have other problems but, that's the key to your issue.

  • Unique XML Help

    I found a tutorial on XML and flash. However it only deals
    with dropping a bunch on nodes in a combo box or list. I need help
    figureing out how to do the following:
    Lets say that I have an XML that looks like this,
    <table>
    <item id="4" email="[email protected]" />
    <item id="5" email="[email protected]" />
    <item id="6" email="[email protected]" />
    </table>
    Now, what I want to be able to do is put a dynamic text field
    on the stage and say, give me the email address for the id=4. Then
    in a totally different dynamic text box, give me the email for
    id=5, and so on. These dynamix text fields will all me in the same
    frame, so I am wantign to use actionscript on the frame, but need
    the script that can put a certain attribute in an instance of a
    text box according to an id that I specify in the code. Can anybody
    help on this?
    -Yours truly Ricky Bobby

    Can someone tell me if I am on the right track with this.
    Let's say that my dynamic text field has an instance name of email.
    and my xml looks like the following:
    <table>
    <item id="4" email="[email protected]" />
    <item id="5" email="[email protected]" />
    <item id="6" email="[email protected]" />
    </table>
    how about this for part of the actionacript
    var my_key = item.attributes.id;
    for (my_key = 4){
    email.text = item.attributes.email; // setting the text
    field to the email for id=4
    }

  • Amazon XML help!!!!!

    Hi all
    I want to use the AWS service for some work, but cannot for
    the life of me find the right Xpath query! I want to extract all
    the category names (eg. Literature & Fiction, Othodoxy etc.) in
    the attached xml file, can anyone help me? I'd like for someone to
    test it on their PC first, as I am having no luck at all, even
    after 2 nights!
    I am using CF 8 with Apache.I tried with the built in web
    server too, but to no avail.
    Thanks to anyone that can fix it!

    hi Jafy,
    1. For Resizing the textfield you can use like this:
    textFieldinstanceName_txt.autoSize = TextFieldAutoSize.LEFT;
    This will automatically resize your textfield according to dynamic text value. For this you should apply Line type = MultiLine property for that Text Field.
    2.  You can use HTML Code also for MouseOver effect with HTML guys also
    <option>
      Option Title
      <a href="http://www.google.com" onMouseOver=" " onMouseOut=" ">Google Search</a>
      <![CDATA[<a href="http://www.yahoo.com"  onMouseOver=" " onMouseOut=" ">Yahoo Search</a><br>]]>
      <![CDATA[<a href="http://www.bing.com" onMouseOver=" " onMouseOut=" ">Bing search</a>]]>
    </option>

  • New to HD Editing and CS, building a PC to suit requirements of HD edit. Experienced help wanted :-)

    Firstly let me say hi and thanks in advance to all that read and assist with my questions
    A Bit about me..
    I have recently acquired the need for video editing at a much higher level with both having a family now (baby daughter) and a very active hobby (rc heli flying at a sponsored level).  With this in mind I bought a HD video camera some time back without the realisation that, to effectively edit such footage requires horsepower!!.... so i have saved up for a new computer and ended up here after much reading on various forums (toms hardware, video guys etc etc).
    Where I am up too....
    I have started by firstly implementing a NAS into my Home network which is primarily used to store and stream media (Gigabit LAN) around the home. It is setup in RAID 5 with 5 x 2TB disks (so about 7TB of storage).  I have done this so there is some backup of photos, movies, home video etc (if I lose a disk , hopefully i will not lose the lot).  I have also acquired adobe Premiere Pro CS 5 and now need a workstation that will allow me to edit in confort ( the one I have will not even run it!! .
    My aim is to store original files and completed work on the NAS (or burn to Bluray etc).
    I am looking at a PC solution, as I can obviously get more horsepower for less $$ than a laptop solution. 
    I have built PC's in the past but not with high frequency and this will be the biggest budget one I will have attempted. I have been researching alot over the last few weeks about sytems and components and found this forum to be very good in dealing with hardware specs and requiremnts in a very proffesional way.
    I am now at the point where I getting a little muddled with which way to go and still have a lot of research to complete.  My approach is to tackle each of the components needed one at a time in a fairly hierarchial manner.
    What the PC will be used for..
    This PC will be used primarily for the video editing and some gaming (when I have time).  AlLso any other horsepower intensive apps if needed (I have a laptop and other comps for general duties).
    Budget
    My budget is fairly rigid at $2500 AUD (so I am not looking at a Zeon solution LOL). The budget is to include:
    Case                              ?
    CPU                            Intel I7 2600K (based on my research this seems to be the best way to go with my budget and needs)
    CPU Cooler                  Standard Intel supplied Cooler (seems to perform reasonably well even when moderately overclocking (~4.0 - 5.0 khz) 
    MOBO                           ?
    RAM                              ?
    Graphics Card                 ?
    BLURAY Writer               ?
    PSU                               ?
    HDD Storage               1 SSD and 3 HDD's with 2 in Raid "0"
    OS                              Windows 7 64 Bit
    23 inch Screen               ?
    Questions
         Motherboard
    I guess my issues with MOBO slection revolve firstly around which chipset to go with Z68 (newer) or the P67?  It seems the Z68 is feature rich, however I also seem to feel that the Quick sync and SRT would be better disabled with what I am setting the machine up for? So therefore what advantage is there with going with Z68 if any? or am I better off getting a more established P67 chipset based board?
    I also see that some boards have the Nvidia NF200 for expanding bandwidth on the restrictive 16 PCIe lanes available on the 1155 socket boards given I am only looking at one decent Graphics card is this a chip I should avoid (as I have read this can cause latency with only one graphics card)?
    Another thing I have noticed is some boards have a PLX PEX8608 chip which seems to manage the limited PCIe lanes better if other cards are plugged in?
    I also see some boards have the Marvell Sata 3 controller on them that does not seem to perform as well as the native Intel Sata 3 controller on the Southbridge in tests.  I guess I have no real idea of when I would be looking at stretching the bandwidth and wonder whether I need to concern myself with 4 x sata 3 connections (2 intel and 2 Marvell)?
    One last question I see there is now MOBO's available with PCIe 3.0 available (even though there are no devices that can utilize it) is this even worth being a consideration or is it not really of any importance to the slection process?
    In summary it appears there is lots of goodies on offer with different chipsets and boards, however I do not want to waste budget on things I have no use for or gimmicks.
         CPU Cooler
    It is my intent to start with the factory supplied Intel bundled cooler and invest the money not spent on this item on better graphics card etc. For moderate Overclocking it seems to perform ok.... am hoping this will be ok?
        HDD Storage
    At this stage I am not up to speed with the exact storage devices I need, I am initially looking at whether my ideas for a storage system have merit? Please bear in mind I am not a CSpro user as of yet and so some of this is just based on research with no base knowledge....?
    1 x ~120Gb SSD                                    for OS and Programs
    1 x ??Gb/TB HDD 7200 rpm                    for Media Projects
    2 x ?? Gb/TB HDD 7200 rpm in raid "0"    for Media Cache and Preview Files
    Will the onboard Raid controller accommadate the above adequately?
        Graphics Card
    I am looking at Nvidia as far as I can tell so that I may make use of the CUDA threads and as far as type I assume I pick the best one of the approved list (adobe approved list)?  I am still confused ast to whether there is any benefit from a using a twin GPU card, its unclear to me whether the CUDA can tap into both of the GPU's on such a card? Of course budget restraint will come into play here.
         Ram
    I am looking at 4 x 4gb dual channel Ram cards to give a total of 16Gb total (DDR 3)  as for brands, types and frequencies I have no idea yet and need to cover off some of the above first before my research gets too wide?
         PSU and Case
    I am hoping for a modular device for this, however I was thinking this and the case are a low priority at this stage (until some of the other solutions are verified).
         Blur Ray writer /reader
    With me using my NAS for media streaming I will not be burngin to many Blu ray disks, however I will be reading a few so that I can upload them onto the NAS via this unit.  I have no idea what is a good or bad unit or what to look for in this area?
         Monitor
    I have found some cheap solutions in the 23" sizing for a main screen (~160 AUD) supported by my existing 17' monitor, however is there anything I should be looking for in particular with the monitor I choose?
    I will update each section with what is decided on so that it may help others who are having the same tough decisions to make?
    Even if we just tackle the Motherboard first I would be greatfull...
    Thanks for reading and again all assistance is appreciated.
    Regards
    Jody

    Ok well after much reading I have got the following as the setup that shoe horns in at $2500 ish...
    Interested in thoughts for Premiere pro:
    Component Model $ each Stat Ice Store
    Case
    UNKNOWN AT THIS STAGE BUDGET $200
    Power Supply
    FSP Aurum Series 750W Modular Power Supply $139.00 PCCASEGEAR
    Motherboard
    ASUS P8P67 Deluxe REV 3 $212.00 I-Store
    Processor
    Intel I7 2600k Gen 2 $324.00 All needs Computer
    CPU Cooling
    Thermalright Silver Arrow CPU Cooler $89.00 PCCASEGEAR
    Memory
    G.Skill Ripjaws X F3-12800CL8D-8GBXM (2x4GB) DDR3 $79.00 $158.00 PCCASEGEAR
    OS/Programs Drive
    Patriot 120G Wildfire SSD SATA3  $289.00 Umart
    Capture/work Drive
    2 x  Samsung SpinPoint F3 1TB HD103SJ setup in Raid "0" $54.00 $108.00 Green Box IT
    Render to Drive
    2 x  Samsung SpinPoint F3 1TB HD103SJ setup in Raid "0" $54.00 $108.00 Green Box IT
    Dual/Quad Head Video
    Gigabyte GeForce GTX 580 Super Overclock $589.00 PCCASEGEAR
    DVD-RW
    LG BH12LS38 Optical Media (OEM) $68.71 Mega Buy
    Operating System
    Windows 7 64 Bit Pro $129.00 Umart
    Monitor
    Samsung S23A300B 23in Widescreen LED Monitor $149.00 Netplus  $2,362.71
    Total
    This will be supported by a 10tb 5 disc NAS on Gigabit connection for long term secure storage.

Maybe you are looking for

  • Is CS2 free for everyone?

    I've researched and cannot find a for sure answer. I am unable to call Adobe, and unable to find an email for them. The question is; although it's possible to download and install Photoshop CS2 from Adobe's website, is it intended and legal to do so

  • Personnel Cost Planning - Projecting Headcount changes

    Hello, I'm implementing PA-CP and am coming up with options for the client to project headcount changes for next years budget.  They currently use a spreadsheet approach and will, for example, forecast that cost centre xxxx requires 5 positions at le

  • Site still starred after bookmark has been deleted

    I was clearing old bookmarks and noticed that one site still shows up in autocomplete and is starred even though the associated bookmark has been deleted. Also, when I try to visit the site and go to the Edit Bookmark dialogue box by clicking on the

  • Failed connection to httpmail account

    I have been using Hotmail as my mail account for several years without a problem. Today I couldn't get any mail and received the message "Connection failed. Can't connect to httpmail account. Access to Hotmail via outlook and outlook express now requ

  • Bridge CS5 using lots of memory and give out-of-memory errors

    Hi, I'm using Bridge CS5 with the latest updates on Vista 32bit 4GB RAM on quad core machine. Bridge memory seems to keep raising during the usage, browsing a new folder seems to raise it a bit and previewing files raise it alot, mainly when I previe