Best technique for "stripping" an XML file

I've been coding Java for a while now, but this is my first foray into Java-based XML processing. Here's the problem:
I want to take an XML file, extract from it a simpler data set, and output that as a new XML file. (Parse, extract, serialize.) There are a ton of very powerful tools in the API, but I don't want an overcomplicated system. What are the best tools for simple processing?
(Why am I not using XSLT? I need to take in parameters from the command line, and the data set is large, so I want smart caching. Also, the server will need to read the XML file repeatedly to check for permission data.)

A little background info:
I use KimDaBa, a photo organizer for Linux. It stores metadata for the photos in a single large XML file. I've succeeded in having the 2000-photo database display directly in a browser (using XSLT). What I want to do is display a subset of the images, the ones tagged as being publishable under a Creative Commons license.
A lot of the metadata is sensitive. I don't want to reveal location information for everything, and not all the photos are for public release. As a result, serving the whole file to the browser and using XSLT to transform it is not an option. (I'm also not sure I want to get into server-side XSLT.)
One issue here is that the images directory is by default not servable to the web. I'll have a PHP script check each image request to see if the image is mentioned in the stripped database. That's what I meant by permission data.
Once I have a stripped version of the database, I can easily slap together some XSLT, CSS, and JS for convenient browser display.
So, I think pure XSLT won't cut it.

