XML newbie - parsing RSS

Hello Everbody,
i started playing around with xml and i am finding it very interesting...i have a question, how does one transform an rss feed using Java.(to use on my home page for example)? I know that they have an RSSUtilities package here on java.sun.com but i wanted to try it out on my own so that i get more experience using it..
i was successfully able to parse xml docs using sax and dom approaches..(i use jaxp by the way..) also, i can transform xml to html using dom and xslt stylesheets but feeds?? if i use the same program that i used for sml files, at run time i get the following errors..
Error: URI=file:D:/javapractice/inrss.xml Line=2: Element type "rss" is n
ot declared.
Error: URI=file:D:/javapractice/inrss.xml Line=2: Attribute "version" is
not declared for element "rss".
Error: URI=file:D:/javapractice/inrss.xml Line=3: Element type "channel"
is not declared.
Error: URI=file:D:/javapractice/inrss.xml Line=4: Element type "title" is
not declared.
Error: URI=file:D:/javapractice/inrss.xml Line=5: Element type "link" is
not declared.
Error: URI=file:D:/javapractice/inrss.xml Line=6: Element type "descripti
on" is not declared.
Error: URI=file:D://javapractice/inrss.xml Line=7: Element type "language"
is not declared.
Error: URI=file:D://javapractice/inrss.xml Line=8: Element type "pubDate"
is not declared.
Error: URI=file:D://javapractice/inrss.xml Line=9: Element type "copyright
" is not declared.
Error: URI=file:D://javapractice/inrss.xml Line=10: Element type "image" i
s not declared.
i think the above is understood because there is no dtd for these rss feeds... please, help me understand this as i am going crazy with this problem

