Validation fails when schema and xml doc are located in different folders

xml file and schema are in different folder. Schema uses namespaces. When I try to validate, I get exception:
truecvc-elt.1: Cannot find the declaration of element 'Start'
In xml document I have a Start element, which is a root element like this:
<Start ... xsi:schemaLocation https://test.fi/Start
C:/my_schema_folder/2005/Start.xsd>...</Start>
xml document is in C:/my_xml_folder/test.xml
Why this dont work? I try to validate laki this:
SAXParser parser = new SAXParser();
try
          parser.setFeature("http://xml.org/sax/features/validation",true);
          parser.setFeature("http://apache.org/xml/features/validation/schema",true);
          parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",
          true);
          parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", SchemaUrl );
          Validator handler=new Validator();
          parser.setErrorHandler(handler);
          parser.parse(XmlDocumentUrl);
          if(handler.validationError==true)
          System.out.println("XML Document has Error:"+handler.validationError+""+handler.saxParseException.getMessage());
          else
          System.out.println("XML Document is valid");
     catch(java.io.IOException ioe)
          System.out.println("IOException"+ioe.getMessage());
     }catch (SAXException e)
          System.out.println("SAXException"+e.getMessage());
     }

Sorry, my bad. It was just a typing error...aaaargh!!! ;)