Similar Messages

  • Best setup for a non-Mac file server?

    I have a dual xeon server, with a SATA RAID5 I want to use as a file server in a cross-platform environment.
    *What I've tried and the issues...*
    At first I considered using Windows 2003 (Win2k3) but Services for Macintosh (SFM) is an older version of AFP and thus only supports 31 character filenames. With all our Macs supporting SMB/Samba/CIFS and Apple touting that "Macs and PCs can co-exist harmoniously on the same network" I figured I would give that a try.
    SMB doesn't work.
    Sure I can create a connection, but transferring files is a completely different story. I'm trying to backup application and system data, but companies such as Adobe and Apple have named some of their files with special characters that can't be transferred over SMB. I know NTFS doesn't support these characters, but I though a Linux box using SMB would work fine. It doesn't. It's the protocol which keeps me from transferring the data. I end up with the lovely error message of "You cannot copy some of these items to the destination because their names are too long or contain invalid characters for the destination..." (what's sad is, if you google for " because their names are too long or contain invalid characters for the destination" you only get 6 results.)
    So I thought I would give NFS a try. Apple says "Viewed from Mac OS X, [connecting via NFS] is just like connecting to an Apple or Windows server." No. It's not. NFS shares don't even show up in the Finder's Network listing. There are also a pile of other hurdles which are only tackled by savvy, command-line using users.
    So that leaves me with AFP. Win2k3 doesn't support filenames longer than 31 characters, and Win2k8 is dropping SFM altogether. Off to choose a *nix flavor, but that requires Netatalk. It hasn't been updated in years, it has many bad performance reviews... and most distros have removed it. I can download and install it. Oh, but that requires I get the kernel source files. Then I have to create an RPM an that's not working... now I'm several levels deep in trying to figure out how to get Netatalk working and I'm not even sure it will work.
    *What's the best setup for a non-Mac file server?*
    FreeNAS seems promising, but it's in alpha/beta and they have all sorts of warnings regarding potential data loss. Sure there's ExtremeZ-IP, but I really don't want to spend $675 do something Apple claims OS X can already do. I can put just about any non-Mac OS on this thing... what's the best way to set it up so it works?
    Thanks much.

    Rick may be right because although i didnt think of it before i tend to have notoriuosly long classnames for my php classes and i have used samba on occasion (when rsync is out of the question for one reason or another) and never had a problem. I use kubuntu (feisty at the moment )with an ext3 filesystem. if i have a chance this evening ill give it a try and see what happens.
    You could also possibly use FUSE to use an ssh filesystem for the shares... i don tknow how that would figure in your back up though.
    Also if worse comes to worse you could tar or dmg the the necessary files... just some thoughts.
    Ill be interested to know what you end up implementing....
    OH one last thought... Compile Darwin from source and use that as your server

  • What is the best technique for resetting a view?

    I was wondering what is the best technique for resetting the initial state of a view?
    I am creating a form and want to provide a reset button for the user.  I could write an initialize() method that my action handler calls, but I am wondering if the framework already provides this functionality in a more elegant way.
    If I write an initialize method, then I have to manually populate my fields with my context mappings in my initialize() code to mimic what happens automatically by the framework the first time the view is called.  This seems prone to error since this is duplicating the mapping logic.
    Michael

    Hi,
    Even though it boils down to the same logic, for consistency sake it is good to have the initialization logic coded in the inbound plug method and then to call the outbound plug on reset.This make more sense when you have multiple navigation possible to the same view through multiple inbound plugs.
    Else, have an initialization method.
    PS: check whether the reset() method of IWDContext make sense. This is helpful when you have remove dynamically added nodes and attributes.
    Thanks and Regards,
    Sam Mathew

  • What is the best way to include an xml file in JSP?

    I have a jsp page that I need to include an xml file. The xml file
              uses an xsl to render the file. What is the best way to include the
              xml file and still maintain the structure of the style sheet?
              Thanks
              Jennifer
              

              The best way is using the tag lib. If you cannot, but you can use JAXP, you can
              try
              javax.xml.transform.Transformer.transform(Source xmlSource,
              Result outputTarget)
              throws TransformerException
              You construct the transformer with you xsl, use you xml file or DOM to form xmlSource,
              and use JSPWriter "out" to form outputTarget (StreamResult). But if your JSP page
              generates the xml itself, tag lib is the only way.
              [email protected] (Jennifer) wrote:
              >[email protected] (Jennifer) wrote in message news:<[email protected]>...
              >> I have a jsp page that I need to include an xml file. The xml file
              >> uses an xsl to render the file. What is the best way to include the
              >> xml file and still maintain the structure of the style sheet?
              >>
              >> Thanks
              >>
              >> Jennifer
              >
              >Or is there a way to parse the xml file with the jsp page to display
              >the information. I cannot use the Java Standard Tag Libraries as the
              >version of iplanet we are running does not support the JSTL
              >
              >Thanks
              >
              >Jennifer
              

  • Best Practices:: How to generate XML file from a ResultSet

    Hi all,
    Could someone please suggest the best practices of how to generate an XML file from a resultset? I am developing a web application in Java with Oracle database and one of my tasks is to generate an XML file when the user, for example, click a "download as XML" button on the JSP. The application is basically like an Order with line items. I am using Struts and my first thought has been to have an action class which will extend struts's DownloadAction and through StAX's Iterator API to create an XML file. I intend to have a POJO which will have properties of all columns of my order and line items tables so that for each order I get all line items and:
    1. Write order details then
    2. Through an iterator write line items of that order to an XML file.
    I will greatly appreciate for comments or suggestions on the best way to do this through any pointers on the Web.
    alex

    Use a OracleWebRowSet in which an XML representation of the result set may be obtained.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/oracle10g/webrowset/Readme.html
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jcrowset.htm

  • Best Approach for Creating an Extract File?

    Now that we are switching to PeopleSoft, I need to create a file each week based upon data in PeopelSoft that is modified before being written to the file. What is considered the best way to do this? Write some PS SQR, App Engine program? Batch program in Java (I'd be abel to do this the fastest but maybe it is not the best choice). I don't really know what to do, as I've never extracted data from PS before. Thanks.
    Ken

    I recommend creating an Application Engine and using a File Layout.
    Here is the [PeopleBooks information on File Layouts with the File API|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr17.htm#g037ee99c9453fb39_ef90c_10c791ddc07__1454] . PeopleBooks has some pretty decent [code examples|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr17.htm#g037ee99c9453fb39_ef90c_10c791ddc07__1429] . In particular, look at the WriteRecord example.
    One of the advantages to a file layout is that you just define what fields you want in the file, and the PeopleCode takes care of formating the file. To create the file layout definition, you will be adding a new definition in Application Designer --> File > New ... File Layout. Here is [some information in PeopleBooks|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tapd/htm/tapd21.htm#g037ee99c9453fb39_ef90c_10c791ddc07__7705] about that part. You set the file type (CSV, Flat, or XML) on the File Layout properties (click the properties button on the toolbar). If you have a Record definition in the system that resembles the format (# of fields) in the file, you can just insert that record into the File Layout. Otherwise, you have to insert the fields one by one. For each field, double click on the field name to set the properties for the field such as the position in a flat file or the tag name for an XML file.
    In the Application Engine, you will do most of the work in a PeopleCode action. If you don't already have all of the data in one table, I recommend creating a Staging table (staging record). Then, add a step to the App Engine program and a SQL action or two that will load all your data into that one staging table.
    In your PeopleCode action, you will use PeopleCode's SQL object to loop through the rows of the staging table. This is in the WriteRecord example, but here is the [SQL object documentation|http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr39.htm#g037ee99c9453fb39_ef90c_10c791ddc07__1848] for more information.
    I hope I have pointed you to enough resources to help you figure it out. Post back more questions if anything is unclear or you get stuck.

  • Better format for the AppDefinition XML file

    Hello,
    We are using CVS as our source control and are having some problems with the merge process on a AppDefinition file. Is there a way to achieve a better-readable format (i.e. shorter lines, better element indentation, perhaps even attributes indentation) for that file?
    Best regards,
    Igor Gorbunov

    Steven,
    I'd like to propose an enhancement request that JAG perform the formatting as do other XML wizards in JDeveloper. It is important for situations such as ours where we have a single application definition with over 60 groups. The unformatted app definition XML file is over 4700 lines and it takes JDeveloper over 12 minutes and 40 seconds to reformat it. With multiple developers and frequent commits, this is a bit ponderous.
    We've found that all files other than the app definition merge gracefully or allow easy resolution of merge conflicts. The recent JHS blog entry about version control helped us validate our approach, by the way.
    If JAG were to perform the formatting, it would also be easier to fix nuances in the app definition editor such as when you change a bound item to an unbound item, the attributename property of the item is sometimes retained and we need to edit the XML file to remove it. (oops, sorry, that should probably be a different entry in this forum)
    Peter Koletzke

  • XML in Oracle 9i (best method to return a xml file from a table query)

    Hello.
    What is the best method to query a table, or set of tables (that will return thousands of rows) using xml in oracle? (best performance)
    I'm currently using DBMS_XMLGen, is there a better method ?

    I think, if your talking about generating XML, that you should use XMLElement, XMLForest, etc. to create your XML.
    Lets assume that you base is relational data, then maybe the following great example will give you an idea how to do it : Re: Generate XML Schema from oracle tables
    As michaels pointed out (did you read the link/ URL given?), the general expectancy is that the packages will be less and less important. So also maintenance wise the XMLElement, etc way will be the best, also for the future, maintainable method.

  • Help for loading of XML File into Oracle 10.2 DB.

    Hello People,
    I need help with below XML File, I need to get it loaded into Oracle 10.2.After brainstorming I could have figured out 2 best ways to do so :
    1.Through ctrl file and log file using SQL Loader
    2.Using XQuery and XML datatype.
    Tried with option 1 but dint succeed.Could you please help me out with a solution of the same ??
    <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
    - <sta:entity-data xmlns:sta="http://www.vendavo.com/omi/StandardDeal" xsi:schemaLocation="http://www.vendavo.com/omi/StandardDeal StandardDeal-ImportAgreement 100912 - Updated.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <StandardDeal>
    <IsImported>true</IsImported>
    <ModelNReferenceID>00144105-009-000</ModelNReferenceID>
    <DealName>00144105-009-000CV Magellan Arteriocyte Inc 1164385</DealName>
    <AccountGroup>SoldTo</AccountGroup>
    <CustomerSalesData.VCustomer.VName>0001164385</CustomerSalesData.VCustomer.VName>
    <DistrictManager />
    <MultipleSalesReps>false</MultipleSalesReps>
    <OnBehalfOf>Brian Smith</OnBehalfOf>
    <FOBDestination>false</FOBDestination>
    <ConsultingGroupInformation />
    <AgreementStartDate>11/15/2007</AgreementStartDate>
    <AgreementEndDate>12/31/2013</AgreementEndDate>
    <BaselineReviewDate>01/10/2013</BaselineReviewDate>
    <BaseLineReviewPeriod>Quarterly</BaseLineReviewPeriod>
    <RequestedDate>10/12/2012</RequestedDate>
    <RFPDueDate>10/12/2012</RFPDueDate>
    <WaiveFreight>false</WaiveFreight>
    - <HeaderDiscountPercentageoffALP>
    - <VPercentage documentId="1">
    <Amount>0</Amount>
    </VPercentage>
    </HeaderDiscountPercentageoffALP>
    <CustomerCommitmentType>Others</CustomerCommitmentType>
    <ManualApproval>true</ManualApproval>
    <LegalReviewRequired>false</LegalReviewRequired>
    <TechnologyClause>false</TechnologyClause>
    <ComplianceTracking>false</ComplianceTracking>
    <ComplianceStatus>false</ComplianceStatus>
    <VState.VLabel>draft</VState.VLabel>
    <Eval>false</Eval>
    <CustomerAccepted>true</CustomerAccepted>
    <VNotes>CV Magellan Arteriocyte Inc 1164385</VNotes>
    - <VItems>
    - <StandardDealLineItem documentId="5235485">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235486">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235487">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235489">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235490">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235491">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>MAG200</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235493">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235494">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235495">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>RMAG100</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235497">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309604</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235498">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309604</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235499">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309604</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235501">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309653</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235502">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309653</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235503">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>309653</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235505">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235506">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>BOS350</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>19</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>05/31/2009</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    - <StandardDealLineItem documentId="5235655">
    <IsImported>true</IsImported>
    <VCatalogEntity.VName>AMS300</VCatalogEntity.VName>
    <PricingCPG>Magellan</PricingCPG>
    - <ExpectedAnnualQuantity>
    - <VQuantity>
    <VAmount>1</VAmount>
    <VUOM>EA</VUOM>
    </VQuantity>
    </ExpectedAnnualQuantity>
    <EffectiveFrom>11/15/2007</EffectiveFrom>
    <DurationMonths>74</DurationMonths>
    <PercentageBase>false</PercentageBase>
    <DiscountALP>N/A</DiscountALP>
    - <DiscountPercentage>
    - <VPercentage documentId="2">
    <Amount />
    </VPercentage>
    </DiscountPercentage>
    <ProposedAgreementPrice />
    - <CustomerRequestedPrice>
    - <VMoney documentId="4">
    <Amount />
    </VMoney>
    </CustomerRequestedPrice>
    <Monthly>No</Monthly>
    <PpaNoCap>N/A</PpaNoCap>
    - <ProjectedMarketShare>
    - <VPercentage documentId="5">
    <Amount>0</Amount>
    </VPercentage>
    </ProjectedMarketShare>
    <CustomerCommitted>Yes</CustomerCommitted>
    <VValidity.from>11/15/2007</VValidity.from>
    <VValidity.to>12/31/2013</VValidity.to>
    <VState.VName>draft</VState.VName>
    </StandardDealLineItem>
    </VItems>
    </StandardDeal>
    </sta:entity-data>
    Regards,
    Ekta

    1.Through ctrl file and log file using SQL LoaderPlease clarify :
    Do you want to load the entire file into a single column (XMLType or CLOB), or do you want to extract XML data and store it into different relational columns?
    Please also edit your first post and use tags to enclose the XML source, and do not copy/paste directly from your browser, use "view source" feature so that the content doesn't retain navigation characters (+/-).
    Edited by: odie_63 on 11 nov. 2012 13:20                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What's the best way for reading this binary file?

    I've written a program that acquires data from a DAQmx card and writes it on a binary file (attached file and picture). The data that I'm acquiring comes from 8 channels, at 2.5MS/s for, at least, 5 seconds. What's the best way of reading this binary file, knowing that:
    -I'll need it also on graphics (only after acquiring)
    -I also need to see these values and use them later in Matlab.
    I've tried the "Array to Spreadsheet String", but LabView goes out of memory (even if I don't use all of the 8 channels, but only 1).
    LabView 8.6
    Solved!
    Go to Solution.
    Attachments:
    AcquireWrite02.vi ‏15 KB
    myvi.jpg ‏55 KB

    But my real problem, at least now, is how can I divide the information to get not only one graphic but eight?
    I can read the file, but I get this (with only two channels):
    So what I tried was, using a for loop, saving 250 elements in different arrays and then writing it to the .txt file. But it doesn't come right... I used 250 because that's what I got from the graphic: at each 250 points it plots the other channel.
    Am I missing something here? How should I treat the information coming from the binary file, if not the way I'm doing?
    (attached are the .vi files I'm using to save in the .txt format)
    (EDITED. I just saw that I was dividing my graph's data in 4 just before plotting it... so It isn't 250 but 1000 elements for each channel... Still, the problem has not been solved)
    Message Edited by Danigno on 11-17-2008 08:47 AM
    Attachments:
    mygraph.jpg ‏280 KB
    Read Binary File and Save as txt - 2 channels - with SetFilePosition.vi ‏14 KB
    Read Binary File and Save as txt - with SetFilePosition_b_save2files_with_array.vi ‏14 KB

  • Problem for XSL copying  XML file with Error in expression '*|/'.

    Hi,
    I am trying to convert xml file to another xml through command-line interface but failed.
    java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml
    My sample xml and xsl files are:
    1. XML file
    <employee_data>
    <employee_row>
    <employee_number>7950</employee_number>
    <employee_name>ABC</employee_name>
    <employee_title>PRESIDENT</employee_title>
    <manager>1111</manager>
    <date_of_hire>20-JAN-93</date_of_hire>
    <salary>65000</salary>
    <commission>1000</commission>
    <department_number>10</department_number>
    </employee_row>
    </employee_data>
    2. XSL file
    <?xml version="1.0" ?>
    <xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="*">
    <xsl:copy>
    <xsl:apply-templates>
    <xsl:sort select=".//employee_name"/>
    </xsl:apply-templates>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    The error message:
    Error occurred while processing data.xsl: Error in expression: '*|/'.
    I used a sample XSL files copying from a XML book to do the convert but got the same error.
    Does anyone know how to fix this problem? I'll appreciate it very much for your help.
    Thanks.
    Yiguang Zhong

    Hi swanelvis ,
    I have the same issue. Were you able to resolve this ?
    Thanks

  • Best place for LR catalog (.lrcat) file?

    I'm putting together a new PC running Vista and am trying to figure out the best place for the LR catalog (lrcat) file. This PC has multiple hard drives as follows:
    C: OS and apps
    D: non-photo files (docs, mp3s, etc)
    E: photo files
    F: video files
    All the drives are comparable in read/write speed. The Lightroom app will be installed on the C: drive, and the LR catalog will consist of the images on the E: drive. While working in LR, I sometimes listen to mp3s stored on the D: drive. I'm assuming that the best place for the lrcat file is the F: drive (since I seldom access that drive while working in LR). Does this make sense? Or should the lrcat file go somewhere else?
    On a side note, on my last PC, I had the lrcat file in what was originally a dedicated scratch drive (for PS), but I'm doing less and less in Photoshop these days, and my new system will have 12GB of ram, so I decided to do without a dedicated scratch drive for the new system.
    Any advise appreciated.

    Asking yourself the following questions may help determine which drive is best suited for storing the Lightroom Catalog:
    1) Are you the only person using the "Lightroom computer"?
    2) Do you have multiple log on accounts?
    3) Do multiple log on accounts need access to the Lightroom Catalog?
    If you answer yes to #1, its default location might be fine.  If you answer yes to #2 or #3, you should concider a central location for the .lrcat file.
    By default, the .lrcat file is located in a users document folder.  This means that at least one (1) .lrcat file will be created per user account.  Seeing that you usually keep photo files on the E Drive, creating a folder on the root of the E Drive might not be a bad idea.  Using the root of E schema will then allow mutiple users to access the .lrcat file when they log on.  Using the E Drive keeps "photo related" files together, thought Drive D or Drive F would also work.  It appears from your description that you keep O/S and Applications only on the C Drive, which I do myself.
    Hope that helps!

  • Best way to validate and xml file against a schema?

    As the subject states, I want to validate my xml file against a given schema....
    Currently my code looks like this:
    InputSource ipSource = new InputSource(new ByteArrayInputStream(bytesData)); // my xml file
    DOMParser parser = new DOMParser();
    parser.parse(ipSource);
    Document doc = parser.getDocument();
    I see that there is a setFeature method on DomParser.... but from what I read that doesnt support
    xml schema's, just DTD's. So what is the best way to validate with schema's?
    Any help would be appreciated

    This is the other way I tried doing it.... the problem with this way is I am building my xml file through DOM
    operations... and I haven't figured out how to add the schema line to the xml file through DOM manipulations.
    Has anyone done this bofore?
    try
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         factory.setNamespaceAware(false);
         factory.setValidating(true);
         InputSource ipSource = new InputSource(new ByteArrayInputStream(bytesData));
         DocumentBuilder builder = factory.newDocumentBuilder();
         doc      = builder.parse(ipSource);
         return doc;
    catch(Throwable t)
         System.out.println("parse error: " +t);
    return doc;
    }

  • Guys why is Coherence asking for hibernate.cfg.xml file ???

    Wondering why Coherence could not read/interpret from our hibernate mapping file and ask for hibernate.cfg.xml.
    Wondering if Coherence has been configured to require hibernate.cfg.xml.
    Here is the error i get while running JUnit test
    2009-11-10 11:01:31.302/42.589 Oracle Coherence GE 3.5.1/461p2 <Error> (thread=DistributedCache, member=1): BackingMapManager com.tangosol.net.DefaultConfigurableCacheFactory$Manager: failed to instantiate a cache: com.comcast.customer.contract.contract.hibernate.Contract
    2009-11-10 11:01:31.302/42.589 Oracle Coherence GE 3.5.1/461p2 <Error> (thread=DistributedCache, member=1):
    (Wrapped: Failed to instantiate class "com.tangosol.coherence.hibernate.HibernateCacheStore" using sun.misc.Launcher$AppClassLoader@1ab634
    <class-scheme>
      <class-name>com.tangosol.coherence.hibernate.HibernateCacheStore</class-name>
      <init-params>
        <init-param>
          <param-type>java.lang.String</param-type>
          <param-value>com.comcast.customer.contract.contract.hibernate.Contract</param-value>
        </init-param>
      </init-params>
    </class-scheme>) java.lang.reflect.InvocationTargetException
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2307)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:2959)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:2822)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1458)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1223)
         at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3457)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.instantiateResourceMap(DistributedCache.CDB:22)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.setCacheName(DistributedCache.CDB:27)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConfigListener.entryInserted(DistributedCache.CDB:15)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:206)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:166)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
         at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.coherence.component.util.collections.WrapperMap.put(WrapperMap.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$ServiceConfigMap.put(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$StorageIdRequest.onReceived(DistributedCache.CDB:45)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2297)
         ... 22 more
    Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not found
         at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
         at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)
         at com.tangosol.coherence.hibernate.HibernateCacheLoader.<init>(HibernateCacheLoader.java:72)
         at com.tangosol.coherence.hibernate.HibernateCacheStore.<init>(HibernateCacheStore.java:48)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2297)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:2959)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:2822)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1458)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1223)
         at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3457)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.instantiateResourceMap(DistributedCache.CDB:22)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.setCacheName(DistributedCache.CDB:27)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConfigListener.entryInserted(DistributedCache.CDB:15)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:206)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:166)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
         at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.coherence.component.util.collections.WrapperMap.put(WrapperMap.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$ServiceConfigMap.put(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$StorageIdRequest.onReceived(DistributedCache.CDB:45)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)

    Hi Tom/Rob,
    Thanks for quick response. As suggested i have added another <init-param> so that HibernateCacheStore picks up my configuration file instead of hibernate.cfg.xml
    Here is the exception
    - Error parsing XML: application-context.xml(6) Document is invalid: no grammar found.
    - Error parsing XML: application-context.xml(6) Document root element "beans", must match DOCTYPE root "null".
    - configuring from resource: application-context.xml
    - Configuration resource: application-context.xml
    - Error parsing XML: application-context.xml(6) Document is invalid: no grammar found.
    - Error parsing XML: application-context.xml(6) Document root element "beans", must match DOCTYPE root "null".
    2009-11-10 13:38:39.254/45.068 Oracle Coherence GE 3.5.1/461p2 <Error> (thread=DistributedCache, member=1): BackingMapManager com.tangosol.net.DefaultConfigurableCacheFactory$Manager: failed to instantiate a cache: com.comcast.customer.contract.contract.hibernate.Contract
    2009-11-10 13:38:39.254/45.068 Oracle Coherence GE 3.5.1/461p2 <Error> (thread=DistributedCache, member=1):
    (Wrapped: Failed to instantiate class "com.tangosol.coherence.hibernate.HibernateCacheStore" using sun.misc.Launcher$AppClassLoader@18b634
    <class-scheme>
      <class-name>com.tangosol.coherence.hibernate.HibernateCacheStore</class-name>
      <init-params>
        <init-param>
          <param-type>java.lang.String</param-type>
          <param-value>com.comcast.customer.contract.contract.hibernate.Contract</param-value>
        </init-param>
        <init-param>
          <param-type>java.lang.String</param-type>
          <param-value>application-context.xml</param-value>
        </init-param>
      </init-params>
    </class-scheme>) java.lang.reflect.InvocationTargetException
         at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2307)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateAny(DefaultConfigurableCacheFactory.java:2959)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateCacheStore(DefaultConfigurableCacheFactory.java:2822)
         at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateReadWriteBackingMap(DefaultConfigurableCacheFactory.java:1458)
         at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:1223)
         at com.tangosol.net.DefaultConfigurableCacheFactory$Manager.instantiateBackingMap(DefaultConfigurableCacheFactory.java:3457)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.instantiateResourceMap(DistributedCache.CDB:22)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.setCacheName(DistributedCache.CDB:27)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ConfigListener.entryInserted(DistributedCache.CDB:15)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:206)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:166)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.util.ObservableHashMap.dispatchEvent(ObservableHashMap.java:229)
         at com.tangosol.util.ObservableHashMap$Entry.onAdd(ObservableHashMap.java:270)
         at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
         at com.tangosol.coherence.component.util.collections.WrapperMap.put(WrapperMap.CDB:1)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid$ServiceConfigMap.put(Grid.CDB:31)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$StorageIdRequest.onReceived(DistributedCache.CDB:45)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2297)
         ... 22 more
    Caused by: org.hibernate.MappingException: invalid configuration
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1487)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
         at com.tangosol.coherence.hibernate.HibernateCacheLoader.<init>(HibernateCacheLoader.java:94)
         at com.tangosol.coherence.hibernate.HibernateCacheStore.<init>(HibernateCacheStore.java:62)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:662)
         at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2297)Please note the addition of
    <init-param>
          <param-type>java.lang.String</param-type>
          <param-value>application-context.xml</param-value>
        </init-param>application-context.xml - is for Spring application context
    META-INF/spring.xml - is for root hibernate configuration File .
    So in the above code snippet i tried replacing"application-context.xml " with "spring.xml" or "META-INF/spring.xml " or "classspath*:META-INF/spring.xml " anything results in the above exception

  • Best way to generate the XML files from a DTD file

    Hey,
    I am writing an application that needs to convert a complicated data structure into an xml file. I have design a DTD file that describes the data structure.
    My question is what is the best, most efficient way to covert the data structures (objects) into the XML files with a DTD file.
    Thank you very much.
    Candy

    Convert the DTd to an XML Schema. Generate java classes from Schema with Jaxb. Create an XML document from the java classes.

Maybe you are looking for