Use Java to process the XSLT stylesheet

Background:-
I used Java to design a very simple Interface, which was composed of two components, one is an editable comboBox, the other is a button. What I want to achieve is selecting the value in the combobox and clicking the button, then it will achieve the relevant transformation process against the value selected from the comboBox.
Implementation:-
The transformation process is to extracting a set of information about a certain bird from an XML document, which contains many birds' information, to form a new XML document of one bird. The bird that I want to transform is listed in the comboBox and can be selected there. I use the Java to control the transformation process. My design is: I use Java programme to read the selected comboBox's value (bird name) and pass this value to the XSLT stylesheet, which is used to transform the XML document to a new XML document. What I have implemented: The Java programme has successfully controlled the transformation process, but I have defined in the XSLT stylesheet the bird name in advance. So the transformation is limited.
What I want:-
What I want is the transformation process will be carried out based on the value (bird name) read from the comboBox on the interface. And I hope to use Java to achieve this design!
XSLT stylesheet code:-
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="node()">
     <xsl:apply-templates/>
</xsl:template>
<xsl:template match="class[own-slots/own-slot/entry/value = 'Barn_swallow']">
     <xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet> I am very appreciated if you can provide me some helps kindly!
Thanks a lot! Waiting for your nice suggestions!
David

I mean, you can find the bird name(Barn_swallow) in my
attached XSLT stylesheet code. This name was actually
defined in advance. What I want to perform now is to
use the Java program to get the bird name from the
comboBox (you have gave out the method) and pass it to
the XSLT(actually needed to implement by Java), then
continue to use the Java programe to achieve the
transformation process (this step, I think, has been
achieved.) Obviously, how to perform the second step
"pass it to the XSLT" is the current task!What can you do already? Can you get a Transformer object from a TransformerFactory? If so, then simply call its setParameter("bird", "Barn Swallow") method. You'll have to declare a top-level xsl:param element whose name is "bird" in your XSL transformation, which you can then use as if it were a variable.

