DSC-WX350 shows leftover "Unable to Display" after removing photos from card

I'm having a problem with the DSC-WX350 seeing "ghosts" of photos after they've been removed to a computer. If I pop the camera's card out, stick it in a card reader, and move photos off the camera onto my computer, once I put the card back in the WX350 seems to see false files of the relocated photos: it acts like they're still there (info, date taken, keeps them in the photo count, etc.) but only shows a grey "Unable to Display" error. I then have to manually delete each erroneous entry manually. As you can imagine, doing so every time I move photos off the camera is a pain in the ******. I've looked through all the folders on the card and don't see anywhere that any leftover file markers or anything else to cause this issue would be. Any ideas why this is happening? (FYI, the card was freshly formatted properly prior to using it in the camera.) Thanks ahead of time.

Bob, I do not think you understand, or didn't read my post. I am not interested in recovering photos, because I already transferred them to my computer, and used the program in the computer to delete the photos I just transferred. After this is done, I put the SD card back in the WX350, and the Unable to Display message comes up when trying to view other photos just taken. This never happens when using my RX100M2.  I think the reason is the firmware written for the bionz X processor has a flaw in it, which is too bad because Sony never releases firmware updates for cameras unless they cost a bazillon dollars. The WX350 is not the only Sony camera to have this issue, it happens with others using the latest processor. The only way around this is to reformat the SD card each time I transfer photos to my computer using non Sony software, which is a royal PIA if I do not want to delete everything on the SD card. Are you guys too proud to come up with firmware updates? Issuing firmware updates is not something to be ashamed of, it shows you care about your customers.  David