Hi Nachida,
The code is very simple and I am posting it as below.. Please note that if I use a regular xml file, it gives me correct results but if I use an RSS feed, it complains..
First the code..
import org.xml.sax.helpers.DefaultHandler;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.DOMException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;
public class TransformRss
{ Document document;
     public TransformRss()
          {try
               {DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
                 dbFactory.setValidating(true);
                dbFactory.setIgnoringElementContentWhitespace(true);
                DocumentBuilder documentBuilder = dbFactory.newDocumentBuilder();
                document = documentBuilder.parse(new File("inrss.xml"));
          catch (SAXException e)
          {System.out.println("This is a SAX Exception");
          catch (ParserConfigurationException e)
          {System.out.println("This is a Parser Configuration Exception");
          catch (IOException e)
          {System.out.println("This is a IO Exception");
     public void transformTheDocument(File stylesheet)
          {try
               {Transformer transformer = TransformerFactory.newInstance().newTransformer(new                 StreamSource(stylesheet));
                transformer.transform(new DOMSource(document), new StreamResult( new File("alteredRss.html")));
          catch (TransformerConfigurationException e)
               {System.out.println("This a transformer configuration exception");
          catch (TransformerException e)
               {System.out.println(" this is a transformer exception");
     public static void main(String[] args) throws Exception
          {TransformRss transformRss = new TransformRss();
           transformRss.transformTheDocument(new File("program.xsl"));
Now instead of rss.xml if I want to transform lets say resumexml.xml it works fine... I am posting both resumexml.xml and inrss.xml
resumexml.xml-----------------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE resume [
<!ELEMENT resume (name, education, country)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT education (#PCDATA)>
<!ELEMENT country (#PCDATA)>
]>
<resume>
<name>sabrang</name>
<education> engineer </education>
<country> usa </country>
</resume>
inrss.xml--------------------------------------// or it could be any rss type of file...
<?xml version="1.0" ?>
<rss version="0.91">
<channel>
<title>rediff Top Stories - India</title>
<link>http://www.rediff.com/</link>
<description>India's largest news and entertainment service online.</description>
<language>en-us</language>
<pubDate>Sat, 10 Apr 2004 19:44:36 GMT</pubDate>
<copyright>Copyright: (C) 2004 Rediff.com India Limited. All Rights Reserved.</copyright>
<image>
<title>rediff.com</title>
<url>http://www.rediff.com/uim/red_log.gif</url>
<link>http://www.rediff.com/</link>
<width>144</width>
<height>28</height>
<description>Visit rediff.com</description>
</image>
<item>
<title>I am a Bihari by birth, saysVajpayee</title>
<link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/election/2004/apr/10pm.htm</link>
<description>'I am a Bihari by birth. I was named Bihari by my father the day I was born,' the prime minister said in Patna.</description>
</item>
<item>
<title>US army asks for ceasefire in Fallujah</title>
<link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/news/2004/apr/10iraq.htm</link>
<description>After more than a week of fighting the US army has occupied only a small portion of the town.</description>
</item>
<item>
<title>'We'd like to have a Shoaib in our side' </title>
<link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/cricket/2004/apr/10inter.htm</link>
<description>India coach John Wright analyses the tour of Pakistan and discusses his future with the Indian team.</description>
</item>
<item>
<title>Vaghela vs Vaghela in Kapadvanj</title>
<link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/election/2004/apr/10guj1.htm</link>
<description>Of the seven assembly segments in the constituency, four are with the BJP and the rest with the Congress. So, whichever way you look at it, it is going to be a contest of equals.</description>
</item>
<item>
<title>Paes/Bhupathi give India 2-1 lead</title>
<link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/sports/2004/apr/10doubles.htm</link>
<description>The ace doubles pair beat Thomas Shimada and Takahiro Terachi in the doubles rubber of the Davis Cup Asia/Oceania Group I tie.</description>
</item>
<item>
<title>On the road to peace, a dream bloodied</title>
<link>http://www.rediff.com/rss/redirect.php?url=http://www.rediff.com/news/2004/apr/10uri.htm</link>
<description>Just a few days back the prospects of the Srinagar-Muzzafarabad road reopening had looked bright.</description>
</item>
</channel>
</rss>

Similar Messages

  • How to specify a parser? xml newbie

    Hello
    I am an XML newbie. I need to validate an XML using xerces 2.7.0. I do not want to use JAXP. (because it does not support xsd:unique).
    xerces supports is. My problem is very simple. How do I force my parser to use xerces.
    Please provide code sample.
    Thank you

    My other question is:
    How do I verify what parser am I using?
    Obviously, I have no clue what I am doing.

  • XML SAX parser that support  LexicalHandler

    Hello,
    I'm looking for an XML SAX parser that support a LexicalHandler.
    I have xml files that are not well formed, ie: (&, <, >, etc...) characters within tags and I need to ignore them.
    Anyone have a link to some opensource library ??
    Thanks,
    Samir

    Don't waste your time. Using a LexicalHandler isn't going to help with parsing malformed XML. You should get the person who produced those files to replace them with correct XML.
    PC&#178;

  • Using XDKs XML Schema Parser

    I want to parse an XML schema(XSD file) and extract the types from it, ComplexType etc. Does anyone know to even begin this. Ive managed to parse and any XML file sucessfully returning all element types,names and values using the DOM parser but cant seem to find suitable methods in the oracle.xml.parser.schema library. I have started along these lines
    XSDBuilder bob =new XSDBuilder();
    XMLSchema sch = (XMLSchema)bob.build(url);
    where URL is string referencing the xsd file. But after that all I can get is the targetnamespace using
    String display = sch.getSchemaTargetNS();
    Any help greatly appreciated.

    Srinivas,
    Thanks for the reply. But that is not my requirement.Suppose I have a schema representing the following xml
    <Student>
    <Name>ABC</Name>
    <Class>XYZ</Class>
    <Course>PQR</Course>
    </Student>
    When I parse the XML Schema representing the above XML, it should give me a Java object that represents this XML structure. (Similar to Document object that is obtained when we an XML is parsed)
    Hope this is more clear.

  • XML C++ Parser in Solaris 2.6 could not parse with encoding UTF-16

    I tried to use UTF-16 encoding in the XML C++ Parser in Solaris 2.6.
    xmlinit() fails and returns error 201 - i.e.Unknown encoding. Though the ORACLE documentation has many encodings including UTF-16. Quite a few of these encodings are not working.
    Can any one help about UTF-16.
    Thanks
    Vijay Kumar

    Do you have Oracle's NLS data files?

  • XML C++ Parser in Solaris 2.6 could not parse with base64

    I am using XML C++ Parser (version 2.0.4) in Solaris 2.6
    I am using the following definition in dtd file to process binary data.
    <!ELEMENT Agent (base64)>
    I have two problem from xmlparse() function.
    1. This declaration always produces a warning:
    LPX-00103: warning: document structure does not match DTD.
    2. This causes the parser to fail completely if the corresponding data is empty. This field needs to be optional.
    Any ideas how to handle this situation.
    Thanks in advance
    Vijay Kumar

    You can either turn off validation or read section 3.2 of http://www.w3.org/TR/1998/REC-xml-19980210 on how to write a proper DTD.
    null

  • NullPointerException in XML Schema Parser

    I have run the XML Schema parser across the sample xml files without problems, but when
    I try to run it against my own xml/xsd combo
    I get a null pointer exception. :-(
    Unfortunately the xml file and schema are
    not something that I can share openly.
    I can use gdb to get a traceback, but without the source I cannot get much more info:
    % jdb
    Initializing jdb...
    run XSDSetSchema SASOMI.xsd GetAllTables.xmlrun XSDSetSchema SASOMI.xsd GetAllTables.xml
    >
    VM Started:
    Exception occurred: java.lang.NullPointerException (uncaught) thread="main", oracle.xml.parser.schema.XSDBuilder.parseComplexTypeContent(), line=1074, bci=383
    main[1] where
    [1] oracle.xml.parser.schema.XSDBuilder.parseComplexTypeContent (XSDBuilder.java:1074)
    [2] oracle.xml.parser.schema.XSDBuilder.parseComplexType (XSDBuilder.java:905)
    [3] oracle.xml.parser.schema.XSDBuilder.parseTopLevelElem (XSDBuilder.java:466)
    [4] oracle.xml.parser.schema.XSDBuilder.buildSchema (XSDBuilder.java:367)
    [5] oracle.xml.parser.schema.XSDBuilder.build (XSDBuilder.java:223)
    [6] oracle.xml.parser.schema.XSDBuilder.build (XSDBuilder.java:206)
    [7] XSDSetSchema.main (XSDSetSchema.java:24)
    main[1] ?
    Any ideas as to how to proceed?

    A quick update on this.
    In case anybody is inclined to look into
    this problem, I have a testcase you can
    try:
    http://www.realtime.net/~mburns/xml/critters/Hawk1.xml
    and corresponding schema: http://www.realtime.net/~mburns/xml/critters/Critters.xsd
    null

  • XML C++ Parser on Tru64 UNIX

    Are there any plans to provide a version of the XML C++ Parser on Compaq Tru64 UNIX?
    Thanks and regards
    ...colin

    We do not currently support Compaq Tru64 UNIX. We have not yet made any announcement regarding this platform.
    Oracle XML Team

  • Is There An XML Schema Parser From Oracle ?

    Is XML parser available from oracle different from Xml Schema parser ? Is schema parser available at all ? Where can I download it ? I tried a brief search and could not find ?
    Help appreciated.
    Thanx
    Soorya

    Thank you. I got it. I am trying to validate against an existing schema. But it always enters the "XMLParseException" handler.
    Could you direct me to the documents which gives some examples ? or a 3 lines to validate would be helpful.
    Thanx again.
    Soorya
    null

  • How to retain prolog in output xml after parse the input xml

    Hi,
    I am using com.bea.xml.XmlObject.Factory.parse(String) method to parse a xml.
    Input XML is having prolog defore the root node.But after parse the xml using the above method, the prolog is not there in the Output XML.
    can any one help me to retain the prolog in Output XML as it is in Input XML......
    Thanks in advance..
    Regards,
    Deba

    Hi,
    The Input XML is like
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But after parse the Output XML become
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <SOAP-ENV:Body>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But due to project requirement i want to keep the prolog(<?xml version="1.0" encoding="UTF-8"?>) as it is with Output XML after parse the xml.
    can i use any XMLOption while calling parse() method...Or any one have any otherway to retain prolog after parse ?
    please help me to get it .
    Thanks in advance.
    Regards,
    Deba

  • XML Custom Parser

    I am tryint to write a custom XML parser but I am having trouble accessing the Value fields. I need to use one of the Value Fields to determine which parser I need to use for my custom Class Objects. Below is my sample code and a sample XML Document that I am trying to Parse. I hope that it will reformat. If not then I am sorry for the format.
    public LibraryObject parse(InputStream p_file, ParserCallback p_callBack, Hashtable p_opts)
    throws oracle.ifs.common.IfsException
    XMLDocument xmlDoc = new XMLDocument();
    IfsXmlParser parser = new IfsXmlParser(m_Session);
    xmlDoc = parser.createDOM(p_file, false);
    NodeList list = xmlDoc.getElementsByTagName("Value");
    for (int i=0; i < list.getLength(); i++) {
    printNodeInfo(list.item(i));
    // This gives me a Type Casting error!
    // Here is the problem
    CharacterData temp = (CharacterData)list.item(i);
    <?xml version='1.0'?>
    <Records>
    <Record>
    <Field id='Remote_User' type='string' length='30'></Field>
    <Field id='Time_Stamp' type='string' length='30'><Value>02/01/01 02:03:13 PM</Value></Field>
    <Field id='Suspense_File' type='string' length='30'><Value>T:\teleform\bat\00000053\7H6CUO0000.tct</Value></Field>
    <Field id='Remote_Uid' type='number' length='10'><Value>-1</Value></Field>
    <Field id='Remote_Fax' type='string' length='30'><Value>Y087EY0000.TIF</Value></Field>
    <Field id='Form_Id' type='number' length='10'><Value>18567</Value></Field>
    <Field id='OrigPgSeq' type='string' length='128'><Value>0</Value></Field>
    <Field id='Orig_File' type='string' length='128'><Value>T:\teleform\bat\00000053\HDKHBA0000.tct</Value></Field>
    <Field id='SKFI_Zone_1' type='string' length='30'></Field>
    <Field id='First_Name' type='string' length='15'><Value>Jason</Value></Field>
    <Field id='Middle_Name' type='string' length='15'><Value>Paul</Value></Field>
    <Field id='Last_Name' type='string' length='30'><Value>Adkison</Value></Field>
    <Field id='Suffix' type='string' length='10'><Value>Mr</Value></Field>
    <Field id='Address_1' type='string' length='50'><Value>5532 Overlook NE</Value></Field>
    <Field id='Address_2' type='string' length='50'><Value>Albuquerque</Value></Field>
    <Field id='Zip_Code' type='string' length='15'><Value>87111</Value></Field>
    <Field id='Home_Phone' type='string' length='15'><Value>505-555-5555</Value></Field>
    <Field id='Work_Phone' type='string' length='15'><Value>505-555-5555</Value></Field>
    <Field id='E_Mail' type='string' length='20'><Value>[email protected]</Value></Field>
    </Record>
    </Records>

    Jason
    You are making incorrect assumptions regarding what is contained in the NodeList.
    The folllowing should explain
    public void doSomething(LibrarySession ifs)
    throws IfsException
    try {
    InputStream is = new FileInputStream("c:\\temp\\testfile.xml");
    IfsXmlParser parser = new IfsXmlParser(ifs);
    XMLDocument xmlDoc = parser.createDOM(is,false);
    xmlDoc.print(System.out);
    NodeList nodes = xmlDoc.getElementsByTagName("Value");
    for (int i=0;i<nodes.getLength();i++) {
    Node node = nodes.item(i);
    System.out.println("Node " + i + " is an instance of " + node.getClass());
    System.out.println("The value of the Text for the Node is " + node.getFirstChild().getNodeValue());
    } catch (java.io.IOException x) {
    throw new IfsException(9999,x);
    generates
    Transaction Started.
    <?xml version = '1.0'?>
    <Records>
    <Record>
    <Field id="Remote_User"
    type="string" length="30"/>
    <Field id="Time_Stamp" type="string" length="30">
    <Value>02/01/01 02:03:13 PM</Value>
    </Field>
    <Field id="Suspense_File" type="string" length="30">
    <Value>T:\teleform\bat\00000053\7H6CUO0000.tct</Value>
    </Field>
    <Field id="Remote_Uid" type="number" length="10">
    <Value>-1</Value>
    </Field>
    <Field id="Remote_Fax" type="string" length="30">
    <Value>Y087EY0000.TIF</Value>
    </Field>
    <Field id="Form_Id" type="number" length="10">
    <Value>18567</Value>
    </Field>
    <Field id="OrigPgSeq" type="string" length="128">
    <Value>0</Value>
    </Field>
    <Field id="Orig_File" type="string" length="128">
    <Value>T:\teleform\bat\00000053\HDKHBA0000.tct</Value>
    </Field>
    <Field id="SKFI_Zone_1" type="string" length="30"/>
    <Field id="First_Name" type="string" length="15">
    <Value>Jason</Value>
    </Field>
    <Field id="Middle_Name" type="string" length="15">
    <Value>Paul</Value>
    </Field>
    <Field id="Last_Name" type="string" length="30">
    <Value>Adkison</Value>
    </Field>
    <Field id="Suffix" type="string" length="10">
    <Value>Mr</Value>
    </Field>
    <Field id="Address_1" type="string" length="50">
    <Value>5532 Overlook NE</Value>
    </Field>
    <Field id="Address_2" type="string" length="50">
    <Value>Albuquerque</Value>
    </Field>
    <Field id="Zip_Code" type="string" length="15">
    <Value>87111</Value>
    </Field>
    <Field id="Home_Phone" type="string" length="15">
    <Value>505-555-5555</Value>
    </Field>
    <Field id="Work_Phone"
    type="string" length="15">
    <Value>505-555-5555</Value>
    </Field>
    <Field id="E_Mail" type="string" length="20">
    <Value>[email protected]
    </Value>
    </Field>
    </Record>
    </Records>
    Node 0 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 02/01/01 02:03:13 PM
    Node 1 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is T:\teleform\bat\00000053\7H6CUO0000.tct
    Node 2 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is -1
    Node 3 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is Y087EY0000.TIF
    Node 4 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 18567
    Node 5 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 0
    Node 6 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is T:\teleform\bat\00000053\HDKHBA0000.tct
    Node 7 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is Jason
    Node 8 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is Paul
    Nod e 9 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is Adkison
    Node 10 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is Mr
    Node 11 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 5532 Overlook NE
    Node 12 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is Albuquerque
    Node 13 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 87111
    Node 14 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 505-555-5555
    Node 15 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is 505-555-5555
    Node 16 is an instance of class oracle.xml.parser.v2.XMLElement
    The value of the Text for the Node is [email protected]
    Transaction Completed.
    Successful End of Program.
    null

  • XML newbie question

    Hi,
    Firstly, I am sorry to post native-XML question here..
    I am using XML in my Java application and came across XML Schema.
    As far as I know XML Schema does similar job(validating xml doc) with DTD with more functions.
    Is that all XML Schema can do, validating related XML doc?
    My application needs to build different types of XML docs with existing XML Schemas.
    This is silly question but...
    Is there any way to embed XML Schema into XML builder/parser so that it can be used to generate XML doc ?
    In other words, when building XML doc, is it possible to guilde the building process with XML Schema...
    If not, then building different XML docs with different XML Schemas in my application would be very tedious...
    Thanks in advance.

    To generate an XML document from an XML schema, generate java classes from the Schema with JAXB.
    Construct an XML document from the java classes by marshalling a java object.

  • Variable xml and parser

    I have a String containing xml code and i want to parse ths string
    but method parse don't accept string so it returns "no protocol : String ".
    Could you helpe please, it's very important.
    my code (simplified):
    String entete_xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
    String xml=entete_xml+"<aaa><bbb>aaaa</bbb><essai>reussi</essai></aaa>";
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    doc = builder.parse(xml);

    builder.parse(new InputSource(new StringReader(xml)));

  • Trying to use XML SAX parser with JDK2 ...

    Hi,
    I'm pretty new to Java.
    I'm trying to write and use java sample using XML SAX parser. I try with XP and XML4J.
    Each time I compile it give me a error message like
    "SAX01.java:23: unreported exception java.lang.Exception; must be caught or declared to be
    thrown
    (new SAX01()).countBooks();
    ^
    Note: SAX01.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error"
    For what I found, it seems that "deprecated" mean usage of old classes or methods. What should I do ?
    Wait for the XML parser to be rewrite ? ....
    Thank's
    Constant

    "SAX01.java:23: unreported exception
    java.lang.Exception; must be caught or declared to be
    thrown
    (new SAX01()).countBooks();
    ^Do this
    public static void main(String[] args) throws Exception {
    or do this
         try
                       first part of expression?(new SAX0()).countBooks();
         catch(Exception ex)     
              System.out.println("problem "+ ex);
    Note: SAX01.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error"deprecation is just a warning if there are no errors elsewhere in your program it should compile fine, but if you want to find out how to change it do this:
    javac YourClassName.java -deprecation
    then look in the docs for an alternative.

  • Newbie: Parsing XML data

    I have bunch of XML files and I want to develop a keyword based search engine which parses those XML files.
    Do you have any idea which is the best way to do the job? I mean on Linux? Should I use PHP? JAVA? Python??
    Please let me know. I am very new to everything in this domain.
    Thanks
    Dexter

    i am getting runtime error
    java.lang.NullPointerException
    at Employee.setdata(Employee.java)
    at Employee.actionPerformed(Employee.java)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
    n Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Maybe you are looking for

  • You're miraculous if you can solve this

    It involves the mini and the inMotion speakers I connected to. Because my AC to DC adapter broke that connected the inMotion to my iPod mini, I went out and got a replacement AC power adapter... well... I read directions, and set the adapter to 9V ou

  • Second-hand G5 iMac and warranty extension

    I bought a second-hand imac G5 on eBay and it has all the symptoms of needing logic board and or power supply replacement, i.e. high revving fans, very loud high pitch whine. I've done all resets and cleaning. Is a second-hand machine eligible for th

  • White background of extracted image prints in pdf

    Hi'ya Using the "Extract" filter to crop a photo in Photoshop 7.0 allowed me to extract a person from a photo and it was saved as a .psd file. In my InDesign 2.0.1 layout, the psd file looks great and as it was an extracted image, I can put things in

  • Online Galleries with Client Proofing

    Currently when I post photographs from a client shoot to Zenfolio or Smugmug, my clients say things like "I like 22, 34, 25, 26, and 27" or "I like the third one down and fourth one to the left on the third page" and while it's helpful to be integrat

  • Open raw file in cs3

    how do i open a raw file in cs3