Save/Load with Serializable XML XStream

I'm working on a simulation model. The first step is the user fills out multiple screens of a wizard-like format with required data. Right now, I have a user create a "site" where all of the wizard information is stored. The Site is independent of the GUI portion. So if something is changed via the wizard, when the user clicks next, the site is updated with the data from the wizard. Likewise, if the site is updated due to a calculation, the wizard must be updated to match the site. Right now, for each panel of the wizard, I have an updateToSite method, and an updateFromSite method for accomplishing these two tasks. So, to save, I call the updateToSite for every panel, and then tell XStream to write the site out. Likewise for loading, I load the site with XStream and then call updateFromSite on every panel.
If I load an incomplete Site, I get an error and it stops loading any of the information after that error. What would be a good way to make it continue updating the panels with whatever information the site does contain?

Sch104 wrote:
If I load an incomplete Site, I get an error and it stops loading any of the information after that error. What would be a good way to make it continue updating the panels with whatever information the site does contain?Stop using XML.
The reason I say that is, compliant XML parsers are required to stop processing when they encounter the first instance of malformed XML. So if you have a requirement that your site parser should make a best effort to continue in the face of bad data, then using a compliant XML parser is not a good choice. You might find a non-compliant XML parser which tries to paper over malformed data but I haven't heard of such a thing.
Unless possibly "incomplete" doesn't imply malformed XML but means something else. In which case that analysis doesn't apply and you should just change your code to deal with it, whatever it does mean.