Similar Messages

  • Calling java instance methods in XSLT stylesheet

    HI
    I know this has been answered in this forum but I cnanot get it to work.
    Before calling the transform() method on my transformer instance I do the following
    transformer.setParameter( "Confirm", confirm)confim is an instance of one of my own classes. I want to get the
    XSLT stylesheet to call a method on this object. The method sig is
    public void setTitle(String title)Accordingly in my stylesheet I do the following
    <xsl:param name="Confirm"/>having already declared the java namespace in my stylesheet element as xmlns:java="java", and later on call the setTitle method
    <xsl:value-of select="java:setTitle($Confirm,$Title)/>where $Title is another var generated in the XSLT.
    This should work, right? Well I get an error
    'The first argument to the non-static Java function 'setTitle' is not a valid object reference.'But it is as I can do this
    <xsl:value-of select="$Confirm"/>Thanks
    Mark

    Hi !
    I've being trying to use a java class into xsl but without success.
    If anybody can help me to no how do I have to organize the files (.class, .xsl)????
    My organization is like this
    c:
    WEBAPP
    WEB-INF (here I have the .xml and .xsl)
    classes
    com
    example (here I have the .class)
    And I use it as follows:
    --------------------------------------xslextension_prueba.XSL------------------ ---------------------------
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java"
    extension-element-prefixes="java"
    version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="/">
    <html>
    <body bgcolor="#FFFFFF">
    <h2>The smoking calendar</h2>
    <h3>
    <xsl:value-of select="java:Date.new()"/>
    </h3>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    --------------------------------------------XML-------------------------------- ----
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="xslextension_prueba.xsl"?>
    <articles>
    <article>
    <title>Using Web Services</title>
    <author>T. Cowan</author>
    <date>11/30/01</date>
    <text>
    content of article.
    </text>
    </article>
    <article>
    <title>Java May Be Just a Fad</title>
    <author>J. Burke</author>
    <date>08/15/95</date>
    <text>
    content of article.
    </text>
    </article>
    </articles>
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AND I GET THIS ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    E The URI java does not identify an external Java class
    THANKS FOR YOUR HELP......

  • Can I use some JavaScript in an XSLT stylesheet?

    I have two related (I think) problems.
    I am using Dreamweaver CS4 in Windows XP, Service Pack 3.
    I have created an XSLT stylesheet that transforms a simple XML file into HTML. I have a very short JavaScript that writes the day's date into the document. It is a script that I have used in many other HTML pages. The XSLT stylesheet also has a Spry widget, an accordion, in one of its DIV elements. Originally, I developed the accordion as part of a Dreamweaver template, and it works fine there. I cannot get the scripts to work completely in Firefox and Internet Explorer.
    If I just link in the external JavaScript files, the XML document displays correctly in both browsers. Note that MY external JavaScript file is the definition of one function, today(). The other JavaScript file is the Spry js file for the accordion widget. Of course the widget displays, but is not functional.
    If I add the script to display the date (document.write(today()); document.close();) in one of the DIVs, Internet Explorer(7) displays the date correctly in the correct location AND displays all the other content correctly, including the accordion, which of course is not functional. However, FireFox (latest version) displays ONLY the date in a white background and NOTHING else, such as background image, other DIVs with content, the accordion widget, etc.
    If I add the script to instantiate the accordion widget, FireFox displays the date and nothing else, as before. Internet Explorer displays the date, the other content, and the accordion widget, as before, but the widget is still not functional, that is, the accordion does not close or open when the panels are clicked.
    So, do I have to be extra careful on where I place scripts in an XSLT? Or is there some reason why scripts in an XSLT file do not work? It seems that once the browser transforms the XML file into HTML, which includes the scripts, it should display correctly.
    Thanks,
    Van

    Not sure what you mean by a CDATA section. But here is the XSLT file showing the template for the root element. The script is included using a <script> element, inserted in the <head> element. Should it be some place else?
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="Trial procedure.xml" -->
    <!DOCTYPE xsl:stylesheet  [
        <!ENTITY nbsp   "&#160;">
        <!ENTITY copy   "&#169;">
        <!ENTITY reg    "&#174;">
        <!ENTITY trade  "&#8482;">
        <!ENTITY mdash  "&#8212;">
        <!ENTITY ldquo  "&#8220;">
        <!ENTITY rdquo  "&#8221;">
        <!ENTITY pound  "&#163;">
        <!ENTITY yen    "&#165;">
        <!ENTITY euro   "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
    <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title><xsl:value-of select="MovexUser/Title"/></title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="resources/navigatorSpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body id="body">
    --- The JavaScript funtions are called inside DIV elements here. ---
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

  • How do i use Java to read the data in XML files?

    Hi,
    I'm rather interested in using XML in my javacodes, as i think it will be of more OO.
    I want to make use of XML in my javacodes,
    but i don't know how to start doing it, so i hope someone would be able to enlighten me on this,
    =)
    Some examples would be perfect

    Humm interesting...well here is the link to Sun's tutorial on how to use maipulate an XML document using Java's jaxp api.I hope this will give u a hint.
    http://java.sun.com/xml/tutorial_intro.html
    Khalid

  • Using in workflow process the element of Account dimension with subordinate

    Good day All
    In the dimension Account has been created element, which contains several shared elements. This element has been added as a Parent member when creating a Planning Unit Hierarchy. When we run the workflow process the child shared elements still open for editing for all users.
    May be we can’t using shared members in this case?
    Thanks

    Are you the one who commented out the code you're looking for ?//String desc = StringFactory.getString(attributes.getValue("desc"));You just have to modify you AttributeObject class to hold a new field : String description. And then, it's up to you to create a new constructor or a new setter method.
    Btw, this is not a Swing related question.

  • XSLT - How to pass a Java object to the xslt file ?

    Hi ,
    I need help in , How to pass a java object to xslt file.
    I am using javax.xml.transform.Tranformer class to for the xsl tranformation. I need to pass a java object eg
    Class Employee {
    private String name;
    private int empId;
    public String getName() {
    return this.name;
    public String getEmpId() {
    return this.empId;
    public String setName(String name) {
    this.name = name;
    public String setEmpId(int empId){
    this.empId = empId;
    How can i access this complete object in the xsl file ? is there any way i can pass custom objects to xsl using Transformer class ?

    This is elementary. Did you ask google ? http://www.google.com/search?q=calling+java+from+xsl
    ram.

  • Problem while creating a custom document using JAVA API in the current Folder

    I am trying to create an instance of a custome type from the API. I have created a custom type via XML. I have associated a JSP with the custom type thru iFS manager. This jsp provides an interface for the user to enter various data. On submit I call some other jsp also loaded into the /ifs/webui/jsps which calls a method in the java class to create an instance of the above mentioned type. This instance needs to be created in the current directory and not in the home directory of the user. I have written a java program which when run from JDeveloper connects to the repository and creates the object, but not as a foldered object. If I load this class into custom_classes directory, I get an exception. I am attaching the code also here which does the actual processing.
    package cms;
    import oracle.ifs.agents.common.*;
    import oracle.ifs.agents.manager.*;
    import oracle.ifs.agents.server.*;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    public class ContentModule extends Object {
    public static final String CLASSNAME = "CONTENT";
    public static final String TOPICID_ATTRIBUTE = "TOPICID";
    public static final String SITEID_ATTRIBUTE = "SITEID";
    LibrarySession m_session;
    public ContentModule() {
    connectToRepository();
    createDocument("AM5","s");
    public void connectToRepository(){
    try{
    LibraryService l_service=new LibraryService();
    CleartextCredential l_credential = new CleartextCredential("system","manager");
    ConnectOptions l_options=new ConnectOptions();
    l_options.setServiceName("IfsDefault");
    l_options.setServicePassword("ifssys");
    m_session=l_service.connect(l_credential,l_options);
    }catch(IfsException ex){
    ex.setVerboseMessage(true);
    ex.printStackTrace();
    public void createDocument(String p_docName,String p_docContent){
    try{
    DocumentDefinition l_doc=new DocumentDefinition(m_session);
    l_doc.setClassname(CLASSNAME);
    long newId1=5;
    long newId2=5;
    FolderPathResolver l_currentPath=new FolderPathResolver(m_session);
    Folder l_currentFolder=l_currentPath.getCurrentDirectory();
    l_doc.setAddToFolderOption(l_currentFolder);
    l_doc.setName(p_docName);
    l_doc.setContent(p_docContent);
    AttributeValue av1 = AttributeValue.newAttributeValue(newId1);
    l_doc.setAttribute(TOPICID_ATTRIBUTE,av1);
    AttributeValue av2 = AttributeValue.newAttributeValue(newId2);
    l_doc.setAttribute(SITEID_ATTRIBUTE,av2);
    Document l_document=(Document) m_session.createPublicObject(l_doc);
    }catch(IfsException ex){
    ex.setVerboseMessage(true);
    ex.printStackTrace();
    public static void main(String[] args) {
    ContentModule contentModule = new ContentModule();
    Any help will be highly appreciated.
    Thanks

    Please print out the Verbose Stack Trace generated when you run this application.
    I suspect that you FolderPathResolver is not pointed at the directory you think it is. You might want to try printing out
    I_CurrentFolder.getAnyFolderPath();
    and I_CurrentFolder.getName();
    null

  • How can I use java to handle the Schema

    Hello,everyone.
    These days,I'm researching how to use schema in java.
    For example,get the restrictions of one element and validate it in the xml.
    My question is: Is there any api to do this in java.Any java middleware will be ok.Please give the url to download it.
    If not any,is there some simular api in developing?
    Thank you.

    Validating with XML Schema tutorial
    http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXPDOM9.html

  • Why JMS if we can use JAVA classes for the same

    if we can communicate using the java classes which are protable and platform independent why do we have to use JMS for that. what is so specific about it and what is the benefit that makes it outstanding

    James/Steve,
    I feel that some of your points are misleading. The original authors point was a comparison against JMS and other means of achieving similar functionality with Java. Regarding your combined points:
    2) Scalability is something that can be achieved regardless of whether JMS is used. Clustering has nothing to do with JMS, each vendors clustering implementation is entirely proprietary.
    4) Aside from the inclusion of JNDI the JMS specification offers nothing for management. You only need to look through this forum at the amount of times a question like �how do I make a topic programmatically?� has been asked. All good JMS vendors offer management API�s and tools but all are vendor specific implementations.
    10) There is no JMS standard for load balancing. The generic round robin features of a JMS queue falls a long way short of true �load balancing�. Any vendor (ourselves included) that offers load balancing does so in an entirely proprietary manner.
    11) Again�JMS provides no standards for clustering of running one or more server. This is entirely down to implementation and functionality is vendor specific.
    12) Dead Message/Letter Queues are not defined in JMS
    14) What does serialization have to do with the original point? How one chooses to serialize their content ( XML, Object Serialization, Externalizable etc..) is equally applicable to both bespoke Java coding and JMS implementations.
    To birs1982:
    JMS is merely a collection of interfaces that define how one might read and write to a topic or queue. Vendors (both open source and commercial) recognize that these interfaces alone are not enough to offer an entire middleware messaging solution and complete the offering with sophisticated management, resilience, clustering, security and other value added features. These value added features require considerable effort to get right as do things like scalability and performance.
    Given JMS like messaging is almost commodity now (just look at the amount of JMS vendors that have leaped into the ESB space) and a common (perhaps essential) infrastructure component why produce it yourself? Surely your time is better spent serving your clients and business lines rather that writing what amounts to plumbing. All the hard work has been done and the price for this hard work (depending on your requirements) is anything from free to many thousands of pounds.
    Regards,
    Paul Brant
    my-Channels - Technologies working together
    http://www.my-channels.com/

  • Read mail using java, and set the mail

    How can I read mail and set message "SEEN" with java? (javax.mail)
    IMAP supports flags; so there are no problems, just using
    msg.setFlag(Flags.Flag.SEEN, true);
    but,
    POP3 does not support flags; how can I solve this in POP3? I have searched for this problem, found that I can just check for the header "Status", but this header does not exsist. Then I tried to add this header, but again, then I got IllegalWriteException cause pop3-msg is writeprotected (yes: I opened the folder READ_WRITE); so; does anyone know how I can solve this problem?

    Hi !
    Could u plz send me the code u r having for reading mails using IMAP...actually v r trying to read mails from outlook but due to some security reasons our team has decided not to use pop3 ...
    Thanks in Advance
    sha

  • How can an email account be created using Java mail on the FLY.

    Scenario is such that i am using mail server from MDaemon.com and JavaMail api,and making Email website like yahoo...some what ! but how can a user create his account by just filling the form and when he enters his account be created in Mail server..

    Last time I checked MDaemon has its own API for account management. I have never tried to do anything with it but their sales literature says it exists.
    Account management will be specific to the platform and mail server software. This is beyond the scope of JavaMail which is for message transport (and management to an extent on IMAP servers), not account management on the server.
    The other alternative is to write your own application that modifies the structures used by mdaemon but since it already has an API why bother.

  • How to use standard java functions in a XSLT mapping

    Hi All,
    I wish to use a standard java function in a XSLT mapping, The issue is either i am giving incorrect namespace which is used to invoke the function or the signature of the function call is incorrect, I have read all the links in http://help.sap.com, and i know <b> one can enhance a XSLT mapping by writing one's own java code and thereby using java standard functions </b>, but the requirement is such that i need to try and use java standard function in XSLT mapping itself.
    Please refer to the sample code below:
    <?xml version="1.0" encoding="UTF-8"?>
      <xsl:stylesheet version="1.0"  
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:javamap="java:java.lang.String">
    <xsl:output method="text"/>
    <xsl:template match="/">
    <xsl:variable name="input" select="Title">
    <xsl:if test="function-available('javamap:toUpperCase')">
    <xsl:value-of select="javamap:toUpperCase($input)"/>
    </xsl:if>
    Author:<xsl:value-of select="Author"/>
    </xsl:template>
    </xsl:stylesheet>
    error encountered is: Illegal number or type of arguments.
    please reply if you have tried a similar scenario in SAP XI.
    Thanks & Regards,
    Varun

    Hi Varun,
        First of all i want to tell you that as per the documentation you can only call the static function inside xslt mapping. Your toUpperCase method is a non static function.
    What i am getting is that you have an element called Author and you want to convert its value into uppercase.
    you can write your own user defined function which is static.
    Signature of your java method :
    public static string toUpperCase(String Author,Map inputparam)
    try this xslt map.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:JavaProgram">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="Author">
                 <xsl:value-of select="//Author_name"/>
         </xsl:param>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <Author>
                 <xsl:if test="function-available('javamap:toUpperCase')">
                  <xsl:value-of select="javamap:toUpperCase($Author,$inputparam)"/>
                 </xsl:if>
         </Author>
         </xsl:template>
    </xsl:stylesheet>
    Hope this will work.
    Thanks and Regards
    Vishal Kumar

  • OPM gives error when trying to use XSLT stylesheet

    Hi,
    I am trying use a simple XSLT stylesheet into an OPM project and see the result in the web determination screen.But when ever i am clicking on the link that is created when i compile the project with the XSL file, i am getting the error
    "An error occurred trying to process your request.
    This error has been logged and is available in the application logs.
    For support and assistance please contact [email protected]"
    I have kept the XSL file inside the "templates" folder in "include" folder.
    I am using a very simple one i.e
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0" >
    <xsl:output method="html"/>
    </xsl:stylesheet>
    How do I find what the error is and what do I need to do to solve this?
    Thanks and regards
    Sagnik

    Yes, now that above issue is solved and now when I click on the "HTML" or "PDF" link, I think some file is being generated but not properly.
    For HTML, I am getting blank page error and for PDF I am getting "file is damaged" error.May be, the xslt stylesheet that I am using is wrong, but I am absolutley stuck with this. I have tried many different formats of xlst stylesheets, but none seem to be working.
    pasting the two xslts below:
    *<?xml version="1.0" encoding="UTF-8" ?>*
    *<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">*
    *<xsl:output method="html"/>*
    *<xsl:template match="/">*
    *<xsl:apply-templates/>*
    *</xsl:template>*
    *<html>*
    *<body>*
    *<xsl:template match="session">*
    *<session><xsl:apply-templates/></session>*
    *</xsl:template>*
    *<xsl:template match="entity name">*
    *<entity-name align="center"><xsl:apply-templates/></entity-name>*
    *</xsl:template>*
    *<xsl:template match="instance label">*
    *<instance-label align="center"><xsl:apply-templates/></instance-label>*
    *</xsl:template>*
    *<xsl:template match="attribute id">*
    *<attribute-id><xsl:apply-templates/></attribute-id>*
    *</xsl:template>*
    *<xsl:template match="date-val">*
    *<date-val><xsl:apply-templates/></date-val>*
    *</xsl:template>*
    *<xsl:template match="text-val">*
    *<text-val><xsl:apply-templates/></text-val>*
    *</xsl:template>*
    *<xsl:template match="unknown-val">*
    *<unknown-val><xsl:apply-templates/></unknown-val>*
    *</html>*
    *</body>*
    *</xsl:template>*
    *</xsl:stylesheet>*
    and
    *<?xml version="1.0" encoding="UTF-8" ?>*
    *<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">*
    *<xsl:output method="html"/>*
    *<xsl:template match="/">*
    *<html>*
    *<body>*
    *<xsl:template match="session">*
    *<session><xsl:apply-templates/></session>*
    *</xsl:template>*
    *<enityName>*
    *<xsl:for-each select="entity name">*
    *<instancelabel>*
    *<xsl:for-each select="instance label">*
    *<attribute-id>*
    *<xsl:for-each select="attribute id">*
    *<text-val>*
    *<xsl:value-of select="text-val"/>*
    *</text-val>*
    *<date-val>*
    *<xsl:value-of select="date-val"/>*
    *</date-val>*
    *</xsl:for-each>*
    *</attribute-id>*
    *</xsl:for-each>*
    *</instancelabel>*
    *</xsl:for-each>*
    *</enityName>*
    *</body>*
    *</html>*
    *</xsl:template>*
    *</xsl:stylesheet>*
    also pasting the source xml file I am trying to convert.
    - <session xmlns="http://oracle.com/determinations/engine/relational/sessiondata/10.0" sessionDateTime="2010-12-17T11:34:08" locale="en-US" rulebase="Barclay_2910" rulebase-build="2010-12-17 06:04:02Z">
    - <entity name="global">
    - <instance label="global">
    - <attribute id="S_Other_Type_of_Business1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Nature_of_Business">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Desired_Review_Period">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_I_Confirm">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_new_investors_ID_Vd">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Total_Amount_of_Capital_Invested">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_State_Business_use_Trading_name1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Correspondence_Postcode">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Country">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_BTA_Code1">
    *<text-val>Central Government</text-val>*
    *</attribute>*
    - <attribute id="S_Correspondence_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Total_Amount_Capital_Invested_non_Corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_Organisation">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_State_Business_use_Trading_name">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_Organisation1">
    *<text-val>1</text-val>*
    *</attribute>*
    - <attribute id="S_Date_Established1">
    *<date-val>2010-01-01</date-val>*
    *</attribute>*
    - <attribute id="S_Telephone_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Date_of_Incorporation1">
    *<uncertain-val />*
    *</attribute>*
    - <attribute id="S_Date_of_Incorporation">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Postcode">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Start_Up_Type_Non_Corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_registered_names">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Other_Investments_non_corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="b8@Properties_PropBkACC_xsrc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Number1">
    *<text-val />*
    *</attribute>*
    - <attribute id="b6@Properties_PropBkACC_xsrc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_use_Trading_name1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Registered_address_Main_Trading">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_select_the_high_risk_industry_operated1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Start_Up_Type">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Priority1">
    *<text-val>Standard</text-val>*
    *</attribute>*
    - <attribute id="S_Correspondence_address_same_Main_Trading">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Additional_Source_Capital">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_Sort_Code">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Source_of_funds">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Choose_Start_Up1">
    *<text-val>Start Up/New Entity/Businesses</text-val>*
    *</attribute>*
    - <attribute id="S_Registered_Country">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Fax_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Contributer">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_business_organisations_annual_turnover1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_Account_number_Roll_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_registered_names1">
    *<text-val />*
    *</attribute>*
    - <attribute id="b9@Rules_startuprule_doc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_CIS_Record1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Employees_Members1">
    *<text-val>1-9</text-val>*
    *</attribute>*
    - <attribute id="S_shareholders_Contributors">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_operate_high_risk_industry">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="b7@Properties_PropBkACC_xsrc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_select_the_high_risk_industry_operated">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_business_organisations_annual_turnover">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Postcode">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Nature_of_Business1">
    *<text-val />*
    *</attribute>*
    - <attribute id="S_Country_of_Incorporation1">
    *<text-val>1</text-val>*
    *</attribute>*
    - <attribute id="N_issued_share_capital_company">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Correspondence_Country">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Type_of_Business1">
    *<text-val>Sole Trader</text-val>*
    *</attribute>*
    - <attribute id="S_Web_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registration_Number1">
    *<text-val />*
    *</attribute>*
    - <attribute id="S_Business_operate_high_risk_industry1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Additional_Source_Capital1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="Source_of_funds_non_Corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Country_of_Incorporation">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_if_registered_address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Date_Established">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registration_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_ID_VD">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_I_confirm_form_287">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Other_Investments">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_I_Confirm1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Date_Form_Lodged">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Other_Type_of_Business">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_start_up_capital_business">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Approx_transferring_balance">
    *<unknown-val />*
    *</attribute>*
    *</instance>*
    *</entity>*
    *</session>*
    Edited by: Sagnik on Dec 21, 2010 12:06 AM

  • I cant figure out what is wrong i keep getting this an OIEception that says "{"The process cannot access the file because it is being used by another process."}

    I am trying to move a file from a folder to another folder.
    here is my code:
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Test Pictures");
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Test Test";
    File.Move(folderContentNames[1], destinationFile);
    updateListBoxFileName();
    updateImageBox();
    each time I hit the bolded underlined part I get that error message.
    if you need anything else just ask.
    Thanks in advance,
    Thor Orb

    Hi Thor,
    If you want to move a file from a folder to another folder, I think you could get the sourcePath and TargetPath. The code below shows a simple demo:
    string[] folders = Directory.GetFiles(@"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test");
    string desFile =Path.Combine( @"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test - Copy\"+Path.GetFileName(folders[1]));
    File.Move(folders[1], desFile);
    In addition, the link below might be useful to you:
    # How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)
    >> The process cannot access the file because it is being used by another process
    The message seemed that the file was opened in other process. Did you operate the file with other code?
    I think you could check if the files and the folders were opened, and review your codes if they were used in other places.
    If you have any further questions, please feel free to post in this forum.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
    Ya, Thanks I figured about the path and destation. yes I am using the file in another area, the file is an image jpg and I am displaying it in a picture box. Now I have been doing a little research I see a command called Dispose() and this is suppose to
    release the handle on the image, but I can seem to figure out have to use it correctly.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Collections;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.IO;
    namespace Scanned_Picture_Ogranizer
    public partial class Form1 : Form
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Scan Project Testing\Test Pictures", "*.jpg");
    //List<string> folderContentList = folderContentNames.ToList();
    private List<string> folderContentList = new List<string>();
    Bitmap currentImage;
    Bitmap placeHolder;
    public Form1()
    InitializeComponent();
    convertingArrayToList();
    startUpData();
    string sourceFile = @"C:\Users\Jonah\OneDrive\My Programming Projects\Scanned Picture Organizer Project\Test Pictures";
    string destinationFile = "";
    private void moveButton_Click(object sender, EventArgs e)
    private void startUpData()
    //placeHolder = new Bitmap(folderContentList[0]);
    //currentImage = (Bitmap)placeHolder.Clone();
    // Image loadImage = new Bitmap(pictureClones[0]);
    // currentFilePictureBox.Image = loadImage;
    int numberOfFilesLeft = folderContentNames.Length;
    foreach (string name in folderContentNames)
    fileNamesListBox.Items.Add(name);
    fileNameTextBox.Text = folderContentNames[0];
    numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    ///loadImage.Dispose();
    //FileStream currentImage = new FileStream(folderContentList[0], FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
    private void convertingArrayToList()
    foreach (string listName in folderContentNames)
    folderContentList.Add(listName);
    private void selectingImageFromListBox()
    private void updateImageBox()
    Bitmap currentImage = new Bitmap(folderContentList[0]);
    currentFilePictureBox.Image = currentImage;
    currentImage.Dispose();
    private void updateListBoxFileName()
    fileNamesListBox.Items.RemoveAt(0);
    fileNameTextBox.Text = folderContentList[0];
    // numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Scan Project Testing\Test Test\";
    File.Move(folderContentList[0], destinationFile + System.IO.Path.GetFileName(folderContentList[0]));
    folderContentList.RemoveAt(0);
    updateImageBox();
    updateListBoxFileName();
    when I first start the program the first picture displays, but when I trigger historyPictureBox_Click(), it does that error again. Another things is that I already looked at that link and it didn't help.
    I just super confused, I would like your help on this.
    Thanks,
    Thor Orb

  • How to create the chart using java

    Hi Friends,
    I have one urgent requirement.I need to create the chart by using the table value.The value is stored in database like as follow..
    Attribute     IG
    Home     0.05
    Married     0.72
    Gender     0.05
    Employed     0.05
    Rate      0.05
    I need to get the highest value and create the parent node and lowest value is child node llike that i need create ...
    plz any body help me....

    You don't do that using Java.
    Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html].

Maybe you are looking for

  • Billing doc referenced by delivery document

    Hi All, there is a problem in my scenario that billing doc are created automatically when creating shipment doc that is collective shipment doc type. in stead of this process, ı have not faced on this stuation when i creating it by using individual s

  • How to find out the application server instance name?

    Hi, I installed an Oracle application server a long long while ago and completely forgot the things about the installation, including the name of the instance (I installed single instance, not cluster). Now I am trying to create a connection to the a

  • MacBook Pro Retina Crash Issue

    Hello I recent purchased a MacBook Pro with Retina Display on 08/02/12 it's been eight days and since original purchase date my MacBook has crashed four times. I'm on the verge of returning/exchanging it for a brand new MacBook assuming it's a hardwa

  • How to convert and avi to flv

    Hello everybody, I have an avi file that I would like to convert to an flv file. Can I do this in Flash CS3? If so, how? Any help for a rookie would be much appreciated. Thanks so much for your time. Scott

  • WMS inbound - reversal

    Hi all, for posting documents from decentralized WMS I use SHP_IBDLV_CONFIRM_DECENTRAL. How can I post reversal of document created. I've tried using MBST, VL09, posting via MBGMCA and similar but I always get a message 'Posting with reference to pur