Similar Messages

  • I need to have what is dragged onto the desktop stay there and not go where other Docs are located in Alphabetical order

    I need to have what is dragged onto the desktop stay there and not go where other Docs are located in Alphabetical order.
    Grateful 
    (controlling text editing)

    If you are New to Mac... you may also find these links of Value
    Mac 101
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    MBP Support
    http://www.apple.com/support/macbookpro
    Cheers,

  • When LAST_DDL_TIME and TIMESTAMP fields are uptaded?

    Hi,
    I need know when the fields LAST_DDL_TIME and TIMESTAMP are updated.
    - Which updated objects (tables, procedures, etc) can change them?
    - Which references are updated too? All?
    Thanks by any help
    Moises Rodrigues
    System Analist
    CPM Braxis - http://www.cpmbraxis.com

    Hi,
    Please refrain from posting duplicate threads.
    Already answered Re: When LAST_DDL_TIME and TIMESTAMP fields are uptaded?
    Aman....

  • I am trying to import photos into PSE 12 from folders on my desktop, which are organized by broad topics--family, vacations, etc..  Many of my photos are located in several folders.  When I try to import them to PSE I get a message saying some photos were

    I am new to PSE 12 and am trying to import my photos from folders on my desktop which I have organized by the categories I had in my previous program (Creative Memories).  Many of my photos are located in multiple folders, i.e. one photo could be in "Family," Vacations" and "Birthdays."  When I try to import the contents of each folder on my desktop I am often getting the message that many of my photos were not imported as they are already in my catalog.  Is there a way that I can import any one photo multiple times so that it ends up in all the folders I want it to be in?  I know I can locate the photo in PSE and copy it to a different folder(s), but there are so many not being imported that this would be a huge task!

    By design, the organizer (and any other database management systems) is there to prevent you from duplicating your media files. The catalog management allows you to have the same image in different categories or albums. Duplication in different folders is to be absolutely avoided.
    The same image file can have multiple tags like 'family', 'vacations', 'birthdays' and be present in three different albums with the same names. On obvious advantage is less disk space. Another one with your present folder system is that if you edit one of your duplicates, the other ones are unchanged.
    I don't see an easy way to make your present folder structure simplified for the organizer ...

  • Error The PC and the printer are connected to different networks

    Hi,
    I'm trying to set up my C4580 on my laptop, but I'm getting  the following error after the diagnostic test:
    The PC and the printer are connected to different networks(237DB2A87D and 66616B65). They must be connected to the same network. This can happen when you use the manufacturer's default network name (SSID) and another nearby network is using the same name. 
    My setup is a Linksys router WRT546,  my laptop is conntected wireless to the router.  I have two other desktop computers that are directly connected to the router.  Both the desktops are able to connect wireless to the printer.  My router SSID name is 'Blair Office' with WPA security.
    I get a internet connect fine with the laptop, but can't get the new printer to setup.
    I saw another post that talked about 'Print the C45** Network Configuration Page', but not sure how to do this
    Thanks
    Diane

    This reply may be late for this user, but it might be helpful for any current users.
    I managed to change the modem's IP address to match that of the printer. In my case the printer worked fine wirelessly until I moved to a new place and installed a new modem. Here is what I did to solve the problem:
    1. At the printer, click on the wireless button, wireless settings, print network configuration page. This will print a page with the printer's IP address (in my case: 192.168.0.13)
    2. I accessed my modem via the internet browser, typing 192.168.1.1 (this is one of the default addresses (192.168.0.1 is also common). Default user and password is admin (usually). There I changed the modem's IP address to 192.168.0.1 and the range to start at 192.168.0.13 (my printer's IP address).
    3. I saved the settings (the modem will reboot and you will be offline, it may take some 20 seconds before the modem is visible again).
    4. Reconnect to the modem and check if internet is still working. Then try to install the printer again.
    This worked for me after I read several other postings.
    Good luck!

  • I recently deleted many duplicate files. In the midst of it my Itunes songs are not in Itunes. They are in two different folders. One under 'Music' in my ID. And two under a MyMusic file in Documents. How do I know which one to import?

    I recently deleted many duplicate files. In the midst of it my Itunes songs are not in Itunes. They are in two different folders. One under 'Music' in my ID. And two under a MyMusic file in Documents. How do I know which one to import?

    Thanks, this is not an ideal answer but probably the most sensible one in my case.
    I will try it unless someone has a better suggestion, but I'll wait a bit as it will take me a few days anyway (I had actually tried to create a new smaller playlist or download by album, but at this stage the music app is not letting me queue a list of songs for download - I think I will have to disable and re-enable iTunes match which will probably delete all the songs).
    I have to say I am not very impressed with Apple here - having an online backup of all your data and beeing able to restore it to a new device easily was a strong selling point of iCloud. For music, they are Definitly not delivering at the stage.

  • Installed Microsoft word on iPad The templates are underlined in English but when you open them they are in a different language

    have just installed Microsoft word on iPad all the templates are underlined in English but when you open them they are in a different language

    Regarding pseudo-latin template filler language, you can learn about that standard practice at
    http://en.wikipedia.org/wiki/Lorem_ipsum

  • Service Contract and Service Quote, Are they two different application or s

    Service Contract and Service Quote, Are they two different application or same application ?
    What is the difference ?
    thanks
    siva

    Siva
    There is no application called Service Quote (But we can have services in the quoting lines).
    Thanks
    Nagamohan

  • 1.- I´m creating a Muse site which contains videos, photos and sound. All videos, sounds and pictures are located in diferent folders in my PC. Since Muse doesn't organize the project and its files like Dremweaver (all files in a single folder). How can I

    1.- I´m creating a Muse site which contains videos, photos and sound. All videos, sounds and pictures are located in diferent folders in my PC. Since Muse doesn't organize the project and its files like Dremweaver (all files in a single folder). How can I manage my site (containing all the media)  in order to upload it to a server?
    2.- Is there a Adobe Muse community in spanish language?
    Thanks for your help
      Mauricio444

    Kevin is suggesting that you store the projects you create while working through his book in a folder called RoboHelpProjects. It is not where you have to store every project you ever create.That is for the purposes of his book.
    RoboHelp initially defaults to My RoboHelp Projects but it's up to you whether you do. Generally on the forums we advise against that as  it is part of your profile and can result in excessively long path names in a few cases. Generally where authors create file names that are so long they almost serve as the content.
    Projects always have a root folder, call them Project 1 and Project 2 for this purpose. You can have those folders directly off your C drive (or other local partition) or within in a parent folder as above.
    Now to what you can and cannot do. You can delete a whole project by selecting Project 1 or Project 2 in Windows Explorer. Obviously if you delete the parent folder you will delete all your projects within.
    What you must not do is delete individual files within a project using Windows Explorer, for that you use RoboHelp's Project Manager. The exception is if you go to Tools > Reports there is a report Unused Files. Files listed there will have to be deleted using Windows Explorer for the very good reason they do not appear in Project Manager and, therefore, cannot be deleted that way.
    If you think about it, it is similar to Word. There is no option to delete a document there other than using File > Open and right clicking. Not very intuitive.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.

    Why don't my photos appear as they do in iPhoto on my Apple Computer. Even though I specify to sync all Events, Faces, etc. the iPad 2 is missing Faces categories and the Events are in a different order.

    1) The best way to relocate the iTunes library folder is to move the entire iTunes folder with all subfolders to the new path, then press and hold down shift as start iTunes and keep holding until prompted to choose a library, then browse to the relocated folder and open the file iTunes Library.itl inside it.
    If you've done something different then provide some more details about what is where and I should be able to help.
    2) Purchases on the device should automatically transfer to a Purchased on <DeviceName> playlist, but it my depend a bit on whether automatic iCloud downloads are enabled. If there is a cloudy link then the transfer might not happen. You can use File > Devices > Transfer Purchases. In iTunes you should also check out iTunes Store > Quick Links > Purchased > Music > Not on this computer.
    3) Backup the device, then immediately restore it. In some cases you need to add a restore as new device into that equation. Obbviously not to be attempted until you're sure all your media is in your library. See Recover your iTunes library from your iPod or iOS device should it be needed.
    4) I believe there is complimentary 1 incident 90-day support with hardware purchases, but no free software support for iTunes itself. AppleCare gets you a different level of support.
    tt2

  • I only want itunes to hold the lossless files which are in two different folders. How do I do that?

    I have thousands of MP3 files which I no longer use and which are in my itunes library.
    I want itunes (version 11) to have in it's library only the MS Lossless format and the ALAC lossless format which are in two different folders. How do I achieve this?

    Delete the files you don't want, or cut & paste them to an alternate location if you want to archive them.
    What MS Lossless format? .wav?
    iTunes doesn't have any custom organization features, but you can change the location of the media folder and then selectively consolidate content to the new folder. This creates copies so you have to manually delete the originals. Alternatively I have a script called ConsolidateByMoving which does what it suggests. Thiis could be used to split the media into parallel subfolders within your existing media folder if you disable iTunes "Keep iTunes Media folder organized" option.
    tt2

  • Are there any command can list all container and XML doc which in DB

    When I use BDB XML shell,
    are there any command can list all container or xml document which in database,
    maybe like command dir(in windows), can list all exist directory and file.
    Thank very much.
    Henry Wang

    Hi Henry,
    When I use BDB XML shell,
    are there any command can list all container or xml
    document which in database,
    maybe like command dir(in windows), can list all
    exist directory and file.If you type "help" in the dbxml shell you'll get a list of all the commands available. As you will observe, you can use the "getDocuments" command to retrieve all the documents within a container. You will have to open the container first.
    If you want to list all the files within a directory you'll need to simply use the command prompt's "dir" (naming all your containers within a directory in the <container_name.dbxml> would allow you get the list by running a "dir *.dbxml" command).
    Not sure that this is what you really want, but if you would like to keep track of all the containers within a directory, or other directories, you can use a container with a special role, that of a catalogue, to hold the list of all created containers on disk, and eventually other specific information.
    Regards,
    Andrei

  • Repository event handler doesn't work when inserting an xml-doc via ftp

    Hi,
    I want to add a 'schemaLocation'-attribute to an XML-document when I load it in the repository. Therefore, I use the precreate-repository event and created a Repository Event Handler (see code extract below).
    Everything works fine if I type the following code in SQL Plus:
    Declare
    v_return BOOLEAN;
    Begin
    v_return:=DBMS_XDB.createresource('/public/xml/test.xml', XMLType(bfilename('XMLDIR', 'test.xml'),nls_charset_id('AL32UTF8')));
    end;Unfortunately, when I try to insert an XML-document via ftp into the /public/xml folder it doesn´t work as expected and no 'schemaLocation'-attribute is added to the new resource.
    What's the reason for this strange behavior and how can I solve it?
    For your information: I use the Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    Thank you very much for your help!!!
    Repository Event Handler code extract:_
    create or replace
    PACKAGE BODY schemalocation AS
    PROCEDURE handlePreCreate (eventObject DBMS_XEVENT.XDBRepositoryEvent) AS
    XDBResourceObj DBMS_XDBRESOURCE.XDBResource;
    var XMLType;
    l_return BOOLEAN;
    l_xmldoc dbms_xmldom.DOMDocument;
    l_docelem dbms_xmldom.DOMElement;
    l_attr dbms_xmldom.DOMAttr;
    c1 clob;
    node     dbms_xmldom.DOMNode;
    txid varchar2(100);
    dDoc DBMS_XMLDOM.DOMDocument;
    nlNodeList DBMS_XMLDOM.DOMNodeList;
    BEGIN
    XDBResourceObj := DBMS_XEVENT.getResource(eventObject);
    dbms_lob.createTemporary(c1,TRUE);
    var:=DBMS_XDBRESOURCE.getcontentxml(XDBResourceObj);
    l_xmldoc := dbms_xmldom.newDOMDocument(var);
    l_docelem := DBMS_XMLDOM.getDocumentElement(l_xmldoc);
    ------ add schemaLocation attribute
    l_attr := DBMS_XMLDOM.createAttribute(l_xmldoc, 'xsi:schemaLocation');
    DBMS_XMLDOM.setValue(l_attr, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd');
    l_attr := DBMS_XMLDOM.setAttributeNode(l_docelem, l_attr);
    DBMS_XMLDOM.WRITETOCLOB(l_xmldoc, c1);
    ------- get the value of the TxId-tag
    dDoc := DBMS_XMLDOM.NEWDOMDOCUMENT(c1);
    nlNodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(dDoc, 'TxId');
    node := DBMS_XMLDOM.ITEM(nlNodeList, 0);
    txid:= dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(node));
    l_return:=DBMS_XDB.createresource('/public/ok/'||txid||'.xml', XMLType(c1));
    END;

    Marco,
    Here's an example of the problem :
    create or replace package handle_events
    as
      procedure handlePreCreate(p_event dbms_xevent.XDBRepositoryEvent);
    end;
    create or replace package body handle_events
    is
    procedure handlePreCreate (p_event dbms_xevent.XDBRepositoryEvent)
    is
      XDBResourceObj dbms_xdbresource.XDBResource;
      doc XMLType;
      res boolean;
    begin
      XDBResourceObj := dbms_xevent.getResource(p_event);
      doc := dbms_xdbresource.getContentXML(XDBResourceObj);
      select insertchildxml(
        doc
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
      res := dbms_xdb.CreateResource('/public/xml/result.xml', doc);
    end;
    end;
    declare
    res boolean;
    begin
    res := dbms_xdb.CreateFolder('/public');
    res := dbms_xdb.CreateFolder('/public/tmp');
    res := dbms_xdb.CreateFolder('/public/xml');
    end;
    declare
    res            boolean;
    resconfig      xmltype;
    my_schema      varchar2(30) := 'DEV';
    resconfig_path varchar2(300) := '/public/ResConfig.xml';
    resource_path  varchar2(300) := '/public/tmp';
    begin
      resconfig  := xmltype(
    '<ResConfig xmlns="http://xmlns.oracle.com/xdb/XDBResConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/XDBResConfig.xsd http://xmlns.oracle.com/xdb/XDBResConfig.xsd">
      <event-listeners set-invoker="true">
        <listener>
          <description>My event handler</description>
          <schema>'||my_schema||'</schema>
          <source>HANDLE_EVENTS</source>
          <language>PL/SQL</language>
          <events>
            <Pre-Create/>
          </events>
          <pre-condition>
            <existsNode>
              <XPath>/r:Resource[r:ContentType="text/xml"]</XPath>
              <namespace>xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"</namespace>
            </existsNode>
          </pre-condition>
        </listener>
      </event-listeners>
      <defaultChildConfig>
        <configuration>
          <path>'||resconfig_path||'</path>
        </configuration>
      </defaultChildConfig>
    </ResConfig>'
      res := dbms_xdb.CreateResource(resconfig_path, resconfig);
      dbms_resconfig.addResConfig(resource_path, resconfig_path, null);
    end;
    /Giving the following input XML file :
    <?xml version="1.0" encoding="utf-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>This works :
    SQL> declare
      2    res boolean;
      3  begin
      4    res := dbms_xdb.CreateResource('/public/tmp/test.xml',
      5               xmltype(bfilename('TEST_DIR','test.xml'), nls_charset_id('AL32UTF8')));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>With the same document loaded via FTP, we get :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00283: document encoding is UTF-16-based but default input encoding is not
    Error at line 1
    no rows selectedand the content looks like :
    < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " u t f - 8 " ? >
    < r o o t   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " / >As a workaround, I've found that serializing and re-parsing the document solves the problem :
      select insertchildxml(
        xmltype(doc.getclobval())
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
    ...We then get the expected result after FTP transfer :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>The workaround also works for the DOM version presented above.
    Any ideas?

  • Table number xrefs disappear when roundtripping the XML doc back to FM

    I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
    Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
    I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
    I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
    -- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
    -- In the Structure View of the same XML doc, I see the following:
    - The CROSSREF element text says WHITESPACE.
    - Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
    - The Idref attribute is disconnected from the CROSSREF element.
    - The "table" element is disconnected from its container element (TableAnchor).
    Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
    The XML-converted doc source text reads:
    If you're using WebDrive, you will want to use the options shown
    in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
    type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
    [TableAnchor]
    [table tabstyle = "Expressroom2" cols = "2"
    colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
    frame = "all"]
    [title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
    WebDrive control panel options?]WebDrive login values[/title]
    [tgroup cols = "2" colsep = "1" rowsep = "1"]
    [colspec colnum = "1" colname = "1" colwidth = "2.198in"]
    [/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
    [/colspec][thead]
    [row rowsep = "1"]
    [entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
    [entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
    [/row]
    [/thead]
    But when I open the same XML-converted doc back in FM, I get the following:
    "If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
    The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
    I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
    [I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

    I'm using FM 7.2p158 running on Windows XP on a Dell Optiplex GX520 with 1GB RAM. I've converted my legacy FM docs to structured FM, but my (CALS-formatted) table number xrefs disappear when I roundtrip the XML docs back to FM. How can I remedy this?
    Initially, I used my own conventions to name the table part elements as I have about 10-15 specific table types and I used those Table Tag names as table elements names (Invisible2, Invisible4, StepTable, ...), so I had 10-15 elements that were true "is fm table element" types in the EDD, DTD, and R/W rules. The table number xrefs worked as they should after roundtripping FM-XML-FM and the tables' shading, ruling, and Table Tags were correct.
    I consulted our XSLT developer for proper browser display of the XML files, and he suggested that I should use the CALS table model. I studied the Struct Dev Gd, then I searched this forum for postings on CALS tables and related topics and used suggestions offered by many of you good folks to create an EDD, DTD, and R/W rules to that end.
    I've run some tests using many iterations of my files (both CALS and non-CALS types) to roundtrip the FM files, but I cannot get the xrefs of the table number from the CALS-version table title element to display when I roundtrip the XML doc and open it in FM. I get this:
    -- In the XML doc text opened in FM, instead of "Table 1-1" for the xref, it leaves a blank space (although the source numbered table title is there).
    -- In the Structure View of the same XML doc, I see the following:
    - The CROSSREF element text says WHITESPACE.
    - Both the CROSSREF element and its source element continue to have the (matching) "Idref" and "Id" number displayed in this view.
    - The Idref attribute is disconnected from the CROSSREF element.
    - The "table" element is disconnected from its container element (TableAnchor).
    Once I apply the File/Import/Element Definitions command in the XML doc in FM, the XML becomes valid and both the CROSSREF Idref attribute and the table element are reconnected, but my xref of the table number is still WHITESPACE.
    The XML-converted doc source text reads:
    If you're using WebDrive, you will want to use the options shown
    in [CROSSREF Idref = "BEHJCAJB" format = "Table Number"/] on the [IndexEntry
    type = "Index" text = "WebDrive options"/]WebDrive control panel.[/Para]
    [TableAnchor]
    [table tabstyle = "Expressroom2" cols = "2"
    colwidths = "2.198in 3.500in" colsep = "1" rowsep = "1"
    frame = "all"]
    [title Id = "BEHJCAJB"][?FM MARKER [Cross-Ref] 86302: TableTitle: Table 1-1
    WebDrive control panel options?]WebDrive login values[/title]
    [tgroup cols = "2" colsep = "1" rowsep = "1"]
    [colspec colnum = "1" colname = "1" colwidth = "2.198in"]
    [/colspec][colspec colnum = "2" colname = "2" colwidth = "3.500in"]
    [/colspec][thead]
    [row rowsep = "1"]
    [entry colname = "1"][CellHeading]Field[/CellHeading][/entry]
    [entry colname = "2"][CellHeading]Value[/CellHeading][/entry]
    [/row]
    [/thead]
    But when I open the same XML-converted doc back in FM, I get the following:
    "If you're using WebDrive, you will want to use the options shown in on the WebDrive control panel."
    The CROSSREF Idref "BEHJCAJB" is [WHITESPACE] in the Structure View, so it's a blank space within the actual text in FM.
    I have excerpts from my EDD, DTD, and R/W rules that I can post, but would make this even more lengthy. (Sorry about the current length.) What do I need to change to make the xrefs work when I roundtrip the files?
    [I don't know whether it makes any difference or not, but I have changed the element names since I originally used a conversion table (to structure my legacy FM files); however, I persisted those element name changes throughout the EDD, DTD, and R/W rules files.]

  • List data validation failed when creating a new list item but does not fail when editing an existing item

    Dear SharePoint Experts,
    Please help.
    Why does my simple formula work in Excel but not-work in SharePoint?
    Why does this formula...
    =IF([Request Type]="Review",(IF(ISBLANK([Request Date]),FALSE,TRUE)),TRUE)
    ...work in Excel but fail when I try to use it in SharePoint?
    The intent of this formula is the following...
    If the field "Request Type" has the value "Review" and the field "Request Data" is blank then show FALSE, otherwise show TRUE.
    SharePoint saves the formula, but when a list item is saved where the formula is implemented, (under List Settings, List Validation), SharePoint does not, say anything other than that the formula failed.
    Note that the "list data validation failed" error only happens when I am creating a new item-- the formula above works just fine when one is trying to Save on the edit form. 
    Can you help?
    Thanks.
    -- Mark Kamoski

    Dear Jason,
    I appreciate your efforts.
    However, it seems to me that this statement of yours is not correct...
    "If it meet the validation formula, then you can new or edit the item, otherwise, it will throw the 'list data validation failed' error, it is by design".
    I believe this is NOT the answer for the following reasons.
    When I create a new item and click Save, the validation error is "list data validation failed".
    When I edit an existing item and click Save, the validation error is "my custom error message" and this is, I believe, the way it needs to work each time.
    I think, at the core, the error my formula does not handle some condition of null or blank or other default value.
    I tried a forumla that casts the date back to a string, and then checked the string for a default value, but that did not work.
    I tried looking up the Correlation ID in the ULS when "list data validation failed" occurs, but that gave no useful information because, even though logging was set to Verbose, the stack trace in the error log was truncated and did not given any
    good details.
    However, it seems to me that SharePoint 2013 is not well-suited for complex validation rules, because...
    SharePoint 2013 list-level validation (NOT column-level validation) allows only 1 input for all the multi-field validation formulas in a given list-- so, if I had more than 1 multi-field validation rule to implement on a given list, it would need to be packed
    into that single-line-of-code forumla style, like Excel does. That is not practice to write, debug, or maintain.
    SharePoint 2013 list-level validation only allows 1 block of text for all such multi-field validation rules. So that will not work because I would have something like "Validation failed for one or more of the following reasons-- withdrawal cannot exceed
    available balance, date-of-birth cannot be after date-of-death,... etc". That will not work for me.
    The real and awesome solution would simply be enhancing SP 2013 so that column-level validation forumlas are able to reference other columns.
    But, for now, my workaround solution is to use JavaScript and jQuery, hook the onclick handler on the Save button, and that works good. The only problem, is that the jQuery validation rules run before any of the column-level rules created  with OOTB
    SP 2013. So, in some cases, there is an extra click for the enduser.
    Thanks,
    Mark Kamoski
    -- Mark Kamoski

Maybe you are looking for

  • How to upgrade from Vista to Windows 7 on mac?

    I currently run Windows Vista 32-bit on a separate partition I created with Boot Camp. I am looking to use a Windows 7 64 bit upgrade disc that I purchased to upgrade to windows 7. I am aware I will have to do a custom install to move from 32 bit to

  • Lightroom Catalogue external drive to be accessed by Mac and PC

    I have Mac 10.9.1 OS and Windows 7. I have Lightroom 5 Calatogue on external firewire drive currently running from the Mac. I want to open the catalogue from my Windows 7 Lightroom 5. I can open the catalogue, but cannot see the file structure in the

  • How do I download a photo from email to my mac?  It will not do it!

    I download a photo from my email and it goes shows up as a doc file?  Stupid!  How do I get it into Iphoto as a JGEG?

  • Problems with uploading instructor photo to course manager

    Does not work in Windows XP with Safari 5.1.7, can not upload instructor photo (300 x 300 or any other size).  No errors, just does "Uploading Photo" and never completes. Please advise.

  • Invoice simulation issue

    Dear Gurus, PO has has raised for 4 items each with Qty 500 item1 500 qty   value 4990 Eur item2 500 qty    value 4990 Eur item3 500 qty    value  460 Eur item4 500 qty     value 460 Eur GR happened for item1 491 qty   value 4900.18 Eur item2 500 qty