CSS isn't changing XML File

I'm working on the example attached trying to get my css to alter the colour of my xml links. Despite doing what the forums say you should it's not working. What am I doing wrong? Thanks
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/css" href="style.css"?>

I assume I put this code at the bottom of my current AS?
When I run the fla I get the following message:
Error opening URL "file:///C|/Documents%20and%20Settings/Jen/Desktop/xml/undefined"
It still displays my xml info but there is no colour change. This is how my current AS is looking:- Thanks
function loadXML(loaded) {
if (loaded) {
_root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
name_txt.text = _root.inventor;
comment_txt.htmlText = _root.comments;
} else {
  trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("inventors.xml");
var myCSS = new TextField.StyleSheet();
myCSS.load(style.css);
// define onLoad handler
myCSS.onLoad = function(success) {
    if (success) {
        name_txt.styleSheet = myCSS; // where myTextField_txt is your textfield's instance name
        // call a funciton to assign your text to myTextField_txt
    } else {
        name_txt.text = "CSS file failed to load!";

Similar Messages

  • Updating flash from a dynamically changing XML file

    Creating a non-interactive status display: I want to have the
    flash display reflect data in a server-based XML-file. So far this
    is easy. But I want the display to change everytime the XML file
    changes-- in order to reflect status changes. I've used an
    XMLConnector and specified it and the trigger in the first frame.
    The Flash code catches and shows the XML values initially . But
    when I edit the XML file, the new values are never picked up by
    Flash- its almost as though the values are cached. How do I get
    Flash to regularly be updated from a changing XML file? I've also
    tried putting the trigger in a loop- but that doesn't work
    either.

    I DID find a solution with setInterval, but there is still a
    problem of a diffeent sort.
    When using XMLConnector, it appears that
    XMLConnector.trigger() is the thing that goes out and gets new data
    from the server. so:
    function checkForData():Void {
    myXML.trigger();
    <<handle new values of bound data>>
    var intervalID:Number = setInterval(checkForData, 10000);
    works very well by executing the trigger every 10000
    timeunits. This all works when run in the Flash Player. However, if
    I embed the thing in a webpage (with either FireFox or IE7 or 6),
    It stops triggering after the first time. Interestingly if I also
    run the Flash Player version, then the web version keeps updating,
    but stops if I kill the Player. So, I'm wondering: whats up with
    this?

  • Connecting a CSS doc to an XML file, in a dynamic text field in Flash

    Hi all,
    I am trying to connect a CSS file such that it applies it
    self to the content of an XML file, viewed inside a dynamic text
    field. So far I have managed to gather the code that "calls" the
    contents of the XML file and also the code that calls the CSS file.
    However, when I test the flash movie I get "undefined" instead of
    the actual copy.
    Attached then is the the AS code, XML file, and CSS file. I
    hope you could help me connect everything together.
    And of course, THANKS!!
    -----AC------
    Scrolling Text XML by Digital Science |
    www.digitalscience.za.org
    /////////////Load XML Data/////////////
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    header = [];
    txt = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    header
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    txt
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    gotoAndStop(11);
    } else {
    errorMsg.text = "Error loading XML";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("ewmn_content.xml");
    stop();
    import TextField.StyleSheet;
    var ss:StyleSheet = new StyleSheet();
    ss.onLoad = function() {
    txt_mc.styleSheet=this; // where yourTF is your textfield
    ss.load("jokes.css"); // where yourSS.css is your css file.
    -----XML----------
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/css" href="jokes.css"?>
    <JOKES>
    <ONE>Tirza Sapir</ONE>
    <JOKE>Founder and choreographer of the RikudNetto dance
    group, teacher and lecturer, researcher, documenter and
    choreographer within the framework of Eshkol-Wachman Movement
    Notation. She was Head of the School of the Arts of Dance at the
    Seminar Hakibbutzim College of Education, 2000–2007, where
    she established the Dance Theatre and the Practicing Teachers
    courses, and specialized training in Teaching and Treatment of
    Learning Disabilities by means of Eshkol-Wachman Movement Notation.
    She has written three books containing the movement scores of dance
    suites: Birds, Landscapes, and Hanukka Notebooks. Member of the
    Movement Notation Society, 1968–2008. Student and colleague
    of the late Professor Noa Eshkol who was the co-founder and
    inventor of Eshkol-Wachman Movement Notation.</JOKE>
    <ONE>Sharon Reshef-Armony</ONE>
    <JOKE>Head of the School for the Arts of dance at the
    Kibbutzim College of Education in Tel Aviv. Teaches EWMN,
    dance-theatre and composition. Choreographer of theatre plays and
    film. Selected works: Hunger (Tmuna Theatre 2003-09), Film - Live
    (Haifa Theatre 2007-08), Yakish &amp; Pupche (Gesher Theatre
    2007-09), Children of a lesser God (Beer Sheva Theatre 2008-09).
    M.Ed (1997) from Lesley College MA in Creative Arts in Learning.
    Doctoral student at ResCen, Middlesex University/ London.
    Dancing in Rikudnetto group since 1990.</JOKE>
    <ONE>Tally Ronen</ONE>
    <JOKE>M.Ed. at Lesley University in Integrating Arts in
    Learning.
    Educational instructor at Kibbutzim College of Education and
    teaching dance in schools and at Clore Center, Upper Galilee. Dance
    choreographer for children.
    Dancing in Rikudnetto group since 1991.</JOKE>
    <ONE>Nira Al-Dor, Ph.D</ONE>
    <JOKE>20 years of Teaching EWMN at the School of the
    Dance Arts in Kibbuzim College of Education and at the School of
    Arts in Tel Aviv. Her study was focused on the impact of learning
    EWMN on the development of coordination.
    Dancing in Rikudnetto group since 1986.</JOKE>
    <ONE>Henner Drewes</ONE>
    <JOKE>Lectures at the Kibbutzim College of Education in
    Tel Aviv on dance and notation related technology. In 2008 he
    started working as a research assistant at Salzburg University in
    the project Visualizing Dance Archives.
    He was awarded the Tanzwissenschaftwpreis NRW, Germany 2006
    for his research on 3D representation of movement and notation.
    Ph.D. (2002) at the University of Leipzig. He is the author
    of the software EW Notator, a 'word-processor' for creating EWMN
    scores.</JOKE>
    <ONE>Shlomit Ofer</ONE>
    <JOKE>M.A. at Haifa University at the Faculty of
    Education with distinction, and currently doctoral student there.
    Educational instructor and teacher of EWMN at Kibbutzim
    College of Education. Staging performances of dance theatre in the
    community.
    Dancing in Rikudnetto group since 1993.</JOKE>
    <ONE>Lilach Shalit</ONE>
    <JOKE>M.A. in Expressive Therapies with specialization
    in dance-movement therapy at Lesley University.
    Educational instructor and teacher of EWMN in the course for
    Dance-Theatre at Kibbutzim College of Education. Also teaching EWMN
    in the School for Advanced Studies of the college, course for
    Learning Disabilities, and at Orot College.
    Dance-movement therapist and team coordinator at 'Tom' school
    for learning disabilities and owner of a private clinic for
    dance-movement therapy.
    Dancing in Rikudnetto group since 1998.</JOKE>
    <ONE>Michal Manor-Amir</ONE>
    <JOKE>M.A. at the University of Leeds (Bretton Hall
    College and Israel Extention) in Arts Education specialization in
    Dance. Doctoral student at the Hebrew University of Jerusalem, in
    the Faculty of Humanities, the School of Education.
    Teaching movement in the Kibbutzim College of Education
    within preparatory courses of Dance, Dance-Theatre and within the
    Preschool course.
    A corrective teacher through movement and EWMN in elementary
    and high schools, and a national teacher-instructor at the dance
    supervisor's office in the Israeli ministry of education.
    Dancing in Rikudnetto group since 1998.</JOKE>
    <ONE>Amit Chesny-Bahari</ONE>
    <JOKE>B.Ed. at Kibbutzim College of Education.
    Teaching movement and dance to preschool and high school
    children.
    Dancing in Rikudnetto group since 2004.</JOKE>
    <ONE>Orly Yaakov</ONE>
    <JOKE>B.Ed. at Kibbutzim College of Education, and
    graduating from the special education faculty.
    Teaching EWMN and creative movement at elementary schools as
    well as special education school for children ages 6-21 with medium
    to deep retardation. Also teaching creative movement and
    preparation for ballet to preschool children.
    Dancing in Rikudnetto group since 2006.</JOKE>
    </JOKES>
    ------CSS-----
    JOKE
    COLOR: #333333;
    DISPLAY: block;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    WHITE-SPACE: normal;
    font-size: 11px;
    MARGIN-BOTTOM: 15px;
    BODYBLD
    COLOR: #990000;
    DISPLAY: block;
    FONT-SIZE: 11pt;
    FONT-WEIGHT: bold;
    MARGIN-BOTTOM: 0px
    BODYBOLDUN
    COLOR: #00CCFF;
    DISPLAY: block;
    LINE-HEIGHT: normal;
    MARGIN-BOTTOM: 10px;
    TEXT-ALIGN: left;
    font-size: 11px;
    text-decoration: underline;
    font-weight: bold;
    ONE
    COLOR: #00CCFF;
    DISPLAY: block;
    LINE-HEIGHT: normal;
    TEXT-ALIGN: left;
    font-size: 14px;
    font-weight: bold;
    white-space: normal;
    QUESTION
    COLOR: red;
    DISPLAY: block;
    FONT-FAMILY: Arial;
    FONT-SIZE: larger;
    FONT-VARIANT: normal
    TITLE
    COLOR: black;
    DISPLAY: block;
    FONT-FAMILY: 'Arial Black';
    FONT-SIZE: 14pt
    CATEGORY
    FONT-FAMILY: Arial;
    FONT-SIZE: 8pt;
    FONT-VARIANT: small-caps;
    TEXT-TRANSFORM: uppercase

    In essence you can just do:
    TextField.text = XML.node1 + XML.node2;

  • PLSQL changing XML file content

    Hello Experts,
    I have a task to do.
    I have to replace special characters from an XML file placed on the server through PLSQL.
    So that i created a plsql procedure.
    PROCEDURE REMOVE_SPECIAL_CHARS (p_file_name IN VARCHAR2)
    AS
    l_tmp_clob       CLOB                             DEFAULT EMPTY_CLOB();
    l_bfile          BFILE NULL;
    l_dest_offset    INTEGER            := 1;
    l_src_offset     INTEGER            := 1;
    l_outfile        UTL_FILE.file_type;
    lang_ctx         NUMBER             := DBMS_LOB.default_lang_ctx;
    warning          NUMBER NULL;
    l_dest_file      VARCHAR2(300) NULL;
    BEGIN
    mob_util_pck.log_write ('I','Inside REMOVE_SPECIAL_CHARS procedure(+)');
    l_dest_file:=SUBSTR (p_file_name, (INSTR (p_file_name, '/', -1, 1))+1);
    mob_util_pck.log_write ('I','Following File will be modified: '||l_dest_file);  
       l_bfile := BFILENAME ('MOBSEPAOUT', l_dest_file);
       DBMS_LOB.OPEN (l_bfile, DBMS_LOB.file_readonly);
       DBMS_LOB.createtemporary (l_tmp_clob, TRUE);
       DBMS_LOB.loadclobfromfile (dest_lob          => l_tmp_clob
                                , src_bfile         => l_bfile
                                , amount            => DBMS_LOB.getlength (l_bfile)
                                , dest_offset       => l_dest_offset
                                , src_offset        => l_src_offset
                                , bfile_csid        => DBMS_LOB.default_csid
                                , lang_context      => lang_ctx
                                , warning           => warning
       DBMS_LOB.CLOSE (l_bfile);
    mob_util_pck.log_write ('I','Deleting Old File');
       BEGIN
          mob_util_pck.delete_files ('MOBSEPAOUT'
                                   , l_dest_file
       END;
    mob_util_pck.log_write ('I','Before Replacing Characters');
       l_tmp_clob := REPLACE (l_tmp_clob, '€', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, '@', '(at)');
       l_tmp_clob := REPLACE (l_tmp_clob, '&', '+');
       l_tmp_clob := REPLACE (l_tmp_clob, 'à', 'a');
       l_tmp_clob := REPLACE (l_tmp_clob, 'é', 'e');
       l_tmp_clob := REPLACE (l_tmp_clob, 'è', 'e');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ç', 'c');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ù', 'u');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ï', 'i');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ù', 'u');
       l_tmp_clob := REPLACE (l_tmp_clob, '[', '(');
       l_tmp_clob := REPLACE (l_tmp_clob, ']', ')');
       l_tmp_clob := REPLACE (l_tmp_clob, '\', '/');
       l_tmp_clob := REPLACE (l_tmp_clob, '^', '.');
       l_tmp_clob := REPLACE (l_tmp_clob, 'ù', 'u');
       --l_tmp_clob := REPLACE (l_tmp_clob, '_', '-');
       l_tmp_clob := REPLACE (l_tmp_clob, '`', '''');
       l_tmp_clob := REPLACE (l_tmp_clob, '{', '(');
       l_tmp_clob := REPLACE (l_tmp_clob, '|', '/');
       l_tmp_clob := REPLACE (l_tmp_clob, '}', ')');
       l_tmp_clob := REPLACE (l_tmp_clob, '~', '-');
       l_tmp_clob := REPLACE (l_tmp_clob, 'À', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Á', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Â', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ã', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ä', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Å', 'A');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ç', 'C');
       l_tmp_clob := REPLACE (l_tmp_clob, 'È', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'É', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ê', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ë', 'E');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ì', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Í', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Î', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ï', 'I');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ñ', 'N');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ò', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ó', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ô', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Õ', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ö', 'O');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ù', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ú', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Û', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ü', 'U');
       l_tmp_clob := REPLACE (l_tmp_clob, 'Ý', 'Y');
       mob_util_pck.log_write ('I','After Replacing Special Characters');
       mob_util_pck.log_write ('I','Before Creating New File '||l_dest_file);
       DBMS_XSLPROCESSOR.clob2file(l_tmp_clob, 'MOBSEPAOUT', l_dest_file);
       mob_util_pck.log_write ('I','After Creating New File '||l_dest_file);
       mob_util_pck.log_write ('I','Inside REMOVE_SPECIAL_CHARS procedure(-)');
    END REMOVE_SPECIAL_CHARS;
    This procedure is working fine for some special characters. But some special characters are getting replaced by different characters before performing the replace so it is causing wrong replacement of characters.
    eg- i need to replace & by +
    but it is changing it to +amp which is incorrect.
    Is it something related to characters encoding?
    Please help.
    Regards-
    Vikrant

    eg- i need to replace & by +
    but it is changing it to +amp which is incorrect.
    Is it something related to characters encoding?
    Due to its special meaning in the XML language, occurrences of the ampersand character '&' have be escaped to &amp; as well as '<', '>' and '"' respectively to &lt;, &gt; and &quot;.
    So in short, do not replace the ampersand character.

  • Changing XML file

    All,
    I am very new to OA Framework and this is my assignment in OA Framework to customize a page.
    Basically i have to modiy a query of an LOV.
    The query is in an XML file i.e ExpenseTemplatesVO.xml
    I have two questions :
    1) Steps on how to modify this query. Can i simply change this query and copy back the XML file.
    2) I need to get Responsiblity id in this query. How can i get this?
    Any help is greatly appreciated.
    Thanks

    1) Steps on how to modify this query. Can i simply change this query and copy back the XML file.If you are planning to add whereClause then you can go for Controller extension. We never change the seeded oracle files. We always extend these classes so to retain the existing functionality.
    And if you want to add one attribute in the VO query then you have to go for View Object Substitution. You can find N number of links on Google and also search in Old thraeds.
    2) I need to get Responsiblity id in this query. How can i get this?It can be capture by using the below syntax in the extended controller:
    String respId = pageContext.getResponsibilityId();
    String respName = pageContext.getResponsibilityName();
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • Can't change xml file

    I am trying to import files from an external drive. I was able to do the add file to library from the drive but whenever I reload itunes it expects the files to be on my external drive which I have removed. I tried to change the location of the files in the itunes music library xml file but everytime I bring up itunes it changes the file location back to the original file on the external hard drive. I physically copied the files from the external drive to my itunes directory but itunes refuses to let me manually change the xml file to reflect the new location. Does anyone have a clue as to how I can update the xml file to point to the itunes directory for these imported songs rather than pointing back to the external drive?

    Bart_Blommaerts wrote:
    2: I set the "&#235 ;" value myself ..The problem setting this value in your Java code is that ... &#235; cannot be used to escape anything in Java, it only can be used to escape characters in an XML file.
    This is why an XML parser will automatically translate this value for you when it parses the XML file. The dom4j Document object will never see this value and when you do a getText() the resolved value is returned.
    Instead in Java you should use either the '�' value (make sure to save your Java files as Unicode) or you could use the Java way to escape characters: \u00EB.
    I was satisfied with the "�" in my XML file ... but when I deployed the application to the webserver .. and generated an XML-file I read "��", which is definitely not what I want ..
    So on my local Tomcat5 server I get "�". On the SunWappserver I get "��".This seems to be a different problem. When you read the file, you will have to make sure to read the file with the encoding that it was saved in. This means that the editor that you use to read the file will have to be able to read files encoded using UTF-8 (Unicode).

  • "PLS-00172: string literal too long" When Writing XML file into a Table

    Hi.
    I'm using DBMS_XMLStore to get a XML file into a db table. See the example below, I'm using that for my PL/SQL format. Problem is that because there're too many XML elements that I use in "xmldoc CLOB:= ...", I get "PLS-00172: string literal too long" error.
    Can someone suggest a workaround?
    THANKS!!!
    DECLARE
    insCtx DBMS_XMLStore.ctxType;
    rows NUMBER;
    xmldoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <EMPNO>7369</EMPNO>
    <SAL>1800</SAL>
    <HIREDATE>27-AUG-1996</HIREDATE>
    </ROW>
    <ROW>
    <EMPNO>2290</EMPNO>
    <SAL>2000</SAL>
    <HIREDATE>31-DEC-1992</HIREDATE>
    </ROW>
    </ROWSET>';
    BEGIN
    insCtx := DBMS_XMLStore.newContext('scott.emp'); -- get saved context
    DBMS_XMLStore.clearUpdateColumnList(insCtx); -- clear the update settings
    -- set the columns to be updated as a list of values
    DBMS_XMLStore.setUpdateColumn(insCtx,'EMPNO');
    DBMS_XMLStore.setUpdateColumn(insCtx,'SAL');
    DBMS_XMLStore.setUpdatecolumn(insCtx,'HIREDATE');
    -- Now insert the doc.
    -- This will only insert into EMPNO, SAL and HIREDATE columns
    rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
    -- Close the context
    DBMS_XMLStore.closeContext(insCtx);
    END;
    /

    You ask where am getting the XML doc. Well, am not
    getting the doc itself.I either don't understand or I disagree. In your sample code, you're certainly creating an XML document-- your local variable "xmldoc" is an XML document.
    DBMS_XMLSTORE package needs
    to know the canonical format and that's what I
    hardcoded. Again, I either don't understand or I disagree... DBMS_XMLStore more or less assumes the format of the XML document itself-- there's a ROWSET tag, a ROW tag, and a then whatever column tags you'd like. You can override what tag identifies a row, but the rest is pretty much assumed. Your calls to setUpdateColumn identifies what subset of column tags in the XML document you're interested in.
    Later in code I use
    DBMS_XMLStore.setUpdateColumn to specify which
    columns are to be inserted.Agreed.
    xmldoc CLOB :=
    '<ROWSET>
    <ROW num="1">
    <KEY_OLD> Smoker </KEY_OLD>
    <KEY_NEW> 3 </KEY_NEW>
    <TRANSFORM> Specified </TRANSFORM>
    <KEY_OLD> Smoker </KEY_OLD>
    <VALUEOLD> -1 </VALUEOLD>
    EW> -1 </VALUENEW>
         <DESCRIPTION> NA </DESCRIPTION>
    </ROW>
    ROWSET>';This is your XML document. You almost certainly want to be reading this from the file system and/or have it passed in from another procedure. If you hard-code the XML document, you're limited to a 32k string literal, which is almost certainly causing the error you were reporting initially.
    As am writing this I'm realizing that I'm doing this
    wrong, because I do need to read the XML file from
    the filesystem (but insert the columns
    selectively)...What I need to come up with is a proc
    that would grab the XML file and do inserts into a
    relational table. The XML file will change in the
    future and that means that all my 'canonical format'
    code will be broken. How do I deal with anticipated
    change? Do I need to define/create an XML schema in
    10g if am just inserting into one relat. table from
    one XML file?What does "The XML file will change in the future" mean? Are you saying that the structure of the XML document will change? Or that the data in the XML document would change? Your code should only need to change if the structure of the document changes, which should be exceptionally uncommon and would only be an issue if you're adding another column that you want to work with, which would necessitate code changes.
    I found an article where the issue of changing XML
    file is dealt by using a XSL file (that's where I'd
    define the 'canonical format'), but am having a
    problem with creating one, because the source XML is
    screwed up in terms of the format:
    it's not <x> blah </x>
    <x2> blah </x2>
    x2="blah" x3="blah> ...etc
    Can you point me in the right direction, please?You can certainly use something like the DBMS_XSLProcessor package to transform whatever XML document you have into an XML document in an appropriate format for the XMLStore package and pass that transformed XML document into something like your sample procedure rather than defining the xmldoc local variable with a hard-coded document. Of course, you'd need to write appropriate XSL code to do the actual transform.
    Justin

  • How to populate a form from an xml file with multiple records

    I want to be able to create a single form that will add pages as needed based upon the number of records being imported from an xml file.
    I have an IRS form that does this exactly, but I do not know how to re-create it.  I entered data into the form, then exported that data to xml.  Then I opened that xml file in excel and added more records (this is just an easy way to manage the xml data in a tabular form).  Then I import the changed xml file into the IRS form and it adds as many pages as I have records.  Perfect!  Unfortunately, I cannot edit the form to examine the technique.  It does not appear to be relying upon any additional local javascript files.  It does use an 'add page' button which may suggest the form is using the template .spawn() technique, but when I try that in my own form, it gives me unique field names for each page which are then not consistent with the xml data.  Hopefully someone can help me understand what I am missing.

    did you want
    <record>0
    <data>"11.97.23.174/32"
    <record>address <data>
    <record>address <data>
    <record>subnet <data>
    <record>ip <data>"10.97.23.174"</data></record>
    </data></record>
    </data></record>
    </data></record>
    </data></record>
    or
    <record>0
    <data>"11.97.23.174/32"
    <record>address <data>
    <record>address <data>
    <record>subnet <data>
    <record>ip <data>"10.97.23.174"</data></record>

  • Xml file parse  event base

    hello all,
    i am learning xml file with sap help sample. I have a FM, that change xml-file into if_ixml_parser, but when i wrote the xml " <person status="retired">Walt Whitman</person>" and debug it.
    event_sub was 312, <b>event was always initial</b>.
    data: event     type ref to if_ixml_event,
            event_sub type i.
    let the parser know which events I am interested in
    event_sub = if_ixml_event=>co_event_element_pre2 +
                if_ixml_event=>co_event_element_post.
    parser->set_event_subscription( events = event_sub ).
    do.
      event = parser->parse_event( ).
      if event is initial.
        exit. ' either end reached or error (check below)
      endif.
      data: str type string.
      case event->get_type( ).
        when if_ixml_event~co_event_element_pre2.
          str = event->get_name( ).
          write: '<' str '>'.
        when if_ixml_event~co_event_text_post.
          str = event->get_value( ).
          write: str.
      endcase.
    enddo.
    Thanks for Request.
    <a href="http://help.sap.com/saphelp_nwmobile71/helpdata/de/47/b5413acdb62f70e10000000a114084/frameset.htm">sap library - Parsing an XML document event-based</a>
    Best regards
    Shuo

    Hi,
         reference link:
    http://help.sap.com/saphelp_nw04/helpdata/en/fd/9d7348389211d596a200a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/576670dca511d4990b00508b6b8b11/content.htm
    Please see the PDF document which tells you how to develop with KM API's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/aef1a890-0201-0010-6faf-8fa094808653
    Regards

  • XML File Tags Validation Using Oracle.

    Dear Forum Members,
    I have a doubt regarding XML File Tags Validation.
    First I will explain My Requirement.
    1. I have to generate an XML File in a Predefined Format.
    2. User will add some data in the elements, or he may copy the same elements and change to some data like
    <Emp><Empno>10</Empno></Emp>
    The above tag will be generated by the application.
    User will copy the same and change to
    <Emp><Empno>20</Empno></Emp>.
    Now he want to Upload the Changed XML File to the Database table. This is done by parsing the XML File.
    The Creation and Parsing section is over. But before Parsing I want to check for the Validation of the XML Tag. i.e. whether the tag he has copied <Emp><Empno>10</Empno></Emp> is chaned by mistake to
    <Emp><Empno>10</Empno></Emps> or some other Mistakes.
    What I have to Do..
    Regards
    Madhu K

    I still think that my previous response is valid:
    If you e.g. include (concat) your DTD in your XML it will be validated against it!
    See e.g.:
    michaels>  select xmltype (xml_dtd || your_xml) your_validated_xml
      from (select '<SSDDATA>
                     <KEY><![CDATA[6707]]></KEY>
                     <FINISHED><![CDATA[This is a Finished data ]]></FINISHED>
                     <DEFAULT></DEFAULT>
                     <MIN></MIN>
                     <MAX></MAX>
                     <UNIT></UNIT>
                     <FORMULA></FORMULA>
                     <FORMULA></FORMULA>
                     <FORMULA-DESC></FORMULA-DESC>
                     <ADVANCED-FORMULA></ADVANCED-FORMULA>
                     <INTERNAL-ADAPT-DESC></INTERNAL-ADAPT-DESC>
                     <DATA-DESC-REPORT></DATA-DESC-REPORT>
                     <REV-DESC></REV-DESC>
                    </SSDDATA>' your_xml,
                   '<?xml version="1.0"?>
                    <!DOCTYPE SSDDATA [
                      <!ELEMENT SSDDATA (KEY,FINISHED,DEFAULT,MIN,MAX,UNIT,(FORMULA)+,FORMULA-DESC,ADVANCED-FORMULA,INTERNAL-ADAPT-DESC,DATA-DESC-REPORT,REV-DESC)>
                      <!ATTLIST SSDDATA xmlns CDATA #FIXED "">
                      <!ELEMENT KEY (#PCDATA)>
                      <!ATTLIST KEY xmlns CDATA #FIXED "">
                      <!ELEMENT FINISHED (#PCDATA)>
                      <!ATTLIST FINISHED xmlns CDATA #FIXED "">
                      <!ELEMENT DEFAULT EMPTY>
                      <!ATTLIST DEFAULT xmlns CDATA #FIXED "">
                      <!ELEMENT MIN EMPTY>
                      <!ATTLIST MIN xmlns CDATA #FIXED "">
                      <!ELEMENT MAX EMPTY>
                      <!ATTLIST MAX xmlns CDATA #FIXED "">
                      <!ELEMENT UNIT EMPTY>
                      <!ATTLIST UNIT xmlns CDATA #FIXED "">
                      <!ELEMENT FORMULA EMPTY>
                      <!ATTLIST FORMULA xmlns CDATA #FIXED "">
                      <!ELEMENT FORMULA-DESC EMPTY>
                      <!ATTLIST FORMULA-DESC xmlns CDATA #FIXED "">
                      <!ELEMENT ADVANCED-FORMULA EMPTY>
                      <!ATTLIST ADVANCED-FORMULA xmlns CDATA #FIXED "">
                      <!ELEMENT INTERNAL-ADAPT-DESC EMPTY>
                      <!ATTLIST INTERNAL-ADAPT-DESC xmlns CDATA #FIXED "">
                      <!ELEMENT DATA-DESC-REPORT EMPTY>
                      <!ATTLIST DATA-DESC-REPORT xmlns CDATA #FIXED "">
                      <!ELEMENT REV-DESC EMPTY>
                      <!ATTLIST REV-DESC xmlns CDATA #FIXED "">
                    ]>' xml_dtd
              from dual)
    YOUR_VALIDATED_XML                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    <?xml version="1.0"?>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                    <!DOCTYPE SSDDATA [                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ELEMENT SSDDATA (KEY,FINISHED,DEFAULT,MIN,MAX,UNIT,(FORMULA)+,FORMULA-DESC,ADVANCED-FORMULA,INTERNAL-ADAPT-DESC,DATA-DESC-REPORT,REV-DESC)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ATTLIST SSDDATA xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ELEMENT KEY (#PCDATA)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ATTLIST KEY xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT FINISHED (#PCDATA)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ATTLIST FINISHED xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                      <!ELEMENT DEFAULT EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ATTLIST DEFAULT xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ELEMENT MIN EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ATTLIST MIN xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT MAX EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ATTLIST MAX xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT UNIT EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                      <!ATTLIST UNIT xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                      <!ELEMENT FORMULA EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ATTLIST FORMULA xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
                      <!ELEMENT FORMULA-DESC EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ATTLIST FORMULA-DESC xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                      <!ELEMENT ADVANCED-FORMULA EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ATTLIST ADVANCED-FORMULA xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ELEMENT INTERNAL-ADAPT-DESC EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ATTLIST INTERNAL-ADAPT-DESC xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                      <!ELEMENT DATA-DESC-REPORT EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ATTLIST DATA-DESC-REPORT xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                      <!ELEMENT REV-DESC EMPTY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                      <!ATTLIST REV-DESC xmlns CDATA #FIXED "">                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                    ]><SSDDATA>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                     <KEY><![CDATA[6707]]></KEY>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
                     <FINISHED><![CDATA[This is a Finished data ]]></FINISHED>                                                                                                                                                                                                                                                                            

  • Does creation of new xml file captures latest value?

    HI All,
    say for instance, if web port has been changed from 8000 to 80 and after this change xml file gets corrupted in apps tier...
    Does creation of new xml file in apps tier captures latest value of web port 80 and all other latest changes made so far?
    Thanks for your time...

    HI All,
    say for instance, if web port has been changed from
    8000 to 80 and after this change xml file gets
    corrupted in apps tier...
    Does creation of new xml file in apps tier captures
    latest value of web port 80 and all other latest
    changes made so far?
    Thanks for your time...If autoconfig is not run after the changes are made to the context file, and the file is lost then the changes are lost.

  • I have xml files with css. IE displays them correctly but FF 4 does not. How can I fix this?

    I try to use FF for everything but this is the one thing I can't get it to do and I hate to have IE as my only choice for viewing these files correctly.
    They are for school, but I would still like to use them for websites I design.

    I will also try there but this isn't just a web design problem.
    XML files are used a lot and when formatted with CSS or XSLT can usually be viewed like a regular web page. So if I went to a website and they were showing me this file or I upload this file I would like to be able to view it. I know I can open IE and problem solved but I don't want to use it. I thought IE was behind me because FF did everything I needed until now.

  • Why is the assests panel disabled when editing css or xml files?

    It's immensely annoying. Is there anyway to stop it?

    That doesn't really explain why a very useful panel is disabled. What's the logic behind it?
    This is a user-to-user forum, not Adobe customer support. You asked whether there was any way to prevent the Assets panel from being disabled when editing CSS and XML files. The answer is no.
    If you want Adobe to change the way the program works, file a feature request.

  • Trying to dynamically load CSS for project at compile time via config XML file to select CSS file.

    I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
    The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
    I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
      styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
    The path traces out correctly as:
    assets_embed/styles/project2.swf
    For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
      <fx:Style source="assets_embed/styles/project1.css"/>
    If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
    So, why do I need the fx:Style line if the css is being loaded via StyleManager?
    Why is there "cross talk" between style definitions?
    Is there a better way to select styles at compile time?

    I read this quickly so I might have missed a detail.  I think your describing an issue with recent Flex releases that is described in the fine print somewhere.  If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
    import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
    (Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking).

  • Changing xwork-community-custom.xml file in Forums Application

    Hi,
    could someone give me details on how to customize the file xwork-community-custom.xml, to override actions defined in xwork-community.xml?
    My problem in detail:
    I want to delete the "My questions" area in profile view, because we don´t have a "question scenario" in our company.
    As it is no jsp file, that i can directly change, but a ftl file that is included in the forums.jar file I want to override the actions "profile" and "edit-profile", which are included in xwork-community.xml, so that I dont´t have to change the jar file directly . The file now looks like that:
    <xwork>
        <package name="custom-actions" extends="webwork-default">
         <action name="profile" class="com.jivesoftware.profiles.action.ViewProfile">
                <result name="success" type="freemarker">myfile.ftl</result>
            </action>
            <action name="edit-profile" class="com.jivesoftware.profiles.action.EditProfile">
                <result name="cancel" type="redirect">profile.jspa?editMode=true&amp;userID=${targetUser.ID}</result>
                <result name="input" type="freemarker">myfile.ftl</result>
                <result name="success" type="redirect">profile.jspa?editMode=true&amp;userID=${targetUser.ID}</result>
            </action>
        </package>
    </xwork>
    For that I copied this two actions in "xwork-community-custom.xml" and now want to change the value for e.g.
    "/templates folder.
    What do I have to write in the xml to reference to this file? In jive forum s.o. wrote to write only the the file name as reference and that this has the effect that ftl file fromtheme folder is taken, but that didn´t work.
    I tried nearly everything but it has no effect. I also restarted server etc.
    Every other change was no problem, and even if i place a ftl file in themes folder which has the same name as as JSP file the framework tries to render the ftl file, but in the other case no chance.
    Could someone please give a tip, how i can do my changes?
    Many thanks
    Best regards
    Alex

    for all who want to get a little bit deeper in Jive application, than configuring things with admin console....solution was the following:
    - look for ftl file in xwork-community.xml file, which is responsible for the specific action (in my case cp-tabs.ftl)
    - look for the path of the original ftl file in jiveforums-<version>.jar
    - extract ftl file you want to modify and do your changes
    - have a look into ..../com.sap.netweaver.coll.forums/servlet_jsp/forums/root/template if the path specified in jar file already exists (normally not). If not create folder structure. In my case I had to create forums/include
    - put the customized file into the new folder
    - restart application server
    --> "my questions" area in profile is gone
    Regards
    Alex

Maybe you are looking for

  • Cant load image to stage with loader

    thoughts? <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" borderColor="#FFFFFF" creationComplete="init()"      width="100%" height="100%"> <mx:Script>      <![CDATA[         

  • Change and transport system not configured

    hi Please anybody help me on this. I installed SAP IDES4.7 on Win Xp with Oracle9.2. It is working good except one error. when i click on anymenu item in GUI a popup says " change and transport system not configured'. How to fix this? i appreciate yo

  • 10.4.10 update, dead hardrive

    hello i have a powermac g4 mirror door. per the automatic software update, i downloaded/installed OS 10.4.10 i restarted machine and everything was running very sluggish. i decided to reboot one more time. when the machine restarted, all i got was th

  • Query with Start Date and End Date

    Dear Members, I have done a basic query on to get a report on Sales Invoices processed in a given period with the General Ledger account they were posted to. Minor hassle is that to change the dates, I have to go into the script (see extract below) a

  • I accidentally clicked a link on iphone twitter. It said my SMS and Emails are now monitored. Help!

    I was on twitter from my iphone and stupidly clicked a link. A page came up saying my phone was now hacked and SMS,e-mails and such are now being watched. I immidently exited out of the page. cleared history, cookies, turned my phone off then back on