How to not change the XML format

I have a script that configures an XML document within a zip file. I unzip the file, load the xml doc into the script. Edit values then rezip it. 
This works fine, but when I attempt to submit this to the device I am working on it returns an error. After checking the doc the only thing I can assume is going wrong is that the document is formatted by Powershell in such a way it can no longer be understood
by the device. 
To resolve this I have added the .PreserveWhiteSpace and set it to true. This also works, but when I do a comparison, character by character space I notice that there are whitespaces being added within certain xmlnodes. How do I stop this from happening?

Can you post your script and a template XML, and show where the white spaces are being added?
We can't see what your code or XML look like if you don't share it.
Solved. Turns out it was something to do with the zip and not the script.

Similar Messages

  • How can I change the date format in Reminders and in Notes?

    How can I change the date format in both Notes and Reminders? Preference on Imac and Settings in IOS do not allow me to change the format in those 2 apps.
    I Like to see 10oct rather than 10/10, as an example.

    pierre
    I do not have Mavericks or iOS - but the first thing I would do is reset the defaults - I'll use Mavericks as an example
    From If the wrong date or time is displayed in some apps on your Mac - Apple Support
    OS X Yosemite and Mavericks
        Open System Preferences.
        From the View menu, choose Language & Region.
        Click the Advanced button.
        Click the Dates tab.
        Click the Restore Defaults button.
        Click the Times tab.
        Click the Restore Defaults button.
        Click OK.
        Quit the app where you were seeing incorrect dates or times displayed.
        Open the app again, and verify that the dates and times are now displayed correctly.
    Then customize to taste - OS X Mavericks: Customize formats to display dates, times, and more
    OS X Mavericks: Customize formats to display dates, times, and more
    Change the language and formats used to display dates, times, numbers, and currencies in Finder windows, Mail, and other apps. For example, if the region for your Mac is set to United States, but the format language is set to French, then dates in Finder windows and email messages appear in French.
        Choose Apple menu > System Preferences, then click Language & Region.
        Choose a geographic region from the Region pop-up menu, to use the region’s date, time, number, and currency formats.
        To customize the formats or change the language used to display them, click Advanced, then set options.
        In the General pane, you can choose the language to use for showing dates, times, and numbers, and set formats for numbers, currency, and measurements.
        In the Dates and Times panes, you can type in the Short, Medium, Long, and Full fields, and rearrange or delete elements. You can also drag new elements, such as Quarter or Milliseconds, into the fields.
        When you’re done customizing formats, click OK.
        The region name in Language & Region preferences now includes “Custom” to indicate you customized formats.
    To undo all of your changes for a region, choose the region again from the Region pop-up menu. To undo your changes only to advanced options, click Advanced, click the pane where you want to undo your changes, then click Restore Defaults.
    To change how time is shown in the menu bar, select the “Time format” checkbox in Language & Region preferences, or select the option in Date & Time preferences.
    Here's the result AppleScript i use to grab the " 'Short Date' ' + ' 'Short Time' "  to paste into download filenames - works good until I try to post it here - the colon " : " is a no-no but is fine in the Finder
    Looks like iOS Settings are a bit less robust
    - Date/Time formats are displayed according to 'tradition' of your region > http://help.apple.com/ipad/8/#/iPad245ed123
    buenos tardes
    ÇÇÇ

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • How does one change the date format for PlayMemories Home folders?

    I am using PlayMemories Home Version 2.0.00.11271 and have many folders within it which contain only photographs imported from my Sony DSC-H9.  Unfortunately, PlayMemories Home insists upon dating all folders in a month/day/year manner; and this makes little sense if one wishes to have the folders listed in logical chronological order.  How can I change the date format to year/month/day?  Changing the name of each folder, one by one, will take a very long time!  Your helpful advice in this matter will be greatly appreciated.  Thank you. System information:
    Operating system: Microsoft Windows XP Professional
    Service pack : Service Pack 3
    Memory: 1.5 GB
    Processor:         Intel(R) Pentium(R) M processor 1.86GHz
    Max. clock speed: 1.86
    Manufacturer: IBM
    Model: 1847W76
    System language setting: English (United States)
    User language setting: English (United States) 

    I too thought that the folder naming format was obviously wrong and couldn't find a way to change it. I do agree that placing photos in folders according to when they were taken is a great idea. I had been considering writing some software to do just that. After discovering that PlayMemories does it, I had it re-import all my photos. Then I wrote a small Perl script to rename all of the folders into year-month-day format. Included here is the Perl script. It only acts on a single folder - use it on the root folder where all the PlayMemories folders are. It will rename all folders currently in a month-day-year format. I used it without problems but of course there is no guarentee that it is error free. This should work with any common version of Perl. Tom # There should be one command line argument: the directory to act upon
    if ( scalar(@ARGV) == 0 ){
     print "Usage: RenameDirs <dir>\n";
     print " Where dir is the directory containing the directories to rename.\n";
     exit;
    $mydir = $ARGV[0];
    chdir $mydir or die "Couldn't chdir to $mydir: $!";
    opendir(ROOTPHOTODIR, ".") or die "Failed to open the pictures directory $mydir: $!";
    @allphotodirs = readdir ROOTPHOTODIR;
    closedir ROOTPHOTODIR;
    foreach $dir (@allphotodirs) {
     if ( -d $dir ) {
      print "$dir is a directory";
      if ( $dir =~ /^(\d{1,2})-(\d{1,2})-(\d{4})$/ ) {
       print " and has the proper format: month $1 day $2 year $3 and will be renamed to ";
       $newname = sprintf "%4u-%02u-%02u", $3, $1, $2;
       print "$newname\n";
       rename $dir, $newname or die "failed to rename $dir to $newname: $!";
      else {
       print " but is not of the proper format\n"
     elsif ( -f $dir ) {
      print "$dir is a file\n";
     else {
      print "$dir is neither a directory nor a file\n";
    }

  • How can i change the date format mm/dd/yyyy to dd/mm/yyyy

    How can i change the date format mm/dd/yyyy to dd/mm/yyyy

    Date, time and currency formats are controlled via Settings > General > International > Region Format - you can't just change the date format

  • How can I change the date format?

    How can I change the default date format for all date fields in Oracle CRM OD? Currently it is set to the US format of MM/DD/YYYY.
    I would like to spell out the month, e.g. October 6, 2010, in order to avoid confusion between US and international date formats.
    For example 11/6/2010 means October 6, 2010 in US but it means 11 June 2010 internationally. Having a global team, this is causing problems for us.
    Georgi

    Georgi, the company profile has a Default Locale. Also each user can have their Locale. The US format of MM/DD/YYYY can not be changed to October 6, 2010 as an example.
    I would recommend that you submit a enhancement request to CRM On Demand customer care.

  • How can I change the numeric format of the cursor coordinates display in LV 8.2

    Since LV 8.0 or so the cursor display window of a graph indicator seems to be a tree control. I couldn't find where to change the numeric format of the numbers displayed in that control. What did I miss?

    lecroy wrote:
    Maybe I'm not clear on what your looking for but I just use a property node and route the raw cursor data out to what ever function I want to run on it, then display it in a seperate field.  The nice thing with the property node is you can have multiple graphs linked together by one set of cursors all with different readouts. 
    Yes, of course that's an option and I guess I'll have to do it that way.
    The point is that I converted a pre-LV-8.x program to LV 8.5. In the program I had used the coordinates display field in the cursor legend to display the position, just the was the cursor legend is supposed to be used, IMO. And in pre-LV-8.x days it was possible to customize the numeric format property of the cursor legend (either directly or by property nodes). It seems that with LV 8.x NI chose to use a treeview control for the cursor legend. With that 'improvement' the numeric formatting flexibility was lost since now the conversion to the string content in the cursor legend's treeview is happening somewhere 'under the hood'.
    <rant> Why do they (NI) always try to 'improve' things (where nothing needs be improved) and sacrifice functionality on the way....? </rant>

  • How do I change the date format?

    Sorry, but I'm new to Oracle!
    I'm using "sqlplusw" to build my SQL statements. When I return columns that are date fields, I get the DD-MON-YY format. I want dates to be returned in "YYYY-MM-DD HH24:MI:SS". My DBA won't change the date format on the server, so how do I change SQLPLUS to return dates in the format I want? Do I need set this in some kind of startup file, or a reg key?
    Using client version 9.2.0.5 against a 9.2.0.1 server
    Jeff

    There are a couple of ways you could do it.
    Way 1:
    Search for a file by name 'glogin.sql' on your client work station and add the following statement
    alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure you save the file. This change will apply to all users who will log into the database using SQL*PLUS from your machine.
    Way 2:
    Create a shortcut and place it some where (for example on the 'DESKTOP').
    Right click on the short cut and choose properties.
    Change the text corresponding to the 'Start in' box to reflect the current location of the shortcut.
    Create a file by name 'login.sql' and place it in the same folder as the shortcut.
    Edit the file and add the following line.
    alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure that you save the file.
    When you double click the shortcut to start SQL*Plus and login, the script 'login.sql' is executed.

  • How can I change the music format of my songs?

    How can I change the format of songs in my computer so itunes will recognize them?
    Music is recorded in my computer but itunes doesn´t seem to read it.

    You know, its kind of weird. The songs where in a friends i-pod; that I uploaded into my computer using the instructions found in one of these forums. Then I downloaded the music into my i-pod and it was ok.
    After a few months it occurred to me to consolidate my library. After consolidating my library; itunes can´t read about 7GB´s of music. I haven´t connected my ipod into my computer since then because I fear the music will be lost.
    The music is stored in my computer, some of it I can listen with the windows media player. I just can´t get itunes to recognize it.
    If I sync my ipod will I loose the 7GB of Music?

  • How do I change the numerical format of the axis in Diadem view and report

    Is there a method for changing the format of the AXIS labels to show more significant digits? Second, I can't find how to display the menu shown in NI help document 3FIEI5LE. When I right click to (select properties) I get a different menu labeled (set proerties for display).
    Thanks,
    Doug

    Hi Doug,
    There is no way to configure the display of the X axis in VIEW-- this is for a quick look at or an interactive visual inspection of your data. For a fully configurable report creation environment you should switch to REPORT. Note that the last button on the top icon bar in VIEW with the tipstrip "Transfer to REPORT" will transfer what you currently have displayed in VIEW into a new REPORT layout.
    In REPORT if you double-click on the numbers below the X axis, a "2D - Numeric display" configuration dialog will appear which has the field "Format:" in it. Type in "d.dddd" ("d,dddd" in Europe) or as many d's after the decimal character as you want to display. There are also other formatting options for scientific display, etc.
    I honestly didn't understand your second question about the help dialog-- what version of DIAdem are you using?
    Regards,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How do you change the page format to print a larger area?

    Hi there, another new to mac and new to numbers guy.
    I'm trying to find the windows equivalent to change page format.
    I want to reduce the blank border surrounding my table and print a larger area. How do you reduce the blank border that prevents you from printing up to the paper edge?
    cheers

    Page margns in Numbers are set in the Layout Inspector.
    Open the Inspector and click the Layout button.
    Edit the four margin settings as you wish. Reduce the (page) header and footer settings to zero if you don't want to include running headers or footers on your pages.
    Note that margins will be limited by the capabilities/settings of your printer. Printing to the edges of the paper usually requires a choice to be made in the Print dialogue as well as for the document itself.
    Regards,
    Barry

  • How do i change the date format on an email?

    When my emails load the date shows as mm/dd/yyyy as this is not a format i use how do i change it to dd/mm/yyyy ?
    I had to reinstall Thunderbird and the date problem has just started from the reinstall.
    Thank you for your help.

    TB uses the short date format as set in your OS control panel, e.g. in Windows, Region and Language. There is also an add-on:
    https://addons.mozilla.org/en-us/thunderbird/addon/configdate/
    http://kb.mozillazine.org/Date_display_format

  • How do I change the number format to the Indian-style comma separation?

    So the default mode for Numbers is obviously the American-style comma seperation
    ie. the number 123456789 will be displayed as: 123,456,789.
    Does anyone know how to change this to accomodate the Indian counting system?
    Specifically, to display 123456789 as 12,34,56,789.
    Thanks!

    Default language setting for Numbers will follow your System Preferences country setting. This will determine format for decimal separator. I've never checked for the Indian format in Numbers, but if your system country setting is India, you should submit Feedback to the Numbers Team via the Numbers menu and tell them about the mistake.
    Jerry

  • How do I change the date format in safari?

    I am in the UK, and the date format is the US format (ie month first) - I have changed my language in the Settings app, but no dice. In Chrome, Firefox etc there are language settings that I can change to alter the date format, but not for Safari ...

    Hugh_Jarse_69 wrote:
    I needed to drag British English to the top of the list of languages 
    It's great that worked for you, but you should be able to have any primary language you want combined with any date format you want by just setting the latter in system prefs/language & region/region.  Did Safari not do the right thing with the Region set to United Kingdom?

  • How do I change the paragraph format of paragraphs that comes before a list of bullets in one shot

    I receive word documents to convert to indesign files based on a template. I have a set of find and replace queries that do most of the work.
    The manual work I am doing is as follows:
    Changing the paragraph style of all body copy that comes before before bullets
    Changing the paragraph style of last bullets and last subbullets
    What is the simplest way of changing the paragraph styles of every body copy before a list of bullets.
    I am doing more and more of these on a daily basis and would REALLY appreciate some insight.
    Not sure if this can only be done in a script.
    Hope that made sense.
    Thanks.

    spktrm11 wrote: Thanks for the response. I already have established styles. I have a style for "last bullet" and one for "bullets before last". I am trying to do a find and replace so I don't have to individually change the paragraph style of every last bullet.  Document: Paragraph Text. (I want to be able to find this specific paragraph, which would be any paragraph before a bullet and change its style.)
    bullet text
    bullet text
    bullet text
    bullet text (I want to be able to find this specific bullet (bullet text) and replace it with (last bullet))
    Paragraph Text
    I want to avoid having to go through the document to change the style of every last bullet that i find manually. I would like to find (based on it's position - any bullet that is followed by a paragraph)
    Hope this makes more sense
    Have you considered following lists with a "paragraph after list" style, like your paragraph before list style? This might be more appropriate for authors to apply while they create content. The idea is that all list items use a single style, so that rearranging items within the list doesn't require retagging the first or last list paragraph to adjust space or numbering when the first or last item is moved into the list.
    If this is a common problem in your work, you might want to post a feature request for smarter paragraph styles that can detect whether they're first, last, or interior list items, and adjust their properties as appropriate to their position. You can post your request here: wish
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for

  • Problem watching trailers in Apple Web Site only

    hi, suddenly i have an odd prolbem in watching trailers at Apple's web site. when im loading a trailer, it just indicating that the trailer is loaded and nothing happens, and the QuickTime Player is not even starting. i have the latest version of qui

  • Anyone find a good email app for ipad yet?

    The provided email application for ipad is really bad for many things and I need one that doesnt take several actions to do what takes a single action on other systems (like my phone and my computer and my Audrey Ergo) Problems: - To use multiple acc

  • Command "/remotelogout" has stopped working

    Hi, The command "/remotelogout" has stopped working after upgrading the Skype to the latest version (7.1.0.105). Karel Solved! Go to Solution.

  • Input values for CONVERT_OTF_2_PDF function module

    Hi All , I am using this function module 'CONVERT_OTF_2_PDF ' in my report(which will convert smartform to PDF) . Can anyone please let me knw what are the input value should I pass to test this function .('CONVERT_OTF_2_PDF) OTF           DOCTAB_ARC

  • How can i change my rescue email ?

    How can i change my rescue email ? I dont have it anymore and when i want to reset my password an email sent there.