Conditional validation of documents (ignoring IDREFs)

I am storing one large XML file in a dbxml container adding and modifying its parts. Every part can be considered a stand-alone document with references to other parts (IDs and IDREFs). I would like to be able to validate every such part against a DTD but ignoring errors which arise from broken references. Is it possible with dbxml or should I do it externally?
Thanks in advance!

DB XML can't do that for you - you will need to find a way to do that before putting your documents in to DB XML. However, using the events API (new to 2.3), you should be able to streamline the document validating and adding process using a pipeline of events.
John

Similar Messages

  • "Could not complete your request because it is not a valid Photoshop document"?

    Hi
    i am getting this error  "Could not complete your request because it is not a valid Photo shop document"
    i am using CS 5 . PSD files are from different sources. some are saved by me and some are from INTERNET . all files was working fine 3 weeks ago .
    i moved them to external hard drive.I installed window 7 and moved all files from hard disk to My PC ( there was no error while moving files from HD to PC)
    Now when i try to open  it shows "Could not complete your request because it is not a valid Photoshop document"?
    here is file link  Download 36-web-buttons-collection.psd from Sendspace.com - send big files the easy way
    i did try many PSD repair  software but nothing works
    please help me . i need those file very badly
    regards
    sahil !
    (please ignore my bad English)

    It is only showing as a psd file in Windows, because it merely happens to have the extension ".psd". That does not mean that the file is an actual Photoshop file.
    You could rename it to a file with a zip extension, and Windows would think it is an archive.
    The extension means nothing unless the actual file data is written as a psd. And in this case it is not. You have file that is NOT a psd, with a file extension ".psd".
    Show or hide file name extensions - Windows Help

  • Conditional validation for drop down list

    Hi all,
    I have been working on getting the conditional validation for drop down list to work but no luck. Here is my situation. I have a page with 'time' and 'source' drop down which contains a list of values along with null value. I have two buttons 'save' and 'close'. when a User clicks on 'Save' button, no checking should occur and the values filled in the form should be stored into the database. When a user clicks on 'Close' button, validation should occur and messages should be displayed saying 'values should be filled' . After the user fills each drop down list and hits close button, changes should be saved to the database. I used the technique posted by Jayashri and wrote the validation code in 'Close button action method'
    Here is my code
    public String btnClose_action() {
    // TODO: Replace with your code
    try {
    if (ddlTime.getSelected() == null || ddlTime.getSelected().equals("")) {
    FacesMessage message3 = new FacesMessage("Please select a value");
    message3.setSeverity(FacesMessage.SEVERITY_ERROR);
    getFacesContext().addMessage(ddlTime.getClientId(getFacesContext()), message3);
    return null;
    if (ddlSourceReq.getSelected() == null || ddlSourceReq.getSelected().equals("")) {
    FacesMessage message4 = new FacesMessage("Please select a value");
    message4.setSeverity(FacesMessage.SEVERITY_ERROR);
    getFacesContext().addMessage(ddlSourceReq.getClientId(getFacesContext()), message4);
    return null;
    sendMail("close");
    } catch (Exception ex) {
    return null;
    public String btnSave_action() {
    // TODO: Process the button click action. Return value is a navigation
    // case name where null will return to the same page.
    sendMail("save");
    return null;
    I did not set the 'required' property of both the drop downs and I dont have any message components in the page. How do I get this to work. Please help.
    Thanks,
    S

    Hi,
    Try this
    HTP.p('
    function validate_form_fields()
    var validation = true;
    if (document.forms[0].fld_1.options[document.forms[0].fld_1.selectedIndex] == null )
    validation = false;
    alert("Selection of FLD1 is mandatory.");
    if (document.forms[0].fld_2.options[document.forms[0].fld_2.selectedIndex] == null )
    validation = false;
    alert("Selection of FLD 2 is mandatory.");
    return validation;
    ');If the above does not work, it could be the definition of the your fld_1 select - options. Looks like they allow null values, and if null is not the first option then selectIndex = 0 will be a not null option by default.
    Moreover, the below has redundant condition as ==0 and < 1 amount to the same thing. selectIndex cannot be negative.
    if ((document.forms[0].fld_1.selectedIndex == 0 ) || (document.forms[0].fld_1.selectedIndex < 1 ))Regards,

  • ME47 price = 0 in overview when condition valid in future

    Hi Expert,
    I have a quotation with item 10 and 20 with the same material. When I update item 10 price with 1 and item 20 price with 2, the item 20 price will change to zero and gray. The info record also can not see any update in item 20. infoUpdate is "C".
    Item
    Material #
    Price
    Date from
    Date to
    10
    A
    1
    2015/5/5
    2015/5/6
    20
    A
    2
    2015/5/7
    2015/5/31
    I also checked below notes are implement in my system.
    586030 - ME47: price = 0 in overview when condition valid in future
    360746 - ME47: Update conditions in the info record
    428245 - ME47: Maintaining conditions, SAPSQL_ARRAY_INSERT_DUPREC
    Thanks,
    Leon

    You system is behaving correctly.
    You can see the net price = 0 at overview level, but you can see the original price at details condition level.
    You second line item's condition record is not valid for today's date, that's because it is showing 0 for overview screen. I hope your RFQ document date = 05.05.2015.
    For first line item, your condition record has validity = 05.05.2015 to 06.05.2015. (which is valid for today's date)
    For second line item, your condition record has validity = 07.05.2015 to 31.05.2015 (which is not valid for today's date)
    Change the valid from of the second line item = 05.05.2015, then you can see the price at overview screen.

  • Error message 'not a valid PDF document'

    Hi folks,
    my Z10 has trouble opening some PDF documents sent as email attachment. When I try to open them the error message appears:
    Important message
    The document cannot be opened because it is not a valid PDF document
    There is no BES10 Service involved in my environment. Mails are synced with with active sync.
    OS Version: 10.2.0.429
    Any suggestion appreciated.
    Best regards,
    RAUMPATROUILLE

    Stuffit is the only app I know of which can decompress its own format. Your Windows clients must use the free Expander to open them. Otherwise, use OS X's built in zip compression and they'll be able to open the files without the need of third party software. Right click on any item, or group of items and choose, "Compress xxx Items" (how it will read if more than one item is chosen).

  • Unsolved: unable to open file because it isn't a valid Keynote document

    I'm trying to open a presentation I made some time ago, it is a .key file I used to open without any problems. Now the message appears:
    "Unable to open file because it isn't a valid Keynote document".
    I tried the solution described here, but it didn'd work: i change extension to .zip, unzip it and there is no index file. There are only pictures from the presentation in .tiff
    I also sent the file to my friends and they had the same problem opening it. It's very strange, I've successfully opened it before. And the problem is only with THIS file!
    Please help me out!

    Have you tried to create a new Keynote Presentation? Do you have another previously saved Keynote file you can try to open? These will make sure it is a problem with this specific presentation and not the whole program.
    Try to delete the Keynote Preferences. They are located in the folder Macintosh HD>Users>your username>Library>Preferences and titled com.apple.iWork.Keynote.plist.
    Your profile shows that you are still on Mc OS 10.6.6, is that true? You might try to update to 10.6.7 as I believe that there was a font issue fixed in this update (I don't know for sure since I am still on 10.5.8).
    Try those and report back and we will see what we can come up with.

  • Error: No valid XML document received*_

    Hi All,
    We are connecting our CCMS system to NetWeaver J2EE engine on which E-Sourcing is running.
    For this we registered java component and hosts in cen.
    But we are getting error as : No valid XML document received
    Please can anyone tell me how to overcome this error.
    Thank you .
    Regards
    Mahesh

    Hi,
    Please re-read the answer from Marc carefully.  He was in the exact same situation as yours: 
    - Monitored system: NW CE 7.1
    - CEN: NW 7.01 (same as NW 7.0 EhP1)
    The link you posted is for CEN with NW 7.3 and monitored systems from NW 7.02 (and up).  Read the paragraph below the Caution sign:
    If you want to centrally monitor any system with a central monitoring system with release SAP NetWeaver 7.0, this procedure is not applicable. In this case, follow the procedure described in the newest Monitoring Setup Guide for SAP NetWeaver 7.0 instead. You can obtain the Monitoring Setup Guide at the Internet address service.sap.com/operationsnw70 in the Monitoring area.
    You should look for (and follow) the right Monitoring Setup Guide as mentioned.
    Regards,
    Dao
    Edited by: Dao Ha on Sep 19, 2011 10:38 AM

  • Saving a Photoshop CC project from a Mac (in .PSD format) to a thumb drive and trying to transfer it to a Dell laptop with Photoshop CS6.  Will not open...Error message: could not complete your request because it is not a valid photoshop document.

    Saving a Photoshop CC project from a Mac (in .PSD format) to a thumb drive and trying to transfer it to a Dell laptop with Photoshop CS6.  Will not open...Error message: could not complete your request because it is not a valid photoshop document.

    The file was corrupted somewhere along the way (assuming it was still readable on the Macintosh).
    The platforms don't matter, but you still need file transfer that doesn't corrupt files...

  • URGENT - Error "Unable to open file because it isn't a valid Keynote document" - and there is no index file (so the usually suggested solution doesn't work)

    Hi there,
    As you see in the heading, I am getting the error "Unable to open file because it isn't a valid Keynote document". There has been a number of threads on this and there seems to be a usual work around that works in many cases, by changing the file extension to .zip and then looking for the index file and making some more extension changes...unfortunately, in my case (and it also happened to others), there is no index file, so the usually suggested solution doesn't work...Can someone please help? I am working on a tight deadline and would like to try and recover the file.
    Thanks a lot in advance.
    Best,
    Just a regular apple user
    PS: any other presentation opens fine in Keynote (09)

    Have you tried to create a new Keynote Presentation? Do you have another previously saved Keynote file you can try to open? These will make sure it is a problem with this specific presentation and not the whole program.
    Try to delete the Keynote Preferences. They are located in the folder Macintosh HD>Users>your username>Library>Preferences and titled com.apple.iWork.Keynote.plist.
    Your profile shows that you are still on Mc OS 10.6.6, is that true? You might try to update to 10.6.7 as I believe that there was a font issue fixed in this update (I don't know for sure since I am still on 10.5.8).
    Try those and report back and we will see what we can come up with.

  • PSE 9.0 error: ".....not a valid photoshop document"

    Platform is XP Pro...camera is Canon compact digital.
    I downloaded photos to desktop folder. PSE allowed me to open the first 3 photos from the folder to edit, then I got the above error message.
    However, when I right click on the photo in the desktopp folder to "open with Photoshop Elements" the PSE 9.0 editor opened all the photos.
    WHY?
    TIA,
    Doc

    I know this thread is a bit old, but I wanted to share my experience and solution in case anyone else runs into this.
    The other day, I spent many hours editing some photos for a client. I saved them all and closed Photoshop. When I tried to open the .PSDs, they all came up with this "Not a valid Photoshop document" error. I was freaking out. I could see the thunmbnails and previews with the MacOS Finder and could see the images just fine in Lightroom, but couldn't open them in Photoshop CC.
    Finally, I remembered that these were NOT supposed to be .psd files! They were supposed to be TIFFs. What happened was, when I edited them from within Lightroom into Photoshop, they opened as TIFFs. However, when I did "save as", I wanted to name them similarly to some other files I had. I clicked on one of the existing files to copy the file name in the Save As dialog to make it easier to name the new file I was saving, but I didn't realize it was changing the file extention from ".tif" to ".psd" as well. The older MacOS (version 9 and earlier) didn't rely on file extensions fo identifying file types, so it didn't hit me right away that this would be the problem. When I changed the incorrect .psd file extension to .tiff, the files opened in Photoshop just fine.
    SO... if you run into this "Not a valid Photoshop document" error, try figuring out if it's actually another file type (.jpg, .tif, .png, etc) by either getting the file info from another program or just experimenting with different file extensions. Chances are good that your file isn't actually corrupt, but just named improperly!

  • File is not a valid freehand document

    Hi
    I need help! I am a Freehand 9 user using Window 200, 256MB
    Ram. At times i have a problem of not being able to open the
    freehand file that i save. The error code is "Could not convert the
    document because the file is not a valid freehand document ".
    I have tried using Freehand MX to open but the same error
    code appear too.
    Was the file corrupted ? How can i prevent this thing again?
    Cheers
    Bwlim

    In Windows I believe you have to have the 3 letter extension
    on the end for it to be recognized?
    For Freehand 9 that would be .fh9
    Other than that, the document may be corrupt.

  • Not a valid Photoshop document (urgent help needed))

    I am using Photoshop CS5. Suddenly I am not able to open any of my .psd documents. I get a box that tells me "This is not a valid Phoroshop document." I don't know what has happened.
    Is my application corrupt? Should I reinstall it?
    Is the problem with the preferences file? Should I delete it? If so, how do I do that?
    I am a web designer and now I cannot access my files and work on them. This is a really desperate situation!! I appreciate any insights someone can give me!
    Thank you.

    Thank you for your response. I did find the keyboard shortcut and that was so easy. Why can't Adobe tell that? By the way, I am ready to give up on my Mac. I have 10 library folders and every day a new one pops up - I have no idea where all this stuff comes from to cause my computer to be so unorganized and the folks at my user group don't seem to understand why I am so frustrated. I am ready to buy a new PC. And none of these library folders have a preference file for Photoshop.
    Well, that is all I have for this discussion and thank you for letting me vent (as if you even wanted me to!).

  • 'not a valid photoshop document' when I try and overlay an image on photoshop.. help!!!

    I downloaded jpeg files from google drive. As far as I know they are not corrupted and when I used them on the newest version of photoshop they worked. What I am trying to do is place images next to one another. Everytime I try and do this a notice comes up saying 'it is not a valid photoshop document'. I have tried changing the jpg to photoshop format pdf and also opening them as photoshop files - I dont know what else I can do and my photography deadline is tomorrow for my final edits!
    PLEASE HELP

    Without having access to the file that you are working with I would not know how to help. There can be many factors involved that are giving you grief. Are you on PC or Mac? There are many here that are more savvy with the nuances and problematic issues with Ps than I. If you wish to send me one of the files I can give it a try on my setup and see what happens- [email protected]

  • "Error: Could not complete your request because it is not a valid Photoshop document." How can I fix this on a mac?

    I was working on a project and I closed it after saving and closed photoshop. Then later when I came to make another adjustment to my PSD I opened the file and it said "Could not complete your request because it is not a valid Photoshop document." How can I fix this? I didn't shut off my mac while saving it. Someone please help

    Okay, I just talked to the person that originated the document.
    When this usually happens to me, it's because I've done something stupid like saved a .jpeg as a .psd. So that's what I tried. I tried a few other extensions as well, so I thought that it was not an extension problem. Well, the originator told me it had originally been a TIFF, which was the ONE FILE EXTENSION I DIDN'T TRY. :\
    Anyway, that fixed it. Usually this error indicates either a corrupt file or the wrong extension, just in case anyone ever digs this convo up later.

  • "...not a valid Photoshop document" error when opening Mac cc file on PC

    I get a "Could not complete your request because it is not a valid Photoshop document." error message whenever I try to open up a PSD file created on a Mac using Photoshop CC on my PC using CC. Other people have been able to open the file from the same location, so the files aren't corrupted. Anyone know how to fix this?

    I know this thread is a bit old, but I wanted to share my experience and solution in case anyone else runs into this.
    The other day, I spent many hours editing some photos for a client. I saved them all and closed Photoshop. When I tried to open the .PSDs, they all came up with this "Not a valid Photoshop document" error. I was freaking out. I could see the thunmbnails and previews with the MacOS Finder and could see the images just fine in Lightroom, but couldn't open them in Photoshop CC.
    Finally, I remembered that these were NOT supposed to be .psd files! They were supposed to be TIFFs. What happened was, when I edited them from within Lightroom into Photoshop, they opened as TIFFs. However, when I did "save as", I wanted to name them similarly to some other files I had. I clicked on one of the existing files to copy the file name in the Save As dialog to make it easier to name the new file I was saving, but I didn't realize it was changing the file extention from ".tif" to ".psd" as well. The older MacOS (version 9 and earlier) didn't rely on file extensions fo identifying file types, so it didn't hit me right away that this would be the problem. When I changed the incorrect .psd file extension to .tiff, the files opened in Photoshop just fine.
    SO... if you run into this "Not a valid Photoshop document" error, try figuring out if it's actually another file type (.jpg, .tif, .png, etc) by either getting the file info from another program or just experimenting with different file extensions. Chances are good that your file isn't actually corrupt, but just named improperly!

Maybe you are looking for

  • ITunes will not play songs, music anything

    I've got Mountain Lion and iTunes 10.7 and it will (no longer) play any music. The diamond does not may/progress and nothing happens. I already re-installed iTunes, rebooted several times. Also no previews from the iTunes store play. No error message

  • How do I automatically add a background/watermark to a PDF?

    Hi! My name is mike and I am working on an invoice draft. The invoice is created within Microsoft Access and will be printed out on the Adobe PDF printer. I'd like to automatically add a background with some graphical details (which is not possible w

  • Keep getting error 4002 when trying to update Genius

    I haven't seen anyone write about getting error 4002 when trying to update genius in itunes. I select update genius and it gathers information and sends it to the itunes store I assume. And then waits a few seconds and then I get the following messag

  • Depreciation run for Business area

    Hi all We design some business areas are belong to 1 company code.IF each BA want to depreciation run by itself How to depreciation run independent for each BA. If anyone know it, please teach for me. Thanks all Tora86

  • Create Dynamic reports

    Post Author: Thomas Gyllencreutz CA Forum: Crystal Reports Hi!In Crystal Reports 8.5 there is 2 functions AddTextObject and AddFieldObject that allows me to add objects on-the-fly on a blank report. I cant find these methods anywhere in Business Obje