Similar Messages

  • Photoshop CS 6 showing as CS 6 Extended after removing malware from my Dell (Win 7).

    I have a Dell Dimension 8500 with Win 7. I have been running Photoshop CS6 with no problems.  I recently had to run a number of antimalware programs to get rid of a lot of adware, etc.  Since getting the computer back to normal, when I click on the icon for CS6, it starts up as CS 6 EXtended and brings up the window about the 30 day trial.  How did this suddenly happen?  I never downloaded or purchase CS 6 Extended.  When I look in the programs directory, it says Extended when it never did before.  Must I delete the entire program and reinstall from the original install files?   How do I preserve my homemade presets and other plug-ins?   Thank you.    BruceB

    There is only one perpetual Photoshop.exe 64bit  and one Photoshop.exe 32bit  when activated they are  either CS6 standard or CS6 extended it depends what you serial number is.  If its not activated is runs as a trial install CS6 extended for 30 days. See if you can use menu Help>Activate to activate you install.  Its acting like you activation credentials have been deactivated or wiped.

  • TS3694 My iPhone 3gs got an update today ios 6.1.6 but when i press install update my phone shutdown and shows connect to itunes display, after i connect to itunes it shows unknown erro (306).....whats is happening and what should i do ?

    My iPhone 3gs got an update today ios 6.1.6 but when i press install update my phone shutdown and shows connect to itunes display, after i connect to itunes it shows unknown erro (306).....whats is happening and what should i do ?

    Take a look at this post: https://discussions.apple.com/thread/5036467?tstart=0
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    iTunes Store loads partially or returns "Error 306" or "Error 10054"
    Proxies, parental control settings and software, security or filtering software, or a bad iTunes Store cache can cause this.
    To address proxies, Remove Internet Options proxy settings and connect to the Internet without a proxy.
    To reset iTunes Store cache:
    In iTunes, choose iTunes > Preferences (Mac) or Edit > Preferences(PC).
    Click the Advanced tab.
    Click the "Reset cache" button.
    Click OK and see if the issue is resolved.
    Adjust Parental Controls in iTunes:
    Open iTunes.
    Access iTunes preferences:
    On a Mac: From the iTunes menu, choose Preferences.
    On a Windows PC: From the Edit menu, choose Preferences.
    Click the Parental Controls tab.
    Remove restrictions on Parental Controls.
    For more information on parental controls or content filtering software, seeiTunes 10.5 for Windows: May see performance issues and blank iTunes Store.
    For more information on other security software, see iTunes: Troubleshooting security software issues.

  • Can't delete a file displayed in ListView ("File in use") even after removing it from window.

    I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
    Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
    I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
    Dim intCnt As Integer = 0
    Do
    ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
    lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
    ".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
    Thx

    Mugsy,
    Consider this as food for thought, even if you don't use it.
    If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
    As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
    Public Class MyImages
    Private _bmp As Bitmap
    Private _name As String
    Private _sourceFilePath As String
    Private Sub New(ByVal bmp As Bitmap, _
    ByVal name As String, _
    ByVal filePath As String)
    _bmp = bmp
    _sourceFilePath = filePath.Trim
    _name = name.Trim
    End Sub
    Public ReadOnly Property Bmp As Bitmap
    Get
    Return _bmp
    End Get
    End Property
    Public ReadOnly Property Name As String
    Get
    Return _name
    End Get
    End Property
    Public ReadOnly Property SourceFilePath As String
    Get
    Return _sourceFilePath
    End Get
    End Property
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    ByVal imageName As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
    Throw New ArgumentException("The name of this image cannot be null or empty.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    Optional ByVal removeFilePathAlso As Boolean = False)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
    From mi As MyImages In miList _
    Where mi.SourceFilePath = imageFilePath
    If findInstance.Count <> 1 Then
    Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
    "image file path is not in the collection.")
    Else
    Dispose(findInstance.First)
    If removeFilePathAlso Then
    My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
    End If
    miList.Remove(findInstance.First)
    End If
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Private Shared Sub Dispose(ByVal instance As MyImages)
    If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
    instance._bmp.Dispose()
    instance._bmp = Nothing
    End If
    End Sub
    End Class
    When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
    I tested it with a simple form:
    Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Imports System.IO.Path
    Public Class Form1
    Private miList As New List(Of MyImages)
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim desktop As String = _
    My.Computer.FileSystem.SpecialDirectories.Desktop
    Dim imgFolder As String = _
    Combine(desktop, "Images")
    PictureBox1.BorderStyle = BorderStyle.FixedSingle
    For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
    MyImages.AddNew(miList, imgFilePath)
    Next
    btn_RemoveFirstImage.Enabled = False
    CheckBox_RemoveSourcePath.Enabled = False
    End Sub
    Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_ShowFirstImage.Click
    Try
    If miList.Count >= 1 Then
    With PictureBox1
    .SizeMode = PictureBoxSizeMode.Zoom
    .Image = miList(0).Bmp
    End With
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    End If
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_RemoveFirstImage.Click
    Try
    If miList.Count >= 1 Then
    MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
    End If
    PictureBox1.Image = Nothing
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    End Class
    Running it is straightforward:
    Now when I click to show the first one:
    A different image is shown because that first one no longer exists - either in the collection or in the folder.
    Closing/disposing all references is the key and the order matters.
    Something to consider the next time around. :)
    Still lost in code, just at a little higher level.

  • Unable to import or copy photos from a time machine back up saved from snow leopard into iPhoto now running on lion

    unable to import or copy photos from a time machine back up saved from snow leopard into iPhoto now running on lion

    The correct method of restoring photos from Time Machine is to restore the entire library.
    The way that TM backs up files makes nearly impossible to go into the backup via the Finder and recover individual files. So you will have to restore a library that contains the photos you need being sure to select the option to keep both versions.
    Then open the restored library and export those photos you need.  Open your original library and import those photos.  After that you can delete the recently restored library.
    OT

  • I bought the student and teacher version of CS5 extended for windows. Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?

    i bought the student and teacher version of CS5 extended for windows. Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?

    Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?
    Short answer: not for CS5.
    Platform swaps are available but only for CS6
    Order product | Platform, language swap

  • I have an iPhone 3gs, operating on iOS 6.  For some reason, I'm unable to custom delete individual photos from my photo library....

    I have an iPhone 3gs, operating on iOS 6.  For some reason, I'm unable to custom delete individual photos from my photo library.  When I select the Edit button to do so, I'm only given the 2 options of "Share" and "Add To". My Camera Roll does everything the way I wish my Photo Library would.  Can anyone help?

    Only photos in the Camera Roll can be deleted.  The rest of the photos got there by synching to your computer.  You get them off the same way.
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • After downloading photos from my Nikon, I accidentally deleted them from the card.  The photos are in IPhoto.  Can I recover them to the camera card?

    After downloading photos from my Nikon, I accidentally deleted them from the card.  The photos are in IPhoto.  Can I recover them to the camera card?

    Probably -will your card mount to the desktop? If not you will need a card reader - select the photo(s) in iPhoto and export to a desktop folder - mount the card to the desktop and drag the photos to the corredct folder on it
    LN

  • After removing virus from xp home. itunes gives error -50 when i try to open it

    after removing virus from xp home. itunes gives error -50 when i try to open it.

    Ah, the old jokes are still often the best ones, rIcHaRd ...
    The -50 in that context can indicate damage to your Apple Application Support. (Apple Application Support is where single copies of program files used by multiple different Apple programs are stashed.) So I'd first try a repair install of your Apple Application Support.
    Restart the PC. Head into your Add or Remove programs control, select "Apple Application Support", click "Change" and then click "Repair".
    Does the repair install go through okay? If so, does your iTunes start launching again?

  • How do I make space on iTunes for photos after exporting photos from iPhoto on ipad.

    How do I make space on iTunes for photos after exporting photos from iPhoto on iPad?

    How do I make space on iTunes for photos after exporting them to my PC from iPhoto on my iPad?  I received an error message saying I had no more space available to export.

  • How to display all tagged photos from the whole catalogue?

    Hi,
    I have been googleling around, but have not found the right information. I am trying to find all my tagged photos of all imported photos, but it would only show the tagged photos from a specific folder when I select that specific folder or from the timeline, in which I already knew that some tagged photos belong in those folders.
    My question is...how can I search tagged photos from the whole catalogue without going through the timeline or clicking each folder and subfolder to view them. I would like that the organizer display all tagged items from all my folders and subfolders at once.
    Sorry if this has been answered and I was not able to find the right forum or information.
    Many thanks in advance!
    Dreamy

    Thanks a lot!

  • White patch after removing row from JTable

    I am working with JTable and removing item from table on clicking on button but after removing row there is white Patch on that row. I don�t want to show this white patch.
    I did repaint table but that is also not working.
    Any thoughts !!!!!!!

    javax.swing.SwingUtilities.invokeLater(new Runnable(){
                public void run(){
                  museTable.setBackground(Color.black);//your color here
              });

  • Can you delete "Originals" folder after importing photos from iPhoto to LR3?

    Hello,
    I just imported all my photos from iPhoto to LR3 by making an Alias folder (copy) of my iPhoto Originals folder. Shortly after that I received a message that my Start-up disk is nearly full, which I presume is because I duplicated my iPhoto library. I want to free up my storage and curious if it's okay to delete my iPhoto Originals folder. Or will that delete or cause problems with the Alias folder that LR3 is reading?
    Any insight would be appreciated.
    Cheers
    Bill

    Bill,
    I wouldn't do anything rash, if I were you. "Alias" sounds like not a real copy, but some kind of virtual copy, with just pointers to the originals. In that case, deleting the originals will leave you without any images. Try renaming one of the images in the folder you want to delete. If that image shows up in Lightroom with a "?" on its thumbnail, then you most definitely don't want to delete that folder.
    Hal

  • Unable to access or grab photos from discontinued 3.0

    I downloaded over 200 photos to my computer yesterday, not intending for them to drop in Adobe Photoshop Starter Edition 3.0 because I have not been able to register nor unlock the code.  For some reason my photos did however drop into this program and now I am unable to retrieve them because the software program is discontinued.
    Please tell me how to retrieve my photos from Starter Edition 3.0.  I have since registered with Photoshop.com as recommended by Adobe.

    Oh darn.  I left the camera at home.  I will try this tomorrow and get back to you.  Thank you very much.
    Marilyn Rideaux
    L. A. County EMS Commission
    EMSAAC Coordinator
    10100 Pioneer Blvd., 2nd Floor
    Santa Fe Springs, CA 90670
    Phone (562) 347-1641
    Fax (562) 941-5835
    >>> "PS.com Mark" <[email protected]> 9/29/2009 8:59 AM >>>
    Starter Edition shows you small preview versions of your photos (we call them thumbnails), but your photos are actually read by Starter Edition from some location on your hard drive. They are not 'in' Starter Edition, so much as Starter Edition has, at some point, been linked to the files. Links can live longer that the actual files can, so hopefully the files haven't been deleted, leaving only the Starter Edition links. Since it sounds like you recently added these files, so I don't think that this is how it will end. 
    Can you remember what the import window looks like? If you attach your camera to your computer, can you take a screen shot, or describe the window or series of screens that you see? If I can identify what software is trying to copy the files for you, I may be able to tell you where they were copied to on your computer.
    -Mark

  • How to remove empty lines from xml files after removing nodes from document

    <pre>
    Hi
    <b>i have xml document, which is shown below
    after removing some nodes from the document ,i am getting empty lines in place of removed nodes,how to resolve this and get the proper xml document without any errors</b>
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE Message SYSTEM "TRD01.dtd">
    <Message>
    <Header>
    <CounterPartyType>CLIENT</CounterPartyType>
    <CreationTime>20134455</CreationTime>
    <ErrorCode>363 </ErrorCode>
    <ErrorEnterPriseId>N</ErrorEnterPriseId>
    <ErrorStatus>1</ErrorStatus>
    <ErrorSystemId>STL</ErrorSystemId>
    <ErrorTimes>31</ErrorTimes>
    <MessageType>T</MessageType>
    <RecipientEnterpriseId>N</RecipientEnterpriseId>
    <RecipentSystemId>EXM</RecipentSystemId>
    <Remarks>REMARSK</Remarks>
    <SenderEnterpriseId>N</SenderEnterpriseId>
    <SenderSystemId>TR</SenderSystemId>
    </Header>
    </Message>
    <ErrorCode>363 </ErrorCode>
    <ErrorEnterPriseId>NIHK</ErrorEnterPriseId>
    <ErrorStatus>1</ErrorStatus>
    <ErrorSystemId>STL</ErrorSystemId>
    <ErrorTimes>31</ErrorTimes>
    XPathExpression expression5 = xpath.compile(xmlpath5);
    Object result5 = expression5.evaluate(doc, XPathConstants.NODE);
    Node node5 = (Node) result5;
    node5.getParentNode().removeChild(node5);
    XPathExpression expression6 = xpath.compile(xmlpath6);
    Object result6 = expression6.evaluate(doc, XPathConstants.NODE);
    Node node6=(Node) result6;
    node6.getParentNode().removeChild(node6);
    XPathExpression expression7 = xpath.compile(xmlpath7);
    Object result7 = expression7.evaluate(doc, XPathConstants.NODE);
    Node node7=(Node) result7;
    node7.getParentNode().removeChild(node7);
    doc.normalize();
    doc.normalizeDocument();
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    t.setOutputProperty(OutputKeys.INDENT, "yes");
    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    t.setOutputProperty(OutputKeys.METHOD,"xml");
    t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
    the xml output i am getting is
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <Message>
    <Header>
    <CounterPartyType>CLIENT</CounterPartyType>
    <CreationTime>20134455</CreationTime>
    <MessageType>TRD01</MessageType>
    <RecipientEnterpriseId>N</RecipientEnterpriseId>
    <RecipentSystemId>STL</RecipentSystemId>
    <Remarks>REMARSK</Remarks>
    <SenderEnterpriseId>N</SenderEnterpriseId>
    <SenderSystemId>T</SenderSystemId>
    </Header>
    </Message>
    <b>could you please let me know how to avoid empty lines in the xml doucment output</b>
    this is the method i am using to get the result
    public void ValidateRecord(String xml){
    try{
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = factory.newDocumentBuilder();
    //parse file into DOM
    /*DOMParser parser = new DOMParser();
    parser.setErrorStream(System.err);
    parser.setValidationMode(DTD_validation);
    parser.showWarnings(true);*/
    System.out.println ("HI THIS xml is validation "+xml);
    Resolver res = new Resolver();
    db.setEntityResolver(res);
    Document doc = db.parse(new InputSource(new StringReader(xml)));
    XPathFactory xpf = XPathFactory.newInstance();
    XPath xpath = xpf.newXPath();
    // XPathExpression expression = xpath.compile("//A/B[C/E/text()=13]");
    String xmlpath="/Message/Header/CounterPartyType/text()";
    String xmlpath1="/Message/Header/RecipentSystemId/text()";
    String xmlpath2="/Message/Header/ErrorSystemId/text()";
    XPathExpression expression = xpath.compile(xmlpath);
    XPathExpression expression1 = xpath.compile(xmlpath2);
    Object result = expression.evaluate(doc, XPathConstants.NODE);
    Object result1 = expression1.evaluate(doc, XPathConstants.NODE);
    Node node = (Node) result;
    Node node1 = (Node) result1;
    System.out.println("the values of the string is " +node.getNodeValue());
    System.out.println("the values of the string is " +node1.getNodeValue());
    // for (int i = 0; i < nodes.getLength(); i++) {
    //System.out.println(nodes.item(i).getNodeValue());
    // CAHNGING THE RECEIPENT NODE
    XPathExpression expression2 = xpath.compile(xmlpath1);
    Object result2 = expression2.evaluate(doc, XPathConstants.NODE);
    Node node2 = (Node) result2;
    System.out.println(node2);
    node2.setNodeValue(node1.getNodeValue());
    System.out.println(node2);
    //removing the nodes from document
    String xmlpath3="/Message/Header/ErrorCode";
    String xmlpath4="/Message/Header/ErrorEnterPriseId";
    String xmlpath5="/Message/Header/ErrorStatus";
    String xmlpath6="/Message/Header/ErrorSystemId";
    String xmlpath7="/Message/Header/ErrorTimes";
    XPathExpression expression3 = xpath.compile(xmlpath3);
    Object result3 = expression3.evaluate(doc, XPathConstants.NODE);
    Node node3 = (Node) result3;
    node3.getParentNode().removeChild(node3);
    XPathExpression expression4 = xpath.compile(xmlpath4);
    Object result4 = expression4.evaluate(doc, XPathConstants.NODE);
    Node node4 = (Node) result4;
    System.out.println("node value");
    System.out.println(node4.getParentNode().getNodeName());
    node4.getParentNode().removeChild(node4);
    XPathExpression expression5 = xpath.compile(xmlpath5);
    Object result5 = expression5.evaluate(doc, XPathConstants.NODE);
    Node node5 = (Node) result5;
    node5.getParentNode().removeChild(node5);
    XPathExpression expression6 = xpath.compile(xmlpath6);
    Object result6 = expression6.evaluate(doc, XPathConstants.NODE);
    Node node6=(Node) result6;
    node6.getParentNode().removeChild(node6);
    XPathExpression expression7 = xpath.compile(xmlpath7);
    Object result7 = expression7.evaluate(doc, XPathConstants.NODE);
    Node node7=(Node) result7;
    node7.getParentNode().removeChild(node7);
    // Node b13Node = (Node) expression.evaluate(doc, XPathConstants.NODE);
    //b13Node.getParentNode().removeChild(b13Node);
    doc.normalize();
    doc.normalizeDocument();
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer t = tf.newTransformer();
    t.setOutputProperty(OutputKeys.INDENT, "yes");
    t.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
    t.setOutputProperty(OutputKeys.METHOD,"xml");
    t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
    t.transform(new DOMSource(doc), new StreamResult(System.out));
    catch (Exception e) {
         e.printStackTrace();
    System.out.println(e.getMessage());
    </pre>
    Edited by: user12185243 on Apr 6, 2013 6:38 AM
    Edited by: user12185243 on Apr 6, 2013 6:41 AM
    Edited by: user12185243 on Apr 6, 2013 6:43 AM
    Edited by: user12185243 on Apr 6, 2013 6:45 AM
    Edited by: user12185243 on Apr 6, 2013 9:00 AM

    either this way we can do this
    1)
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    <b> factory.setIgnoringElementContentWhitespace(true); </b>
    DocumentBuilder db = factory.newDocumentBuilder();
    or
    2)
    java.io.StringWriter sw = new java.io.StringWriter();
    StreamResult sr = new StreamResult(sw);
    t.transform(new DOMSource(doc), sr);
    String xml1 = sw.toString().trim();
    <b> xml1=xml1.replaceAll("\\s",""); </b>
    System.out.println(xml1.trim());

Maybe you are looking for

  • How to create a partition using the free space of an existing[SOLVED]

    Hi Guys, Since I could not install fifa 09 using wine on linux, I need to create a partition where I can install windows first in order to install fifa 09 on it. How can I create a partition using the rest free space of my , for example, /home partit

  • How to install Oracle RAC using 11gR2 on Win 7 32 bit from scratch?

    Hiii, I am a fresher and I have a win 7 system 32 bit with oracle 11gR2. I want to install RAC using two or more servers but I dont know too much about it. I tried to search on google but all they are giving information in pieces(for win 7) or about

  • Downloaded Photoshop trial a few days ago but it has expired already.

    I downloaded the photoshop extended trial a few days ago, but when I run it, it says it has expired already. The weird thing is that when I try to redownload photoshop using the adobe download assistant, it says in the top right corner that I have 30

  • Quick question about inheritance and exceptions

    If I have two classes like this: public class ClassA {     public void myMethod() throws NumberFormatException {       throw new NumberFormatException(); public class ClassB extends ClassA {     public void myMethod() { }Does myMethod() in classA ove

  • IPad zoom stuck and unresponsive

    My daughter has done it this time.  She has turned on the zoom and it is at the max. The old three finger double tap and the home button fast three times does nothing.  I can't power it off.  Once in twenty tries, I can get to settings but scrolling