Importing text from XML file, "\n" not working

Hi I'm currently trying to set up my game so it pulls in all text from an external XML file (to make switching between different languages easier). The problem is that on several occasions I need to use the special code "\n" to start a new line (for formatting purposes) but when I'm pulling the text in from the XML file this is not starting a new line any more - it is just appearing as normal in the text. (e.g "Here is some \n example game text") How do I get around this?
Any help here appreciated, I'm supposed to be finished everything by tomorrow so I need suggestions asap haha Thanks.

I don't see how I can be setting it wrongly, I have the exact line:
XML.ignoreWhitespace = false;
Before this I tried myXMLDocName.ignoreWhitespace = false; (before I realised it was a static function)
This line is placed immediately after I have loaded my XML document and assigned it to a variable. e.g.
private function XMLLoaded(e:Event):void
            trace("XML Loaded");
            MyGameGlobalVars.xmlDoc = new XML(e.target.data);
            XML.ignoreWhitespace = false;       //previously: MyGameGlobalVars.xmlDoc.ignoreWhitespace = false;
            xmlLoaded = true;

Similar Messages

  • Colum names mapping from formate file is not working

    Hi All,
    i tried to import data from text file using BULK INSERT format file option, am able to load the data from file to table but when i change the column name order in the input file it is not inserting according to change column order 
    BULK INSERT monsanto55_Steelwedge_monsanto_manualBuild_filters.dbo.bulk_test
       FROM '\\192.168.97.23\poc\bulk.txt'
       WITH( FORMATFILE = '\\192.168.97.23\poc\build.fmt',FIRSTROW = 2)
    TABLE COLUMS: P_Id,LastName,FirstName,age,Address,City,no
    Format file is :
    10.0
    7
    1       SQLCHAR             0       12      "\t"     1     P_Id                   ""
    2       SQLCHAR             0       255     "\t"     2     LastName               SQL_Latin1_General_CP1_CI_AS
    3       SQLCHAR             0       255     "\t"     3     FirstName              SQL_Latin1_General_CP1_CI_AS
    4       SQLCHAR             0       12      "\t"     4     age                    ""
    5       SQLCHAR             0       255     "\t"     5     Address                SQL_Latin1_General_CP1_CI_AS
    6       SQLCHAR             0       255     "\t"     6     City                   SQL_Latin1_General_CP1_CI_AS
    7       SQLCHAR             0       12      "\r\n"   7     no                     ""
    input data file:
    P_Id FirstNameLastName
    ageAddress Cityno
    1 first
    one 11
    sanathnagar HYD 5
    2 second
    two 12
    xyz abc
    0
    3 third
    three 20
    ameerpet SEC
    30
    according to mapping the data in table must be like:
    P_Id,LastName,FirstName,age,Address,City,no
    1 one first 11 sanathnagar HYD 5
    2 two second 12 xyz abc 0
    3 third three 20 ameerpet SEC 30
    but it inserting same as input file format so first name and last name are miss matching
    please let me know if you have any idea.
    Thanks,

    Hi All,
    i tried to import data from text file using BULK INSERT format file option, am able to load the data from file to table but when i change the column name order in the input file it is not inserting according to change column order 
    BULK INSERT monsanto55_Steelwedge_monsanto_manualBuild_filters.dbo.bulk_test
       FROM '\\192.168.97.23\poc\bulk.txt'
       WITH( FORMATFILE = '\\192.168.97.23\poc\build.fmt',FIRSTROW = 2)
    TABLE COLUMS: P_Id,LastName,FirstName,age,Address,City,no
    Format file is :
    10.0
    7
    1       SQLCHAR             0       12      "\t"     1     P_Id                   ""
    2       SQLCHAR             0       255     "\t"     2     LastName               SQL_Latin1_General_CP1_CI_AS
    3       SQLCHAR             0       255     "\t"     3     FirstName              SQL_Latin1_General_CP1_CI_AS
    4       SQLCHAR             0       12      "\t"     4     age                    ""
    5       SQLCHAR             0       255     "\t"     5     Address                SQL_Latin1_General_CP1_CI_AS
    6       SQLCHAR             0       255     "\t"     6     City                   SQL_Latin1_General_CP1_CI_AS
    7       SQLCHAR             0       12      "\r\n"   7     no                     ""
    input data file:
    P_Id FirstNameLastName
    ageAddress Cityno
    1 first
    one 11
    sanathnagar HYD 5
    2 second
    two 12
    xyz abc
    0
    3 third
    three 20
    ameerpet SEC
    30
    according to mapping the data in table must be like:
    P_Id,LastName,FirstName,age,Address,City,no
    1 one first 11 sanathnagar HYD 5
    2 two second 12 xyz abc 0
    3 third three 20 ameerpet SEC 30
    but it inserting same as input file format so first name and last name are miss matching
    please let me know if you have any idea.
    Thanks,
    Hi all,
    Thanks for your response, and sorry for wrong question here i need to supply default values to column of
    table based on input file so default values of columns will be changed based on input file, and one more thing i don't have any rights to change the table structure my work is to load data from file to table. Is there any chance to supply default values by XMLformat
    file instead of .fmt file
    or any other scenarios please let me know the possibility.

  • Link from flash file/moving not working on a page

    I will apologize first for what maybe a very elementary
    questions. I was sent an swf file to add to a web page. I got the
    movie to run on some of the pages where I inserted it into a
    template and the template updated those pages. I think had to
    insert it into another page and the movie does not work there. Does
    this have something to do with the script in the script folder? A
    conflict of some sort?
    Also, I need to link the file a URL and putting <a
    href> brackets around it is not working. Does the link to the
    page have to embedded in the swf file?
    Thanks for any help on this.
    URL to see pages
    Movie working but no link:
    http://www.grantwrangler.com/advertise.html
    Movie not even showing up:
    http://www.grantwrangler.com/index.html

    > Also, I need to link the file a URL and putting <a
    href> brackets around it is
    > not working. Does the link to the page have to embedded
    in the swf file?
    wrapping an A HREF tag around a flash .swf object will not
    work.
    the link has to be "in" the swf, back when it was an FLA file
    in flash.
    Or- the .swf has to have actionscripting in it so that it
    will take a url as
    a parameter.
    On the flash not showing--
    Random observations from a quick look.
    There is no \ backslash in a web path or url.
    you can usually "get away with it" on a windows server, but
    it's incorrect
    and something to avoid.
    <!-- Dependencies -->
    <link type="text/css" rel="stylesheet"
    href="build\fonts\fonts.css">
    <!--<link type="text/css" rel="stylesheet"
    href="build\reset\reset.css">-->
    <script type="text/javascript"
    src="build\yahoo\yahoo.js"></script>
    <script type="text/javascript"
    src="build\dom\dom.js"></script>
    <script type="text/javascript"
    src="build\event\event.js"></script>
    <!-- Source file and calendar css -->
    <script type="text/javascript"
    src="build\calendar\calendar.js"></script>
    <link rel="stylesheet" type="text/css"
    href="build\calendar\assets\calendar.css" >
    The javascript call to show the flash file contains an
    absolute local path:
    'file:///Macintosh HD/Users/user/Documents/ Work/Nimble Press
    Ÿ/Grant
    Wrangler/Website/GW ADs/tiged
    The noscript tag uses an absolute local path:
    <param name="movie" value="file:///Macintosh
    HD/Users/user/Documents/
    Work/Nimble Press Ÿ/Grant Wrangler/Website/GW
    ADs/tiged.swf">
    <param name="quality" value="high">
    <embed src="file:///Macintosh HD/Users/user/Documents/
    Work/Nimble Press Ÿ/Grant Wrangler/Website/GW
    ADs/tiged.swf" quality="high"
    pluginspage="
    http://www.adobe.com
    it's also not a good idea to put things in a folder using a
    blank space, and
    whose name contains the word "ADs"
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Possible to use JavaScript to Import Data from XML file to pre-fill fields?

    Hi,
    I have a dynamic fill-in PDF that I want to "pre-fill" internally in my company before sending out to users who will change any pre-filled fields necessary and answer questions we did not already answer.
    We do not have LiveCycle Reader Extensions, but we can use Acrobat to import data from an XML document to pre-fill the named fields.  Is it possibly to do this task using folder-level Javascript or some other method?  I can look into this, and post my findings, but I'd like to know if it's possible or if I need to use a different programming language.

    Hi,
    I am afraid that solution was for a specific client and I can't share it. If I get a chance I will mock up an example, but this wont be for a while. From memory it was just a straight importData method. This would normally fail silently in a non-certified form, but when the form is digitally signed/certified, it works without a hitch.
    Good luck,
    Niall

  • Importing text from Word file while keeping formatting

    I have text set up to convert to Goudy Oldstyle. When I try to import formatted text from a Word file, the italics don't translate to Goudy Oldstyle italic. It becomes Goudy Italic and then reads as a conflict. How would I be able to reformat just the italics?

    Find Font is also in CS2 (Type > Find Font). Very easy, very simple.
    In CS2, Find Font doesn't have the same Redefine Style functionality
    that it does in CS3, but you can still find a missing font or font
    variant and replace it with something that's not missing. You would have
    to redefine styles manually, but you can use Find Font to figure out
    which styles need redefining. (That is, if you've used styles; we don't
    know yet because you haven't said.)
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Import data from XML file into ICM script

    Hello,
    Is it possible to read data from an XML file into an ICM Admin script? If yes, using which node?
    Thanks,
    Justine.

    Hi,
    as far as i know not directy. Only Method i could think of right now is via CVP Application (Java Class, Custom Node) or IVR Script.
    To import data you only have the Database Node which does only allow sources form the Database Lookup Explorer ir passing data along to/from external scripts.
    Fabian

  • "Import GPS from iPhone photos" does not work with iPhone 4

    I have not been able to get A3's "Import GPS from iPhone photos" to work with my iPhone 4, I get an empty list of photos. A3 is able to import photos from iPhoto 4 without any problems but I'm not able to get the GPS data.
    I'm not sure if it is an iPhone 4 or iOS4 issue, I tried my old iPhone 2G and "Import GPS from iPhone photos" is working fine.

    Where are you seeing this "Import GPS from iPhone" option?? I just tried importing a picture directly from my iPhone ,and it correctly had its place marked on the Places map. Am I misunderstanding what you all are trying to do??

  • Error while importing data from XML file to a Oracle database

    I am getting the following error while importing data
    *** atg.xml.XMLFileException: No XML files were found for "/Dynamusic/config/dynamusic/songs-data.xml". 
    The files must be located  under the name "/Dynamusic/config/dyna
    *** java.io.FileNotFoundException: D:\MyApp\ATG\ATG10.0.3 (Access is denied)
    java.io.FileNotFoundException: D:\MyApp\ATG\ATG10.0.3 (Access is denied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:120)
            at atg.adapter.gsa.xml.TemplateParser.importFiles(TemplateParser.java:6675)
            at atg.adapter.gsa.xml.TemplateParser.runParser(TemplateParser.java:5795)
            at atg.adapter.gsa.xml.TemplateParser.main(TemplateParser.java:5241)
    I have placed the FakeXADataSource and JTDataSource properties files as required. In fact I have been able to import data in all machines. Just this one machine is giving problems. I have also checked out the access rights. Can someone help me please?

    Confirm that you have access to D:\MyApp\ATG\ATG10.0.3 and existence of Dynamusic/config/dynamusic/songs-data.xm

  • Import users from BIAR file -- users not listed in import screen of Wizard

    Hi,
    we try to import users from a BO XI R2 SP4 running on Windows to our BO XI R2 SP4 running on Linux (both use Oracle database).
    When I try to import users with the Import Wizard, I can't see the list of users so at the end of the import  and show in the log --> 0 user simported.
    I have activate the trace on Wizard import but don't see errors in the log files.
    Also I open the file with a ZIP tool and I can see that it contains data.
    So why this ?
    regards,

    Hi,
    thnaks for the info.
    It is what we do, we use directlty the user:  Adminsitrator.
    I have also set the -trace parameter on the Wizard import but nothing special in the trace about any errors or warnings. (nothing).
    regards,

  • Get-ADUser SamAccount from CSV file does not work.

    So I'm trying to get HomeDirectory + SamAccountName using Get-ADUser from an imported csv file called $csvFile
    $GetUserInfo = Get-ADUser (Get-ADUser -Filter { displayName -eq $csvFile[$index].DisplayName}).SamAccountName -Properties SamAccountName,HomeDirectory
    It gives me an error. 
    Get-ADUser : Invalid type 'System.Object[]'.
    Parameter name: displayName
    At line:1 char:28
    + $GetInfoUser = Get-ADUser (Get-ADUser -Filter { displayName -eq $csvFile[5].Disp ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Get-ADUser], ArgumentException
    + FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.ArgumentException,Microsoft.ActiveDirectory.Management.Commands.GetADUser
    However if I do like this 
    $DisplayName = $csvFile[$index].DisplayName
    and replace $DisplayName to the filter like this, it works flawless and I get HomeDirectory and the SamAccountName
    (Get-ADUser -Filter { displayName -eq $DisplayName }).SamA...
    Any ideas or improvements

    Still produces the same error. I'm running 4.0
    How about this?
    Import-Csv C:\Temp\user.csv | % {
    $displayname = $_.displayname;
    get-aduser -filter { displayname -eq $displayname } | Select SamAccountname , HomeDirectory
    The below was my CSV format
    DisplayName
    Chendrayan Venkatesan
    Ramesh Venkatesan
    Regards Chen V [MCTS SharePoint 2010]

  • Importing chapters from PPro 2.0 not working

    Hi,
    I'm using Encore 2.0 and PPro 2.0.
    I've created a sequence in PPro, in which I have set markers (I've tried both unnumbered and numbered markers), I export it as MPEG2DVD and then I import it into Encore. The problem is that Encore doesn't create chapter points from the markers. This process used to work just fine with Encore/PPro 1.5.
    Any advice?
    Thanks,
    J

    Hi Jeff...
    Right after I sent this message I was experimenting and I realised that. Thanks for confirming it. It wasn't clear in the help files.
    Thanks again for your quick reply.
    tnt

  • Have tried many times to do mail merge from csv file but not working have watched all u tube vids!! Please help thank you

    I've downloaded Thunderbird and have imported all emails etc - works great!
    BUT when I try to do a mail merge it doesn't work! I've saved my excel file as cvs and understand that I need to use {{Email}} , {{First Name}} etc
    It just doesn't work for me - no emails in outbox or sent items?
    any ideas please?

    can you confirm a few things?
    You downloaded 'Mail Merge' and it is displayed in the Thunderbird 'Addon Manager' and it is enabled.
    Open the .csv file and checked that the info you are entering in the Write message eg: {{Email}} , {{First Name}} etc is the same as the column headers.
    example:
    {{FirstName}} OR {{First Name}}
    {{Email}} OR {{Primary Email}}
    you can edit the .csv file to change eg: {{Primary Email}} to {{Email}}
    you can also move the column headers, so that the first three columns show : First Name, Last Name, Email

  • Import photo from web to iphoto not working

    I follow the directions of Apples own design to download photos to a folder and then transfer them into an album in iPhoto. Each time I do so, I get the follow error message:
    __Can't make «class impo» of application "iPhoto" into type boolean. (-1700)__
    Here is a link to page describing how to do this.
    http://www.apple.com/macosx/features/automator/example2.html
    Thought maybe had a corrupt or something wrong with library. I decided to copy library to new drive and start fresh with a new library. Used the program iPhoto Library Manager to do this. Now I have deleted the old library under Pictures and have created new library. Still the same results.
    I also try the contextual method where I can select "Add Image to iPhoto Library" but nothing happens there either. I don't get the error message.. iphoto launches but no added image.
    This has never worked for me. Anyone have any ideas?

    I have been sucessfully downloading linked photos from some web pages with Automator. I have been able to download them into a folder on the desktop with
    out using iPhoto. It is the website that determines if they can be downloaded. If each page of the website has a different URL and each photo has it's own URL then they can be downloaded by the page with Automator. If the URL at the top of the page remains the same as you move from page to page or image to image then Automator will not download any of the images. My website is the type with a different URL for each page and image. Give it a try with Automator. http://www.philsaeronauticalstuff.com. I use tables to build my webpage;not CSS.

  • I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data is not.) but

    I bought Numbers because my Excel files would not work with Mavericks. How can I import a non-functioning Excel file into numbers? (As of now, the file NAME transfers but data does not.)

    HI Dave,
    I'm surprised you get no message when you attempt opening the Excel document in Numbers.
    I'm assuming Numbers 3.1, since you are running Mavericks.
    Does the Numbers file that opens show any content?
    Does it contain a table?
    How large?
    Does it contain more than one tab (indicating more than one sheet)?
    Do those other tabs contain a table?
    Have you checked those tables for data content?
    There have been cases in the past of imported documents opening with white text on a white background, giving the appearance of containing nothing. Check for this by selecting a block of cells, then applying a Fill colour or a Text colour using the Format button (paintbrush).
    I'd also suggest attempting to open the Excel files using LibreOffice, which can be downloaded from the linked website.
    Regards,
    Barry

  • File- Export not working after upgrade from 11i to R12

    Hi,
    File -> Export not working after upgrade from 11i to R12.1.3 in few systems. Can you please let me know what could be the issue.
    If export record count more than 200 it is working fine in all the systems and if change the profile option "Export MIME type” value to ‘text/tab-separated-values’ from application/excel also it is wokring.
    Thanks and Regards,
    Jagadeesha

    Enabled the FRD. Below are few last lines. Can you please let me know what i can in this log file contents.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing GET_ITEM_PROPERTY/FIELD_CHARACTERISTIC Built-in:
    In Argument 0 - Type: Integer Value: 196613
    In Argument 1 - Type: Number Value: 54
    Out Argument 0 - Type: String Value: 12
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_MENU_ITEM Built-in:
    In Argument 0 - Type: String Value: FILE.EXPORT
    Out Argument 0 - Type: Integer Value: 19
    Executing GET_MENU_ITEM_PROPERTY Built-in:
    In Argument 0 - Type: Integer Value: 19
    In Argument 1 - Type: Number Value: 79
    Out Argument 0 - Type: String Value: TRUE
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_menu.set_prop.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_synch.menu_toolbar_sync. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.APP_CUSTOM_MODE
    Out Argument 0 - Type: String Value: NORMAL
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: NULL
    In Argument 1 - Type: String Value: GLOBAL.OUT
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND GETPROFILE NAME="UPK_RECORDING_ENABLED" FIELD="GLOBAL.OUT" N
    FNDCPVCM, 11, Built-In, Entry, 316509814, USER_EXIT
    FNDCPVCM, 11, Built-In, Exit, 316509814, USER_EXIT
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: GLOBAL.OUT
    Out Argument 0 - Type: String Value: N
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_form
    Out Argument 0 - Type: String Value: FNDCPVCM
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: system.current_block
    Out Argument 0 - Type: String Value: MASTER
    Executing GET_APPLICATION_PROPERTY Built-in:
    In Argument 0 - Type: Number Value: 75
    Out Argument 0 - Type: String Value: IHR40P
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed call_all_libraries. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_standard.event. Event is WHEN-NEW-ITEM-INSTANCE.
    In Argument 1 - Type: String Value: global.frd_debug
    FNDCPVCM, 10, Prog Unit, Exit, 316509814, /FNDCPVCM-3/P45_30_DEC_201223_28_33
    FNDCPVCM, 9, Trigger, Exit, 316509814, WHEN-NEW-ITEM-INSTANCE
    FNDCPVCM, 8, Prog Unit, Exit, 316509814, /DMU-4/P8_30_DEC_201223_23_12
    # 15 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301498413820
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3
    # 16 - FNDCPVCM:MASTER.USER_CONCURRENT_QUEUE_NAME.1359399301512613925
    WINDOW FNDCPVCM PROGRESS_INDICATOR RESIZE 4198 1500 3

Maybe you are looking for