XML token parsing limitations

I am attempting to parse an XML string with the XXX.Factory.parse(String) method. In most cases it works fine, but when I have a document with 100 - 200 elements, it throws an XmlException. The error message says "Unexpected token encountered 'S' (lex state 3)". I'm thinking that the XML string may contain too many tokens. Are there any limitations like this that anyone knows of?

Never mind, turns out the web service was returning an invalid XML string with the & character inside.

Similar Messages

  • 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 token writer class

    Hi
    I have created an application that sends a request to XI web service for transferring data from source system to target system.
    The data gets tranferred when the size of data is average, however when large sized data is transferred, I get an error with the message ' xml token writer ' class definition not found.May you please provide the API that I should use to make this class available..
    Thanks in advance,
    Sudeep.

    Just to elaborate,
    I have created an application which accepts a user request for data transfer from a source system to target system viz. Primavera project planner and SAP project system.
    The application verifies the data on the source and target system before actually transferring data.The info is displayed to the user and only when the user clicks transfer button is the data transferred.
    When the data size is small,the transferred successfully.
    However , when data size is large, the application gives XML Token Writer Class not found exception.
    Is there any specific reason for this??
    Thanks in advance.

  • 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

  • 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.

  • XML Parser Limitations?

    I'm having problems using the XML Parser from
    Oracle. I've encountered this both in the
    transviewer beans as well as my own implemenatation of the parser.
    The problem occurs when I use an XSL document with a for-each declarative in it. Internet Explorer successfully parses an XML document using this XLS file, but when I use the Oracle Transviewer, the data from the XML document is not parsed into the output.
    Is this an error of mine or a limitation of XML Parser?
    Here are my XML and XLS docs:
    <?xml version = '1.0'?><?xml-stylesheet type="text/xsl" href="cd.xsl"?>
    <PatientSummary>
    <PATIENT>
    <PatName>JONES
    </PatName>
    <PatFirstName>FRED Z
    </PatFirstName>
    <PatGenderCode>M
    </PatGenderCode>
    <PatBirthDtm>06Jul1976
    </PatBirthDtm>
    <PatPrimAddressStreet>123 Main Street
    </PatPrimAddressStreet>
    <PatPrimAddressPost>498555
    </PatPrimAddressPost>
    <PatPrimAddressCity>Edmonton
    </PatPrimAddressCity>
    <PatPrimPhoneNum>6045374321
    </PatPrimPhoneNum>
    </PATIENT>
    <PATIENT>
    <PatName>JONES
    </PatName>
    <PatFirstName>FRED Z
    </PatFirstName>
    <PatGenderCode>M
    </PatGenderCode>
    <PatBirthDtm>06Jul1976
    </PatBirthDtm>
    <PatPrimAddressStreet>123 Main Street
    </PatPrimAddressStreet>
    <PatPrimAddressPost>498555
    </PatPrimAddressPost>
    <PatPrimAddressCity>Edmonton
    </PatPrimAddressCity>
    <PatPrimPhoneNum>6045374321
    </PatPrimPhoneNum>
    </PATIENT>
    </PatientSummary>
    <?xml version = '1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
    <html>
    <body>
    <xsl:for-each select="PatientSummary/PATIENT">
    <table border="2" bgcolor="yellow">
    <tr>
    <td>
    <xsl:value-of select="PatName"/>
    </td>
    </tr>
    <tr>
    <td>
    <xsl:value-of select="PatFirstName"/>
    </td>
    </tr>
    <tr>
    <td>
    <xsl:value-of select="PatGenderCode"/>
    </td>
    </tr>
    <tr>
    <td>
    <xsl:value-of select="PatBirthDtm"/>
    </td>
    </tr>
    <tr>
    <td>
    <xsl:value-of select="PatPrimAddressStreet"/>
    </td>
    </tr>
    <tr>
    <td>
    <xsl:value-of select="PatPrimAddressPost"/>
    </td>
    </tr>
    </table>
    </xsl:for-each>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    null

    Hi,
    For the XSL file, you need to use
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0" version="1.0">
    instead of
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    We were able to parse the file with this modification. If this does not solve your problem, please provide us with some description of the error that you are getting.
    Thank you,
    Oracle XML Team

  • 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>

Maybe you are looking for

  • APO gATP vs R/3 ATP - To check sales order ATP across multiple plants

    Hi There, I am trying to evaluate gATP functionality for SD sales orders. The primary requirement is to have sales order ATP checking take place across multiple plants. E.G. Sales order line is entered for qty 100 60 is available in plant A, 40 is av

  • Itunes 10.1.2.17 upgrade killed my sound, music scroll bar doesn't move

    After upgrading to 10.1.2.17 on 1/30/2011 all sound ceased on my system. Updated the sound card driver to no avail. No conflict in compatability mode. When song selected in iTunes, the play bar doesn't move nor do movies have audio in quicktime. Ther

  • Facing issue with SSO communication after Upgrade to SAP EP7.31

    Hi Experts, This is happening post upgrade of system from 7.0 to 7.31. We are using SSO to connect ECC(back-end system) in two ways, logon Ticket and User-Mapping Issue: When we click on a tab, lets say "A tab/ User Administration Tab"  which uses Us

  • Connecting a .as file to the .fla file

    I have written my .as file to 'make a scrollbar work with text' but the on line video training missed out the last step. I now have my 'package' defined in my .as file . . . how do I 'link' . . . 'connect' it to my .fla file? Also, wouldn't it be eas

  • Upload data into ztable

    Hi all, i need to upload data from notepad into ztables.  what is the best method of doing it?  do we use gui upload? when do we use BDC and when to go for LSMW?  Thanks in advance.