Similar Messages

  • Update articles loaded with sidecar.xml file

    I've used a path-based sidecar.xml file to load a folio, which worked great. Now I've made fixes on the files and want to Update them, but I get an error message when I try. I also tried to "Relink" the files, which has worked in the past but now doesn't. I have alternate layouts for iPad and Retina versions, and the sidecar is set to select the Retina layout. Has the v32.1 update changed anything about this? Is there a workaround?
    Thanks, Beth

    I've used a path-based sidecar.xml file to load a folio, which worked great. Now I've made fixes on the files and want to Update them, but I get an error message when I try. I also tried to "Relink" the files, which has worked in the past but now doesn't. I have alternate layouts for iPad and Retina versions, and the sidecar is set to select the Retina layout. Has the v32.1 update changed anything about this? Is there a workaround?
    Thanks, Beth

  • Photo gallery (using Loader with no xml)

    Hello, currently I'm doing a photo gallery.
    Inside .fla, only 2 frame:
    1st is for my 3 category: A, B, C.
    stop();
    A.addEventListener(MouseEvent.CLICK, clickSection);
    B.addEventListener(MouseEvent.CLICK, clickSection);
    C.addEventListener(MouseEvent.CLICK, clickSection);
    function clickSection(evt:MouseEvent):void{
        gotoAndStop("gallery");
        loader.unload();
        req = new URLRequest(evt.target.name + "_gallery.swf");
        createLoader();
        loader.load(req);
    2nd is to load the swf externally.
    var req:URLRequest
    var container_mc:MovieClip
    var loader:Loader = new Loader();
    req = new URLRequest("A.swf");
    createLoader();
    loader.load(req);
    function createLoader():void{
        loader = new Loader();
        loader.contentLoaderInfo.addEventListener(Event.INIT, initListener);
        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fileLoaded);
    function initListener(evt:Event):void{
        addChildAt(loader,1);
    function fileLoaded(evt:Event):void{
        container_mc = MovieClip(loader.content);
    debug (click the button and it pop this):
    RangeError: Error #2006: The supplied index is out of bounds.
        at flash.display::DisplayObjectContainer/addChildAt()
        at main_gallery_fla::MainTimeline/initListener()
    any ideas why?

    Yes, two... the first being the most important...
    1) Learn how to use the help documentation (and Google).  If you look up addChild in the help documents it will define what you need to know to be able to use it.  The same goes for any other element of the AS3 language.  The help documents are a primary tool in learning/using AS3 (or any language).
    2) use:  addChild(loader);
    I couldn't really follow your description in the first posting, but I would almost expect a flurry of other errors unless I am misinterpretting what you described.  Very often errors get reported in sequence, not all at once.

  • C# load xml data with attributes to datagridview; update data and save back to the xml

    Hi guys,
    i currently have this XML as data
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    I load the data with the code below:
    i use xDocument to load the DealData.xml and then put it in ToString.
    //outside of the form
    public static class XElementExtensions
    public static DataTable ToDataTable(this XElement element)
    DataSet ds = new DataSet();
    string rawXml = element.ToString();
    ds.ReadXml(new StringReader(rawXml));
    return ds.Tables[0];
    public static DataTable ToDataTable(this IEnumerable<XElement> elements)
    return ToDataTable(new XElement("Root", elements));
    //in the form
    private void button2_Click(object sender, EventArgs e)
    var xDocument = XDocument.Load("DealData.xml");
    string txtxml = xDocument.ToString();
    StringReader reader = new StringReader(txtxml);
    XDocument doc1 = XDocument.Load(reader);
    var res = doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION");
    dataGridView1.DataSource = res.ToDataTable();
    Now my question is:
    I would like to update the data from the DataGridview with the Attribute("ID").Value == "22" and save the data back to the XML.
    For example, after I load my data on the datagridview, we only pickup anything that is in the node
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    </DEAL>
    I updated the datagridview below with DEMANDE = 9000 CODE = 66 PRICE = 24.77 AND ALLOCATION = 1200
    I want be able to extract the data back in the xml as a child of the DEAL ID = "22"
    So that the XML file looks like this 
    <DEALS>
    <DEAL ID="22" ISBN="0-7888-1623-3" Screenplay="Mary Kaplan" Title ="Mr Gentleman" Director = "Jonathan Jones">
    <ALLOCATION DEMANDE="5000" CODE="72" PRICE="25.00">2500</ALLOCATION>
    <ALLOCATION DEMANDE="7000" CODE="75" PRICE="35.00">4000</ALLOCATION>
    <ALLOCATION DEMANDE="9000" CODE="66" PRICE="24.77">1200</ALLOCATION> <-! this is the new line !->
    </DEAL>
    <DEAL ID="23" ISBN="1-7988-1623-3" Screenplay="Joe Doe" Title ="Nothing Much" Director = "Listentome">
    <ALLOCATION DEMANDE="3300" CODE="72" PRICE="15.00">2500</ALLOCATION>
    </DEAL>
    </DEALS>
    Is there a way to achieve that?
    I have been searching and reading in the books but i cannot find a solution for this.
    Thank you
    Please do not forget to click “Vote as Helpful” if the reply helps/directs you toward your solution and or "Mark as Answer" if it solves your question. This will help to contribute to the forum.

    I would think of something like the below, the id is passed as static you need to change this
    protected virtual void button1_Click(object sender, EventArgs e)
    //Get DataTable from DGV datasource
    DataTable dt = new DataTable();
    dt = (DataTable)dataGridView1.DataSource;
    string file1 = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><DEALS><DEAL ID=\"22\" ISBN=\"0-7888-1623-3\" Screenplay=\"Mary Kaplan\" Title =\"Mr Gentleman\" Director = \"Jonathan Jones\"><ALLOCATION DEMANDE=\"5000\" CODE=\"72\" PRICE=\"25.00\">2500</ALLOCATION><ALLOCATION DEMANDE=\"7000\" CODE=\"75\" PRICE=\"35.00\">4000</ALLOCATION></DEAL><DEAL ID=\"23\" ISBN=\"1-7988-1623-3\" Screenplay=\"Joe Doe\" Title =\"Nothing Much\" Director = \"Listentome\"><ALLOCATION DEMANDE=\"3300\" CODE=\"72\" PRICE=\"15.00\">2500</ALLOCATION></DEAL></DEALS>";
    StringReader reader = new StringReader(file1);
    XDocument doc1 = XDocument.Load(reader);
    //Remove all elements related to the id being populated into the Grid
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").Descendants("ALLOCATION").Remove();
    //loop through datatable and create new xelement to be added to the xdocument
    foreach (DataRow dr in dt.Rows)
    XElement xe = new XElement("ALLOCATION",
    new XAttribute("DEMANDE", dr[0].ToString()),
    new XAttribute("CODE", dr[1].ToString()),
    new XAttribute("PRICE", dr[2].ToString()));
    xe.Value = dr[3].ToString();
    doc1.Descendants("DEAL").ToList().Where(x => x.Attribute("ID").Value == "22").FirstOrDefault().Add(xe);
    Fouad Roumieh

  • XML conversion on save/load

    I am seeking a method to take the text stored in a TextComponent upon a save action and convert it to an xml document complete with tags representing rich text features (bold, etc) and then upon load, convert the xml file back to text for editing in the TextComponent. Does anyone have any ideas on how to accomplish this?
    Thanks in advance,
    Ryan

    I'm not sure if I completely understand what you're asking, but here's what I'd do if my impression of what you're saying is correct.
    First step is to surround attributed text with attribute tags. No biggie. I'd use StyleDocument's getCharacterAttributes(int offset) to look for attribute boundaries and insert the attribute tags in at these boundaries using a AttributeSet to String-attribute tag method to get what to write. Then just throw the whole thing into a StringReader, wrap that with an InputSource, and then pass it to a SAX parser.
    Turning it back into a StyledDocument is pretty much just reversing those steps.
    Hope this helps.

  • How to pop up "save" and "open" window - Help with construct xml

    In my report there is a column link which is pointing to another HTML page that has xml data displayed in a textarea field. So when user clicks on the column link, he gets to directed to the page that have the xml data in text format.
    My question is, how can i make the xml data display as a file, so when the user clicks on the column link, a window with "save" and "open" will pop up so the user can save the xml data as a file?
    Has anyone done something similar like this? any help is appreciated!
    Regards,
    gina
    Message was edited by:
    gina

    Thank you Tine, I tried to use the 'Export XML' report template and tried to do the following query:
    SELECT XMLElement("oai_dc:dc",
    XMLAttributes('http://www.openarchives.org/OAI/2.0/oai_dc/' AS "xmlns:oai_dc",
                        'http://purl.org/dc/elements/1.1/' AS "xmlns:dc",
    'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi",
    'http://www.loc.gov/mods/v3' AS "xmlns:mods"
    XMLForest(
    dctitle AS "dc:title",
    dccreator AS "dc:creator",
    dcsubject AS "dc:subject",
    dcdescription AS "dc:description",
    dccontributor AS "dc:contributor",
    dcdiscovery AS "dc:discovery",
    dctype AS "dc:type",
    dcformat AS "dc:format",
    LOWER('ksl:posters-' || dcidentifier) AS "dc:identifier",
    dcsource AS "dc:source",
    dclanguage AS "dc:language",
    dcrelation AS "dc:relation",
    dccoverage AS "dc:coverage",
    dcrights AS "dc:rights")) AS "RESULT"
    FROM table_name
    and here is what returned in the “save as" file:
    <?xml version="1.0" encoding="utf-8" ?>
    - <XMLREPORTREGION>
    - <ROW ROWNUM="1">
    <RESULT>[datatype]</RESULT>
    </ROW>
    </XMLREPORTREGION>
    How can i construct the query so that it returns the data in xml format like the following?:
    oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
    <dc:title>Rose</dc:title>
    <dc:creator>Smith Black</dc:creator>
    <dc:contributor>Smith Black</dc:contributor>
    <dc:type>Stencil</dc:type>
    <dc:format>image/tiff</dc:format>
    <dc:format>image/jp2</dc:format>
    <dc:description>13 3/4" X 9 1/2"</dc:description>
    <dc:relation>Some collection</dc:relation>
    <dc:date>1987</dc:date>
    <dc:subject type="LCSH">Art Project</dc:subject>
    <dc:subject type="LCSH">........</dc:subject>
    <dc:subject type="LCSH">.........</dc:subject>
    <dc:language>eng</dc:language>
    <dc:rights>......<dc:rights>
    <dc:identifier>.....</dc:identifier>
    </oai_dc:dc>
    I don't know much about xml, any help would be really appreciated.
    Thanks,
    gina
    Message was edited by:
    gina

  • Problem with  whitespace  then loading and saving xml

    i do not know how to handle this problem. i modifed a texteditor to send XML to a server and load XML back to the container.
    but then i do changes to the Textlayout it shows up like this --->
    Text in Container not modifed
    Text in Container modifed ---> with space beween the colorchanged string
    Text inContainersend and loaded ---> i think this has something to to with the
    TextFilter.export(_textFlow,TextFilter.TEXT_LAYOUT_FORMAT,ConversionType.XML_TYPE)
    can someone give me a hint...

    Hi,
    the link is --->
    http://www.horstmann-architekten.de/contentmanagment/SimpleEditor.html
    its a modified example of the texteditor provided by Adobe. You can send a xml to the server. and also read it from the server. You just use the xml identifer to give the xml a name.
    Try it out:
    1.  change the text and
    2.  give a XML-Identifer
         and then send it to the server. --> send to server
    3.  type in the XML-Identifer you have used and
    4.   load it from the server ---> Load from Server Button
    evering works ok exept the columns formating.
    I Think the colums Formating is not embeded in the XML as it should be. I attached the Files. (Newbie programmer)
    With best regards
    Michael Sprinzl
    --- robin.briggs <[email protected]> schrieb am Do, 17.9.2009:
    Von: robin.briggs <[email protected]>
    Betreff: Problem with  whitespace  then loading and saving xml
    An: "Michael sprinzl" <[email protected]>
    Datum: Donnerstag, 17. September 2009, 2:12
    Sounds like you have two different issues going on: (1) inline graphics aren't coming out correctly when you use the TextLineFactory, and (2) columns aren't working correctly. It's difficult for me to tell by looking at the application you link what is going wrong. One of the examples does seem to have columns working -- can you be more specific about what you're doing, and what results you are seeing? As for the inline graphics, there is a timing issue involved with using URLs, due to the asynchronous loading. See this comment in the docs for TextFlowTextLineFactory:
    Note: When using inline graphics, the source property of the InlineGraphicElement object   must either be an instance of a DisplayObject or a Class object representing an embedded asset.   URLRequest objects cannot be used. The width and height of the inline graphic at the time the line   is created is used to compose the flow.
    - robin

  • Missing Conref when I save and reopen an .xml file in FM9

    I am running FM9 on Windows 7. We have been using the template and rules files shipped with FM9 and modifying them for our needs. Currently I am experiencing an issue and I'm not at all sure how to resolve it.
    I have two pieces of DITA content, they are both reference files created by using the DITA menu and creating a new <reference> file. I have entered my structured content into the two files and I want to include a conref from the source document B into my document A. I insert the conref into document A using the FM DITA menu and save both files as .xml. The files save without any errors. When I open document A the conref text is missing and all that is left is a blank reference element (created by the insertion of the conref). If I open the source document everything is fine. I also have an xref in document A and that seems to be working fine. My coworker is having the exact same issue. I am referencing a reference element with an unordered list.
    Also, if I save file A as .fm the conref stays which leads me to believe it has something to do with how FrameMaker is reading the .xml file.
    Any assistance would be appreciated,
    Laura

    Hi Laura...
    If the "auto-load conrefs" option is off, your conrefs will not be rendered. This is "as designed" so that you can disable the conref updating if it's taking too long to rebuild all of the conrefs each time you open a file.. The "auto-load xrefs" option should work the same way, although this may have changed in FM9 since all xrefs are really "fm-xrefs" inside of FM. If the xrefs are rendering the same regardless of the option's setting, then that's a bug (I'd think).
    So .. with the auto-load option enabled, your conrefs are working?
    Cheers,
    ...scott

  • How to save/load player stats?

    Okay..this should be my last for a while. The last thing I need to know is how to be able to save/load player stats. I'm working on an RPG and need to know how to create a save file with the players hp, mp, lvl, weapons, and so on, and then be able to load it back later on in the game. Any help would be greatly appreciated.

    Okay, if this helps any, in one of my JFrames, It
    displays the following:JFrames have nothing to do with it. Try to separate your GUI from your data and "business logic," both in your mind and in your code. The data and logic are what they are, whether there's a GUI or not. The GUI just displays the data, takes input from the user, and kicks off this or that bit of the logic.
    name, lvl, hp, mp, def, att, exp all stored as 'int's
    with the exception being name since it's a string. You should define a class (Player or Character might be a good name) that encapsulates that data. That class should be Serializable, or you should use the XMLEncoder/Decoder. Either way, you can just write an instance of that class to a stream, and then later read it back from a stream. I guess you want that stream to go to a file, but that's independent of how you write/read it.
    I
    need those variables saved to a file (name doesn't
    matter to me), then reloaded the next time the player
    starts the game. I want to be able to have multiple
    save files. Does the user pick the file name? What do you mean "multiple save files"? One for each user? Or any given user able to save multiple different games in progress?
    In any case, saving and reloading many files is no different than one file. Either way you need a way to know or select the file name. But all the work you do is the same.
    I guess this sounds a little hard, butNo, not at all. Just slightly unclear on certain details of the requirements and on what part in particular is hanging you up.

  • How to load images using xml in flash

    Hi
    im working on a quiz project where i plan to load images using xml in to flash, can any one help with the script with AS2 or 3

    You'll find a tutorial for what you are after here:
    http://www.gotoandlearn.com/play?id=22

  • How can i load Client side XML file to Table

    Hi,
    How can i load the all the XML files (near 10,000 files) available in client machine to the XML table .
    I did try with directrory list in the Webutility demo form, but when the number of file is near to 1,500 its giving error.
    Please suggest the best method to implement my requirements.
    1. XML fies are in a folder in end users machine(Windows OS)
    2. I need to load all the XML files to table (Oracle Database is in Unix)
    I am using forms 10g
    Thanks in advance.
    Rizly

    Hi,
    What is the error you are getting when you reach 1,500 records? Can you post it? You mentioned you are using the webutil to load them. How you are loading? From the client machine you are loading to the database directly? Can you post the code you are using for that?
    -Arun

  • Load data from xml file in oracle data base

    Hi all,
    I'd like to know if is posible to load data from a file xml into a table of oracle data base through SQL*LOADER, loaded only in a normal column no with type XMLType , for example
    I have a xml file
    <person name="kate" surname="fari" city="new york" >
    <son name="faus" age="18"/>
    <son name="doly" age="10"/>
    </person>
    and I load in table :
    table :person
    column
    name surname city
    kate fari new york
    table : son
    name age
    doly 10
    faus 18
    thank you for your return !!!!!!!!!
    Ninova
    Edited by: user10474037 on 30 mai 2011 08:47
    Edited by: user10474037 on 30 mai 2011 08:48
    Edited by: user10474037 on 30 mai 2011 08:48
    Edited by: user10474037 on 30 mai 2011 08:49
    Edited by: user10474037 on 30 mai 2011 08:50

    Hi
    This May be found at
    SQL Loader to upload XML file

  • Configuring php5 with enable XML on OAS 10.1.3.x

    My requirement is to enable XML on OAS 10.1.3.5.
    I am not sure how to configure it, so I stated using separate PHP5.2 to configure with XML enable on the server. After installation, when I am starting the opmn services I am getting below error. I think the error with platform. Which means current OS version is 64bit and php5.2 stage is 32bit version I guess.
    OAS_HOME=/u20/app/MSRV1P/apmsrv1p/oracle/product/OAS
    URL : http://nacisdell277.us.oracle.com:10330/phpinfo.php
    I used below command to configure :
    ./configure prefix=$ORACLE_HOME/php with-config-file-path=$ORACLE_HOME/Apache/Apache/conf --with-apxs=$ORACLE_HOME/Apache/Apache/bin/apxs
    with-oci8=instantclient,/u20/app/MSRV1P/apmsrv1p/oracle/product/instantclient_10_2 with-config-file-path=/u20/app/MSRV1P/apmsrv1p/oracle/product/OAS/Apache/Apache/php5--enable-sigchild enable-xml enable-simplexml enable-libxml enable-dom enable-simplexml enable-xml enable-xmlreader enable-xmlwriter enable-simplexml –with-xsl -with-zlib with-xml --with-libxml-dir
    Error :
    /u20/app/MSRV1P/apmsrv1p/oracle/product/OAS/Apache/Apache/bin/apachectl startssl: execing httpd
    Syntax error on line 247 of /u20/app/MSRV1P/apmsrv1p/oracle/product/OAS/Apache/Apache/conf/httpd.conf:
    Cannot load /u20/app/MSRV1P/apmsrv1p/oracle/product/OAS/Apache/Apache/libexec/libphp5.so into server: /u20/app/MSRV1P/apmsrv1p/oracle/product/OAS/Apache/Apache/libexec/libphp5.so: wrong ELF class: ELFCLASS64
    I checked in the Metalink for “configuring php5 with enable XML on OAS 10.1.3.x” but I couldn’t find anything.
    Please advise me on this.
    Thanks

    Hello;
    You can try installing glibc-devel to fix this.
    However on my version :
    Application Server Control Release 10.1.2.3.0 - PHP 5 does not seem to work. The conflict on mine is that PHP 4 came wrapped in the Oracle install and they don't play well together.
    Make sure your httpd.conf does not have this in it :
    LoadModule php4_module libexec/libphp4.soI'm NOT advising you to remove it if its there, I'm merely pointing to a possible conflict.
    Best Regards
    mseberg
    Later
    Glad you don't have the same version as me. Hard to find anything on this, found these ( Not exact matches )
    http://php.net/manual/en/oci8.installation.php ( Search for ELF )
    http://enlinea.creaelicita.cl/guia/oci8.setup.html
    http://docs.oracle.com/cd/E17390_01/doc.650/e17370.pdf
    Found this in the pdf : ( Similar )
    If the following error is received:
    *ERROR* - obssocookie: could not dlopen()
    /opt/netpoint/AccessServerSDK//oblix/lib/libobaccess.so:
    /opt/netpoint/AccessServerSDK//oblix/lib/libobaccess.so: wrong ELF class:
    ELFCLASS32
    This indicates that the 32-bit version of the Access Gate SDK was installed instead of
    the required 64-bit version. Edited by: mseberg on Feb 4, 2012 5:53 AM
    Still later
    Another thought is the PHP forum :
    PHP
    Also you need the 32bit Instant Client to be able run PHP. See http://blogs.oracle.com/opal/entry/using_php_oci8_with_32-bit_php
    Same OS message :
    ORA-03106: fatal two-task communication protocol error
    Edited by: mseberg on Feb 4, 2012 7:03 PM
    Rogue Notes from my Fusion Middleware on Red Hat 5 64 bit
    I downloaded php-5.3.5.tar.gz from http://www.php.net/downloads.php.
    Download the OCI headers http://www.oracle.com/technetwork/middleware/ias/ociheaders-134541.tar
    environment
    export ORACLE_HOME=/u01/app/oracle/product/fmw/oracle_pfrd
    export ORACLE_INSTANCE=/u01/app/oracle/product/fmw/fr_inst
    export CONFIG_FILE_PATH=$ORACLE_INSTANCE/config/OHS/ohs1
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ohs/lib:$LD_LIBRARY_PATH
    Configure with Oracle Database (OCI8) support:
    ./configure with-apxs2=$ORACLE_HOME/ohs/bin/apxs prefix=$ORACLE_HOME with-config-file-path=$CONFIG_FILE_PATH with-oci8=$ORACLE_HOME --disable-rpath
    httpd.conf
    # And for PHP 5.x use:
    AddType application/x-httpd-php .php .phtml
    Edited by: mseberg on Feb 4, 2012 7:19 PM
    Edited by: mseberg on Feb 5, 2012 11:48 AM

  • Export/Import Process in the UI for Variations Content Translation is Generating CMP Files with No XML

    We have a SharePoint 2010 Publishing Website that uses variations to deliver contain to multiple languages. We are using a third-party translation company to translate publishing pages. The pages are
    exported using the  export/import using the UI process described here: "http://blogs.technet.com/b/stefan_gossner/archive/2011/12/02/sharepoint-variations-the-complete-guide-part-16-translation-support.aspx".
    Certain sub-sites are extremely content-intensive. They may contain many items in the Pages library as well as lists and other sub-sites. 
    For some sub-sites (not all), the exported CMP file contains no XML files. There should be a Manifest.XML, Requirements.XML, ExportSettings.XML, etc., but there are none. After renaming the CMP file
    to CAB and extracting it, the only files it contains are DAT files.
    The only difference I can see between the sub-sites that generate CMP files with no XML files is size. For example, there is one site that is 114 MB that produces a CMP file with no XML files. Small
    sites do not have this problem. If size is the problem, then I would think the process would generate an error instead of creating a single CMP file that contains only DAT files. However, I do not know exactly what the Export/Import Process in the UI is doing.
    This leads to two questions:
    1.
    Does anyone know why some CMP files, when renamed to *.CAB and extracted, would not contain the necessary XML files?
    2. Second, if exporting using the UI will not work, can I use PowerShell? I have tried the Export-SPWeb, but the Manifest.XML does not contain translatable
    content. I have not found any parameters that I can use with Export-SPWeb to cause the exported CMP to be in the same format as the one produced by the Export/Import process in the UI.
    As a next step, we could try developing custom code using the Publishing Service, but before doing this, I would like to understand why the Export/Import process in the UI generates a CMP that
    contains no XML files.
    If no one can answer this question, I would appreciate just some general help on understanding exactly what is happening with the Export/Import Process -- that is, the one that runs when you select
    the export or import option in the Site Manager drop down. Understanding what it is actually doing will help us troubleshoot why there are no XML files in certain export CMPs and assist with determining an alternate approach.
    Thanks in advance
    Kim Ryan, SharePoint Consultant kim.ryan@[no spam]pa-tech.com

    I wanted to bump this post to see about getting some more responses to your problem. I'm running into the same problem as well. We're running a SharePoint 2010 site and are looking at adding variations now. The two subsites with the most content take a
    while to generate the .cmp file (one to two minutes of the browser loading bar spinning waiting on the file). Both files are generated with a lot of .dat files but no .xml files. I was thinking like you that it must be a size issue. Not sure though. Did you
    ever happen to find a solution to this problem?

  • Load data in xml file into Pdf form created by LiveCycle Designer

    I want to load data in xml file into Pdf form when Pdf opened and Form field will be filled with data from xml file .I try to use $host.importdata("filename.xml"); But i could not find suitable place to run my code. Can anyone give me some advice? thank you.

    Hi,
    extract your xml and then you can use insert all clause.
    here's very small example on 10.2.0.1.0
    SQL> create table table1(id number,val varchar2(10));
    Table created.
    SQL> create table table2(id number,val varchar2(10));
    Table created.
    SQL> insert all
      2  into table1 values(id,val)
      3  into table2 values(id2,val2)
      4  select extractValue(x.col,'/a/id1') id
      5        ,extractValue(x.col,'/a/value') val
      6        ,extractValue(x.col,'/a/value2') val2
      7        ,extractValue(x.col,'/a/id2') id2
      8  from (select xmltype('<a><id1>1</id1><value>a</value><id2>2</id2><value2>b</value2></a>') col from dual) x;
    2 rows created.
    SQL> select * from table1;
            ID VAL                                                                 
             1 a                                                                   
    SQL> select * from table2;
            ID VAL                                                                 
             2 b                                                                    Ants

Maybe you are looking for

  • How to add a custom column in a table?

    Hi, I have a requirement to add a custom field into the table of view InrLastHist of component ICCMP_BT_IRHIST. The data to be display in the column will be based on the standard category column. I was thinking of adding a value attribute into the cu

  • SAP MM Important report

    Dear SAP Experts, In our company, per day (any one day) they want to see report as follows. Can anyone tell me, how to get it this report. I will be thankful to you all. List of Purchase Requisition List of Release Purchase Requistion List of Request

  • IDoc created with status 03 checked via we02, but couldnt find in XI

    Hi all:     Could you please do me a  favor?  implement a idoc to idoc issue. it has been created successfully . as It is found that the idoc created with status of 03 - data dispatched to  port ok (rather than 12 dispatch ok). however, I couldn't fi

  • IPhone, Google & iCloud contact syncing issues

    Hi everyone, I'm having some issues getting my contacts synced correctly between my iPhone and Google account. I have searched a few forums looking for an answer for this particular problem and haven't found a solution yet so my apologies if I'm just

  • Ical sync issue between Iphone and Ipad

    I seem to be having issues syncing events between my Iphone to my Ipad.  icloud is enabled on both and it appears that all the calendars are enabled for syncing.  Any help with this would be appreciated.