Java and xml option necessary?

Hi,
first when i build the repository database, i choose java and xml option, is this necessary or i waste my time.
When i read Building a Help Desk Connector, i'm not sure, do i need the Diagnostic Pack.
Best regards
Thomas
(Narri, Narro)

This is the defacto site for xpath stuff for java
http://xml.apache.org/xalan-j/

Similar Messages

  • Can somebody explain to me how java and xml are related?

    Hi guys
    im new to java and xml.Been reading a lot regarding java and don't seem to have a problem with it...
    the problem is the xml part...im doing a simple GUI project using swing(online store) and i have to convert it to xml
    I have absolutely NO IDEA why i must convert my java to xml and have no idea how to do that.I been reading on the net that xml is a exten~ markup language and it is better and useful.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?
    2)why do ppl want to convert java to xml when they can just stick to java
    3)what is actually xml...
    4)Do i need a program to create xml like i need jcreater to create java application
    5)How do we actually convert?is there any links that you guys could tell me?
    thank you
    tomleo

    im new to java and xml.Been reading a lot regarding
    java and don't seem to have a problem with it...Okay.
    the problem is the xml part...im doing a simple GUI
    project using swing(online store) and i have to
    o convert it to xmlYou have to? So presumably somebody in a position of authority told you that?
    I have absolutely NO IDEA why i must convert my java
    to xml and have no idea how to do that.I been reading
    on the net that xml is a exten~ markup language and
    it is better and useful.I have no idea either (besides which, it doesn't make sense). But why ask us? Somebody told you to do that, ask them why.
    Sure, XML is useful. But it isn't a programming language so it can't be used as a substitute for Java.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?They aren't related, except perhaps in that they are both used in computers.
    2)why do ppl want to convert java to xml when they
    can just stick to javaThey don't.
    3)what is actually xml...Start here for numerous definitions:
    http://www.google.ca/search?hl=en&lr=&oi=defmore&q=define:XML
    4)Do i need a program to create xml like i need
    jcreater to create java applicationNo, XML is just text. But then Java code is just text too.
    5)How do we actually convert?is there any links that
    you guys could tell me?You don't convert Java to XML. My guess is that because you don't know much about Java or XML, you have misinterpreted something that somebody told you.

  • Java and XML or XHTML Journey Planner Project

    Hello chaps,
    I need some help with a project I am doing.
    This project will be focusing on the area of information visualisation and the phenomena surrounding how data can be optimised in a confined space. Expanding on this, confined space can be a mobile phone screen, and personal organisers where information is shown in a limited area.
    I plan to use Java and XML. (or XHTML)
    I want to have a running application where raw data is transformed into a combination of graphics and information. To achieve this, I will be looking at route planning for mobile phones and how route instructions can be represented in a visual but a sophisticated way.
    My focus will be on the London transport.
    Here is a link to the London transport journey planner
    http://www.tfl.gov.uk/journeyplanner
    Using WAP, I surfed the website on my phone and there seems to be a lot of writing and there is a lot to process before understanding what is going on. I want to transform words into pictures e.g., the word underground or bus into a logo of a red bus or underground logo or Instead of ?walk?, a picture of a walking pedestrian. Picture are good connotations as we can easily recognise rather than processing words. I would also like to represent the time taken in a graph format, again, to easily visualise.
    The application can be on a phone or on Windows simulating a mobile phone.
    Can anyone help me with this mammoth task or at least point me out in the correct direction?
    Looking forward to your reply.

    1st, ) Raw Data e.g, journey time, journey distance
    2nd, ) I would want the system to recognise the 'raw data' mentioned before and transform this into graphical image(s).
    3rd ) a complete visualisation would look like,
    modes of transport represented by pics or logos, showing the time to get to from A to B.
    Showing various routes, eg, walking, and/or bus and/or tube

  • Java and XML Doc

    I am new to Java and XML, I want to know the steps i should follow to work with XML document using XPATH. also the APIs and Technologies i shoud work. If possible guide me any examples or tutorials for that.

    This is the defacto site for xpath stuff for java
    http://xml.apache.org/xalan-j/

  • Getting started with Java and XML

    Hi,
    Although I am pretty familiar with Java, I am a total newbie with using it to parse XML. I have been reading quite a few tutorials so am getting a good understanding of it and am thinking of using the DOM model for my purposes.
    What I haven't been able to find, however, is how I can actually get started with this. I have tried compiling a few examples and have been getting errors such as:
    xmltest.java package javax.xml.parsers does not exist
    xmltest.java package org.w3c.dom does not existetc etc...
    It looks like these packages don't come with J2SE. Can anyone confirm this? Do I need to download and install the Java Web Services Developer Pack to solve this problem?
    Finally, I know I will need an XML parser but have read that JDK 1.4 has it's own parser (Crimson). Is this adequate for parsing XML files or will I also need a parser such as Xerces?
    Thanks so much for any help!

    Hi DrClap,
    Thanks for the reply. I have JDK 1.4.1_02 installed on my server but the following error keeps coming up when I try to run my example:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/NodeAre there any further packages I need to download in order to run Java with XML? I have read some people install JAXP and XERCES... are these necessary for parsing an XML document or should J2SE 1.4.1 be sufficient?
    Thanks for your help!
    Jill

  • Java and XML How to

    Ok im am Fairly new to Java and want to know how to use XML with my Java Applecation can some one help me out withi this ?

    I have seen that can someone give me a project or some place that explains it Better ?

  • Java and XML Parser. Please guide.

    Hello there,
    I need to pass an XML document using the SAX Parser.
    Please does any one have an XML Parser routine to parse
    the document or can some one guide me as to what to do?

    any sax parsers?What version of Java are you using? With Java 1.4 the XML parser is included in the SDK / JRE.
    If you're using an older version of Java, go to http://xml.apache.org and get the Xerces parser.

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Question about  Java and XML  rendering for Word 97 upwards.

    Without using the apache POI library, and by sticking to non-pay products,
    is it possible to use java or XSLT/XML to turn
    an xml formatted file into a
    Microsoft Word/Excell/PDF file within one framework?

    Look into Apache FOP. But be warned: it will most likely use POI to do any excel conversions. That's how (sane) software development works: you don't reinvent the wheel, you effectively reuse what is already there.

  • Challenging issue for Java and XML Gurus.Please advise

    An extremely tricky and challenging code.
    I have been able to add 2 XML documents together
    using importNode().
    xmlDoc1
    <?xml version="1.0" encoding="UTF-8"?>
    <i:Interest xmlns:i="common">
    <i:Details xsi.type="i:vanilla.details.stock">
      <i:Strategy xsi.type="strategies:call">
         <strategies.Expiry>2009-12-01</strategies.Expiry>
      </i:Strategy>
    <i:Ref/>
    </i:Details>
    </i:Interest>
    xmlDoc2
    <?xml version="1.0" encoding="UTF-8"?>
    <i:Underlying value="KGF">
    <common:Currency>GBP</common:Currency>
    </i:Underlying>
    My Java Code to append them together
    NodeList list = xmlDoc2.getChildNodes();
    for (int i=0; i< list .getLength(); i++) {
         Element element = (Element)list.item(i);
         Node dup = xmlDoc1.importNode(element, true);
         xmlDoc1.getDocumentElement().appendChild(dup);
    Output:
    <?xml version="1.0" encoding="UTF-8"?>
    <i:Interest xmlns:i="common">
    <i:Details xsi.type="i:vanilla.details.stock">
         <strategies.Description>Call</strategies.Description>
         <strategies.Expiry>2009-12-01</strategies.Expiry>
       </i:Strategy>
    <i:Ref/>
    </i:Details>
    <i:Underlying value="KGF">
    <common:Currency>GBP</common:Currency>
    </i:Underlying>
    </i:Interest>     Query:
    I would like to add the 2nd XML Document after element <i:Ref> . How to do this? I dont want the 2nd XML doc after <i:details> but before it.
    Please help.

    Well. You say you want to insert a node as a child of another node, and it needs to be inserted before a certain other child node.
    There's an insertBefore() method in the Node interface. Use that.
    And if you thought that was a challenging issue then you might as well give up writing DOM code right now.

  • Java and XML :: Unlocking, editing and locking an XML file using JAVA

    I need to develop a form with Address field , When i enter address information and submit the form it needs to generate an
    XML file for furthur processing.
    Now my problem is :
    When i want to edit the address....after submitting the form by entering the address information, it should unlock
    the XML and edit the XML and then lock it.
    How can i achive programatically, unlocking an XML file, editing the file, and locking it?.
    Thanks,
    Maruthi.

    There's a FileLock class, you know, in the java.nio.channels package. However before you start using it you should read its API documentation carefully including statements like " Whether or not a lock actually prevents another program from accessing the content of the locked region is system-dependent and therefore unspecified".
    Personally I would say that if you need to synchronize access to this XML file, you should consider changing your design to use something that supports locking a bit better, like a database. Or by writing a server that encapsulates the XML file and accepts requests to read it and update it, serializing those requests appropriately.

  • Guided research with Java and XML

    Hi all,
    I'm a last year student and now I have to choose a topic for my Guided Research Project.
    My interest in XML and databases pushes me in this direction. However, I still cannot come up with an interesting proposal for the project. At first I considered implementing a "XML <-> databaseSchema" converter, but then I found out that many similar tools already exist. I have background in Java, PHP and mysql which could be useful.
    I was wondering if you could give me an idea about a possible topic.
    Thank you very much!
    Regards,
    J

    For parsing you can use SAX Parser and for document generation you can use DOM Parser.

  • Java and XML

    Hi all ....
    I'm developing a Java application in order to insert it into an XSP.
    This application tries to open an XML document, like this one:
    <cad>
    <nserie>53456363</nserie>
    </cad>
    I want to develope some code that opens the XML document, captures the <nserie> content (that is, 53456363) , and returns a String with this value.
    That is ... I need the way to extract an element from a XML document. I think it is very simple, but I can't achieved to make it works.
    I'm using javax, iaik, and ixsil.
    This is the last point of a very large project, I'm finishing the project that will let me to become an Engineer !!!
    Please, I need some help !!!
    Thanks all...
    Josep.

    (mostly from memory, using SAX(ships with 1.4))
    javax.xml.parsers.SAXParserFactory fact = javax.xml.parsers.SAXParserFactory.newInstance();
    // fact.setStuff... see api doc
    javax.xml.parsers.SAXParser saxP = fact.newSAXParser();
    saxP.parse(ioStreamOrFile, new org.xml.sax.helpers.DefaultHandler() {
           boolean nserie = false;
           String cur = "";
          public void startElement(String uri,
                             String localName,
                             String qName,
                             Attributes attributes)
                      throws SAXException {
                if( localName.equals( "nserie" ) ) {
                    nserie = true; cur = "";
        public void endElement(String uri, String localName, String qName) throws SAXException {
                if( localName.equals( "nserie" ) ) {
                         nserie = false;
                          System.out.println( cur );
        public void  characters(char[] ch, int start, int length) {
              if( nserie ) {
                    cur = cur + new String( ch, start, length );
    }) ;

  • Java and XML Query

    Hi,No offence meant please for this query as this related to XML
    I am using a Java object to retreive an xml attribute
    The arttribute to retrieve is called scheme and is in an xml file with namespace
    <PaymentType scheme="UNCONFIRMED_TERMINATION_FEE" /> The Java code addresses this as:
    String xPathPaymentFee = EnvelopeCreator.GLOBAL_XML_NS_FOR_XPATH
              + "$this//cal:PaymentTypeI tried using the @ to extract the attribute value of scheme,but it doesnt work
    String xPathPaymentFee = EnvelopeCreator.GLOBAL_XML_NS_FOR_XPATH
              + "$this//cal:PaymentType@scheme;Any ideas how to extract the scheme value as cal is a namespace?
    Again no offence meant please

    Need more information about what "doesn't work" means.

  • Java and XML for WAP

    Book Title: XML How to Program (Deitel) by Laxxsuss
    Chap 16: Server- side Java Programming
    Case Study: A Wireless Online Bookstore
    i have to tried but error, and the message is HTTP ERROR 404
    i am following the step to setup
    To setup your computer to build the wireless online bookstore
    application, follow these steps:
    1. Register the databases cart.mdb and catalog.mdb as ODBC data sources.The username is anonymous and the password is guest for both databases.
    2. Download and install Java&#8482; 2 SDK, Standard Edition Version 1.3.0 from www.java.sun.com.
    3. Download Jakarta Tomcat from jakarta.apache.org/downloads/binindex.html and follow the installation instructions in the user&#8217;s guide. In this example, we assume Jakarta Tomcat is installed in C:\jakarta-tomcat.
    4. Place the XSL files in the directory jakarta-tomcat\webapps\chapter16\ and the Java class files in the directory jakarta-tomcat\webapps\chapter16\WEB-INF\classes\cartXML\.
    5. Download the Xalan XSLT processor from xml.apache.org/xalan/index.html.
    Place xalan.jar and xerces.jar in jakarta-tomcat\webapps\chapter16\WEB-INF\lib\.
    6. Download and install the UP.SDK from www.phone.com/products/upsdk.html.
    This includes UP.Simulator, which simulates a wireless phone. We will use this to test the wireless online bookstore.
    7. Add the following XML tag in the ContextManager element in \jakartatomcat\conf\server.xml:
    <Context path = "/chapter16" docBase = "webapps/chapter16"
    debug = "0" reloadable = "true"></Context>
    8. Add the following XML in the web-app element in jakarta-tomcat\conf\web.xml:
    <mime-mapping>
    <extension>wml</extension>
    <mime-type>text/vnd.wap.wml</mime-type>
    </mime-mapping>
    9. Run Jakarta Tomcat by executing \jakarta-tomcat\bin\startup.bat.
    please help me, if any knows about this problem....
    Thanx. GBU

    1st, ) Raw Data e.g, journey time, journey distance
    2nd, ) I would want the system to recognise the 'raw data' mentioned before and transform this into graphical image(s).
    3rd ) a complete visualisation would look like,
    modes of transport represented by pics or logos, showing the time to get to from A to B.
    Showing various routes, eg, walking, and/or bus and/or tube

Maybe you are looking for

  • Error While Generating Stub

    I don't think that the stub I'm generating is any good. I've been having a problem for a while now, where I can't register my remote object with the registry. The stack trace is throwing out a class not found exception, referring to my generated stub

  • SD Document Flow - Duplicate entries

    SD Document flow, duplicate entries created for the same Delivery & shipment. In VT03N document flow same shipment no is shown twice for the sales order & delivery document.

  • IDOC - PORT

    We are generating Order05 IDOC and based on a particular condition some IDOCS are needed to be released to Receiving Partner otherwise they need to be collected in the Batch file for Processing. Immediate Idocs needs to go to the PORT1 and Batch IDOC

  • [N96]Problems with transferring music

    The pc suite didn't work at all so I tried it via mass storage, but when I want to update my music map it says: refreshing. added: 0. and nothing happens..

  • Solid State drive in dv8-1110eb

    Can I install a Solid State drive in my dv8-1110eb, does it really speeds up my Win 7, 64-bit system, and what SSD would you recomment? Greetings, Onni.be This question was solved. View Solution.