DOMParser

Let I have a file named "abc.xml" How I can use DOMParser to parse the values of that xml file.
Let following is the data in that xml file. and i want to parse attributes and if i want then i can also be able to change these attribute values.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="appender" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="c:\\abc.txt"/>
<param name="MaxFileSize" value="1KB"/>
<param name="MaxBackupIndex" value="3"/>
<layout class="org.apache.log4j.SimpleLayout"></layout>
</appender>
<root>
<priority value ="debug"/>
<appender-ref ref="appender"/>
</root>
</log4j:configuration>

Cross post - http://forum.java.sun.com/thread.jspa?threadID=720139&messageID=4155504#4155504

Similar Messages

  • Getting null values from nodes using DOMParser

    Hi
    I'm having problems retrieving the values from an XML doc.
    I'm using the DOMParser, but instead of retrieving the values
    from the nodes, I just get null.
    Code fragment :
    DOMParser parser = new DOMParser();
    parser.parse(url);
    XMLDocument doc = parser.getDocument();
    NodeList nl = doc.getElementsByTagName("*");
    Node n;
    iNode = nl.getLength();
    for (int i=0; i<iNode; i++)
    n = nl.item(i);
    String szNodeName = n.getNodeName();
    System.out.print(szNodeName+ " (" );
    System.out.print(n.getNodeValue()+")");
    System.out.println();
    The result is
    course (null)
    Name (null)
    All the node names are correct, but the node values are NOT
    displayed.
    Any idea ?
    Rodrigo
    null

    According to the DOM Level 1 spec, the "value" of an ELEMENT node
    is null and the getNodeValue() method will always return null for
    an ELEMENT type node. You have to get the TEXT children of an
    element and then use the getNodeValue() method in the text nodes.
    Oracle XML Team
    Rodrigo Loureiro (guest) wrote:
    : Hi
    : I'm having problems retrieving the values from an XML doc.
    : I'm using the DOMParser, but instead of retrieving the values
    : from the nodes, I just get null.
    : Code fragment :
    : DOMParser parser = new DOMParser();
    : parser.parse(url);
    : XMLDocument doc = parser.getDocument();
    : NodeList nl = doc.getElementsByTagName("*");
    : Node n;
    : iNode = nl.getLength();
    : for (int i=0; i<iNode; i++)
    : n = nl.item(i);
    : String szNodeName = n.getNodeName();
    : System.out.print(szNodeName+ " (" );
    : System.out.print(n.getNodeValue()+")");
    : System.out.println();
    : The result is
    : course (null)
    : Name (null)
    : All the node names are correct, but the node values are NOT
    : displayed.
    : Any idea ?
    : Rodrigo
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • ArrayIndexOutOfBoundsException during DOMParser.parse(...) operation

    Please provide assistance with clarifying any limitations of the DOMParser.parse() operations. Please let me know if there is an alternative approach to what I am doing below. The details of my situation follow:
    I am using Visual Cafe 3 with the Oracle XML parser 2.0.2.6 to parse an XML string using the DOMParser parse(Reader), parse(InputSource), parse(InputStream) operation in order to retrieve a DOMDocument object.
    I have taken several approaches all of which result in the following exception:
    "java.lang.ArrayIndexOutOfBoundsException: 16388"
    This error appears to be raised by XMLReader:
    oracle\xml\parser\v2\XMLReader(1411)... The java source is unavailable to debug the code.
    I have also changed the XML string to a simple innocuous string. But I still get the same message. The literal string value is as follows: "<?xml version="1.0"?><EMPLIST><EMP><ENAME>MARTIN</ENAME></EMP><EMP><ENAME>SCOTT</ENAME></EMP></EMPLIST>"
    The code fragments I have used to perform the parse() operations are given below:
    //Reader approach
    StringReader xmlReader = new StringReader( inXMLString );
    parser.parse( xmlReader );
    // InputSource approach
    InputSource source = new InputSource( xmlReader );
    parser.parse( source );
    // InputStream approach
    ByteArrayInputStream byteStream = new ByteArrayInputStream( inXMLString.getBytes() );
    parser.parse( byteStream );
    Any assistance would be greatly appreciated.
    null

    Please provide assistance with clarifying any limitations of the DOMParser.parse() operations. Please let me know if there is an alternative approach to what I am doing below. The details of my situation follow:
    I am using Visual Cafe 3 with the Oracle XML parser 2.0.2.6 to parse an XML string using the DOMParser parse(Reader), parse(InputSource), parse(InputStream) operation in order to retrieve a DOMDocument object.
    I have taken several approaches all of which result in the following exception:
    "java.lang.ArrayIndexOutOfBoundsException: 16388"
    This error appears to be raised by XMLReader:
    oracle\xml\parser\v2\XMLReader(1411)... The java source is unavailable to debug the code.
    I have also changed the XML string to a simple innocuous string. But I still get the same message. The literal string value is as follows: "<?xml version="1.0"?><EMPLIST><EMP><ENAME>MARTIN</ENAME></EMP><EMP><ENAME>SCOTT</ENAME></EMP></EMPLIST>"
    The code fragments I have used to perform the parse() operations are given below:
    //Reader approach
    StringReader xmlReader = new StringReader( inXMLString );
    parser.parse( xmlReader );
    // InputSource approach
    InputSource source = new InputSource( xmlReader );
    parser.parse( source );
    // InputStream approach
    ByteArrayInputStream byteStream = new ByteArrayInputStream( inXMLString.getBytes() );
    parser.parse( byteStream );
    Any assistance would be greatly appreciated.
    null

  • DOMParser.parse(URL) hangs

    Anytime I call DOMParser.parse(URL) where URL is of type "http://", the parse call hangs (as near as I can tell) indefinitely. Are URLs of this type not supported? Is there a work around to this problem?

    No. Within the same class, the following DOES work:
    DOMParser dp = new DOMParser();
    dp.setErrorStream(new PrintWriter(errs));
    // Set Schema Object for Validation
    dp.setXMLSchema((XMLSchema)((new XSDBuilder()).build(schema.location)));
    Note that schema.location is a String like "http://www.wherever.com/file.xsd" which points to the web server that is hanging on DOMParser.parse(URL);

  • How to use DOMParser from an Applet / Or, how to parse XML from an Applet?

    Hey,
    As stating in the subject line, I wonder how to do it without getting an �Access Denied� error.
    I would like to parse a XML file that has external DTD pointing to a SYSTEM location. Yes, I can change it to a public location. However, in either way, I have problems to use DOMBuilder to parse the xml file. The application always throws the security exception.
    I tried to use the DOMParser from org.apache.xerces.parsers to parse the xml file. I set the DOMParser to ignore parsing the external DTD, and use the DOMParser.parse(InputSource) to parse the xml file from a giving URL. However, I get null of the result document.
    Does anyone know how to parse the XML from an Applet? Or, does anyone know how to use the DOMParser from an Applet?
    Thank you very much,

    If the document resides on the local filesystem, you will need to sign a CAB or JAR for the applet to circumvent the sandbox's security restrictions. There are dozens of posts on how to do this. Basically, that will turn the applet into an application, from a Java security perspective.
    - Saish
    "My karma ran over your dogma." - Anon

  • JDK 1.6 - XML, Xerces and DOMParser - Help?

    Please bear with me while I try to explain this thoroughly....
    I perviously wrote a JSP page using the following:
    Tomcat 5.5.x
    JDK 1.5x
    imports: org.w3c.dom.*,
    org.apache.xerces.parsers.*,
    org.xml.sax.*
    I have since upgraded to:
    Tomcat 6.0.x
    JDK 1.6x
    My JSP will no longer compile as the Xerces.jar file is not in my path.
    The specific error is:
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
    My use of the DOM (with xerces) is like this:
    org.w3c.dom.Document xmlparams=null;
    DOMParser parser=new DOMParser();
    InputSource is=new InputSource(new StringReader("myParameters.xml"));
    parser.parse(is);
    xmlparams=parser.getDocument();Then:
    Node fpref=xmlparams.getElementsByTagName("FormatPreference").item(0).getFirstChild();etc., etc.
    If I no longer want to use Xerces, what standard distribution libraries can I use instead ?
    Can you provide/link to a few examples?
    Or should I just distribute xerces.jar with my app?
    I'm hoping I don't have to rewrite my code for a different xml parser....
    Edited by: whoit on Jul 21, 2008 12:22 PM

    Never mind - I found the answer.
    I can eliminate xerces.jar by replacing the following code:
    import org.apache.xerces.parsers.*;
    org.w3c.dom.Document xmlDoc;
    DOMParser parser=new DOMParser();
    parser.parse(new File(xFileName));
    xmlDoc=parser.getDocument();with this:
    import javax.xml.parsers.*;
    org.w3c.dom.Document xmlDoc;
    DocumentBuilder parser= DocumentBuilderFactory.newInstance().newDocumentBuilder();
    xmlDoc=parser.parse(new File(xFileName));

  • DOMparser throws IOException when encounters Hungarian Characters

    Hoi!
    I wrote a piece of code that extracts some
    information from an XML document into a vector of Java classes, using the oracle.xml.parser.v2.DOMParser.
    And it worked. Or seemed to work...
    But when I put some articles in the XML file
    in Hungarian, the parser threw IOException.
    If I remplace the Hungarian characters to
    English "equivalents" a -> a etc., it works.
    I don't know. If XML is made up of Unicode characters, what's the problem with it?
    (The hex code of a was E1 in my text editor,
    as I'm using Win NT :(. )
    can I modify the xml prolog somehow?
    I'd rather not write a conversion program
    from a text file to another.
    Any ideas?
    and here's the code:
    DOMParser theParser = new DOMParser();
    XMLStreamToParse = XMLes.class.getResourceAsStream(xmlDocPath);
    theParser.setValidationMode(false);
    try{
    theParser.parse( XMLStreamToParse );
    //this throws IOException
    null

    What are you using as your test client?The test client is WebStone 1.0. WebStone always downloads the whole response, and reports the size of the response in bytes. From this I can see that when the IO exception occurs, webstone is unable to read the whole response, as it reports a smaller size.
    So, I do not think the problem is that the client has prematurely aborted its download. WebStone doesn't work that way. I think something has gone awry on the server side, and this worries me.

  • UTF-8 files with BOM chrashes DOMParser?

    Hi.
    We are storing XML-documents in an 8i databse with UTF-8 encoding (in CLOBS).
    Problem: If the Unicode XML-document contains a BOM the oracle.xml.parser.v2.DOMParser's
    parse()-method throws an exception.
    I get the following output when using the ParseXMLFromURL.java class supplied in JDeveloper 3.2 samples directory:
    Sample output >>>>
    System Output: XML parse error in file http://localhost/UTF-8_With_BOM.xml
    System Output: at line 1, character 1
    System Output: Start of root element expected.
    <<<<<<< Sample output
    If I change the XML-file not to include a BOM the parser works fine.
    (I set/unset the BOM using EmEditor from http://www.emurasoft.com/ if you'd like to try for yourselves).
    To me it looks like DOMParser interprets the BOM at the start of the XML-file as XML-content instead of a Unicode signature.
    IE 5.5 can handle both formats, shouldn't DOMParse also be able to handle that?
    Any ideas how I can get DOMParse to work with UTF-8(BOM) XML-files?
    Regards,
    Jan-Erik
    Sample XML:
    <?xml version="1.0" encoding='UTF-8'?>
    <newsdoc>
    <news>
    <newstitle>
    Document contains no BOM
    </newstitle>
    <introduction>
    See http://www.unicode.org/unicode/faq/utf_bom.html for info on BOM
    </introduction>
    </news>
    </newsdoc>
    null

    I have the same problem when trying to store UTF-8 encoded XML files with BOM marks in iFS version 1.1.9.0.7.
    The database is 8.1.7.1.1 created with UTF-8 charset.
    I have loaded the XDK for PLSQL 9.0.2.0.0A into the database and replaced the original %ORACLE_HOME%\lib\xmlparserv2.jar with the one distributed in this XDK.
    I get the following error message:
    Wed Aug 01 10:10:06 GMT+02:00 2001: \public\CV-Bank\CV_Patrik_Johansson_intDTD_BOM.xml:
    oracle.ifs.common.IfsException: IFS-12608: Error while pre-parsing with the SAXParser: at line (1), column (1): oracle.xml.parser.v2.XMLParseException: Start of root element expected.
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at oracle.ifs.common.IfsException.<init>(IfsException.java, Compiled Code)
    at oracle.ifs.common.IfsException.<init>(IfsException.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.preParse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.getParserName(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.beans.parsers.IfsXmlParser.parse(IfsXmlParser.java, Compiled Code)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.cleanupFile(FileProxy.java, Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.runFileProxy(Native Method)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(FileProxy.java, Compiled Code)
    This is a serious problem since we use an XML editor that adds BOM's.
    Regards
    Patrik Johansson

  • DOMParser cannot be resolved to a type

    I am getting the following errors and imports are not being recognized:
    import org.apache.xerces.parsers.DOMParser;
    import org.apache.xerces.dom.traversal.NodeIteratorImpl;
    import org.apache.xerces.dom.DocumentImpl;
    import org.apache.xerces.domx.traversal.NodeFilter;
    and I am getting the following exceptionj even though i added the xecerces parser to my project:
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         DOMParser cannot be resolved to a type
         DOMParser cannot be resolved to a type
         DocumentImpl cannot be resolved to a type
         DocumentImpl cannot be resolved to a type
         NodeIteratorImpl cannot be resolved to a type
         NodeIteratorImpl cannot be resolved to a type
         NodeFilter cannot be resolved
         NodeFilter cannot be resolved to a type
         at NodeIteratorClient.main(NodeIteratorClient.java:20)

    Hi,
    you should better provide the code line at
    NodeIteratorClient.java:20
    because this obviously causes the error
    Frank

  • Leak memory in xerces DomParser

    Hey,
    I have " leak memory " in my Java application (Stand alone).
    I suspect that this leak caused by xerces DomParser.
    i reached to this conculsion after using in Jprobe as a memory debuger.
    Does any one has a similar problem?
    Thank you.
    code:
    DOMParser parser = new DOMParser();
    parser.parse(new InputSource(new FileInputStream(schemaFile)));

    Hey, which Version of Xerces do you use?

  • RSS feed and DOMParser. Confused and urgent.

    Hi, I'm VERY new to RSS and have decided to give this application a try.
    I'm trying to create a java application that reads
    http://weather.nearperfect.com/weather/world.rss/081/c00234
    and prints out informations such as "Title, link, description", and etc.
    However, I don't know how to use a DOMParser to read the URL.
    I have tried
    DOMParser parser = new DOMParser();
                 parser.parse("http://weather.nearperfect.com/weather/world.rss/081/c00234");but have not yet tested it with the nodes. I'd just like to ask before going in further if there is any one who has done RSS feed and DOMParser know how to do this. I'm at wits end and have been googling for few hours now.

    Hi,
    Thanks for the help, that is much appreciated. Sadly I'm still having the same issue. The two old dead feeds are still on iTunes after weeks of me asking for them to be removed and also after me putting the block tag into the rss feed. My new one still hasn't shown up even though it was updated on Saturday... it's really a nightmare.
    Can someone please please help.
    Thanks
    xx

  • DOMParser parse & namespaces

    I've notice that when I parse a stream using (java) DOMparser.parse, where that steam contains namespace prefixes, the parser returns with errors even though I've set the validationmode to false. Is this intended behavior, and if so how do I circumvente the parser from trying to resolve namespaces, but just check wellformedness?

    You can't turn off the parser's namespace support. If you have invalid namespace prefixes, then an XML 1.0 Parser with XML Namespaces support (which ours is) should raise an error.
    Resolving namespace prefixes is not part of validation, it's part of wellformedness checking.

  • DOMParser questions...

    Greetings,
    I am trying to utilize the V2 DOMParser to process this very simple doc AND extract the data contained therein...
    Here is the (empty) doc..
    <?xml version="1.0" standalone="yes"?>
    <!DOCTYPE MAIL [
    <!ELEMENT MAIL (TIMESTAMP,FROM_ALIAS,IP_ADDR,TO_ALIAS,SUBJECT,MESSAGE)>
    <!ATTLIST MAIL id ID #REQUIRED>
    <!ELEMENT TIMESTAMP (#PCDATA)>
    <!ELEMENT FROM_ALIAS (#PCDATA)>
    <!ELEMENT IP_ADDR (#PCDATA)>
    <!ELEMENT TO_ALIAS (#PCDATA)>
    <!ELEMENT SUBJECT (#PCDATA)>
    <!ELEMENT MESSAGE (#PCDATA)>
    ]>
    <MAIL id="">
    <TIMESTAMP></TIMESTAMP>
    <FROM_ALIAS></FROM_ALIAS>
    <IP_ADDR></IP_ADDR>
    <TO_ALIAS></TO_ALIAS>
    <SUBJECT></SUBJECT>
    <MESSAGE></MESSAGE>
    </MAIL>
    So...
    I use the (V2) DOMParser to parse the doc (with data, see below), (no errors, etc.), all is happy, I can get the Node(s), Name(s), etc. for every element in the xml doc...
    BUT I CAN'T GET THE DATA (from between the tags)
    Any Ideas???
    I have tried every method and abstract function that looks as though it would give me data, but nothing! (??)
    Here is the output from the parsed doc:
    (so I know there is data that the parser should see)
    <?xml version = '1.0' standalone = 'yes'?>
    <!DOCTYPE MAIL [
    <!ELEMENT MAIL ANY>
    <!ATTLIST MAIL id ID >
    ]>
    <MAIL id="0">
    <TIMESTAMP>Sep 15 2000 7:03:19 PM</TIMESTAMP>
    <FROM_ALIAS>test</FROM_ALIAS>
    <IP_ADDR>127.0.0.1</IP_ADDR>
    <TO_ALIAS>me</TO_ALIAS>
    <SUBJECT>mail test</SUBJECT>
    <MESSAGE>parser test #35</MESSAGE>
    </MAIL>
    And here is the output I can get...
    (nodes and node names)
    oracle.xml.parser.v2.XMLElement@bf701918 TIMESTAMP
    oracle.xml.parser.v2.XMLElement@be981918 FROM_ALIAS
    oracle.xml.parser.v2.XMLElement@be601918 IP_ADDR
    oracle.xml.parser.v2.XMLElement@be2c1918 TO_ALIAS
    oracle.xml.parser.v2.XMLElement@b1501918 SUBJECT
    oracle.xml.parser.v2.XMLElement@b11c1918 MESSAGE
    So I'm missing something here and any help is appreciated ;)
    Thanks in advance!
    null

    // This should work..(good luck)
    static void printData(Document doc)
    NodeList nl = doc.getElementsByTagName("*");
    for (int i=0; i<nl.getLength(); i++)
    XMLNode n = (XMLNode) nl.item(i);
    if (n.getFirstChild().getNodeType()
    == n.TEXT_NODE)
    System.out.println(
    n.getFirstChild().getNodeValue());
    null

  • DOMParser changing characters problem...

    Hi,
    I want to parse a String into an XMLDocument. Therefor I use this code:
      StringReader sr = new StringReader(rset.getString(1));
      DOMParser parser = new DOMParser();
      parser.parse(sr);
      xml = parser.getDocument();The String that will form the StringReader is:
    [text]
    <qarticle xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.qualogy.com:8888/qcontent/xsd/qarticle.xsd" id="1488" lastUpdated="2005-05-12" lastPublished="" author="">
    <pageReference>33,1</pageReference>
    <pageReference>33,36379</pageReference>
    <category>nieuws</category>
    <category>main</category>
    <category>vacature</category>
    <title>titel</title>
    <content>
    <html>
    <body> één
    twee
    drie
    </body>
    </html>
    </content>
    </qarticle>
    [text]
    After the parsing the "é" are changed to "é".
    I tried changing the characterset with
      Charset charset = Charset.forName("UTF-8");
      CharsetEncoder encoder = charset.newEncoder();
      ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(xmlString));
      Charset cs2 = Charset.forName("windows-1252");
      CharsetDecoder decoder = cs2.newDecoder();
      CharBuffer cbuf = decoder.decode(bbuf);
      System.out.println("Door Charset "+cbuf.toString());
      sr = new StringReader( cbuf.toString())But this has no effect..
    Any ideas?

    Here is one way to do it.
    String name = "james"
    Get the first character:
    char first = name.charAt(0);
    Make the char uppercase:
    char first = Character.toUpperCase(first);
    replace the first character:
    StringBuffer nameBuffer = new StringBuffer(name);
    nameBuffer.replace(0, 1, new String(first));
    name = nameBuffer.toString();

  • DOMParser problem

    I have a servlet that does a stock quote lookup from a service and it worked perfectly. Unfortunately this site was for personal use only. The code looked like this:
    DOMParser parser = new DOMParser();
    URL url = new URL("http://www.xignite.com/xQuotes.asmx/GetQuotes?Symbol=" + symbol);
    URLConnection connection = url.openConnection();
    connection.connect();
    parser.parse(new InputSource(connection.getInputStream()));
    Document document = parser.getDocument();
    Node n = document.getLastChild();
    NodeList nodeList=document.getElementsByTagName("Quote");
    I found another service that is free for personal or commercial use and I'm trying to do the same thing. Unfortunately I'm not getting the results. Seems like it's coming back as null. The code is pretty much the same:
    DOMParser parser = new DOMParser();
    URL url = new URL("http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=" + symbol);
    URLConnection connection = url.openConnection();
    connection.connect();
    parser.parse(new InputSource(connection.getInputStream()));
    Document document = parser.getDocument();
    Node n = document.getLastChild();
    NodeList nodeList=document.getElementsByTagName("Stock");
    The interesting thing I found was the difference when looking at the source of the returned pages when hitting them directly with a browser. The first one is nicely formatted and looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <ArrayOfQuote xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.xignite.com/services/">
    <Quote>
    <Outcome>Success</Outcome>
    <Identity>IP</Identity>
    <Delay>0</Delay>
    <Symbol>MSFT</Symbol>
    <Date>6/21/2004</Date>
    <Time>4:00 PM</Time>
    <Open>0</Open>
    <High>0</High>
    <Low>0</Low>
    <Last>28.35</Last>
    <Volume>2500</Volume>
    <Change>0</Change>
    <PercentChange>0</PercentChange>
    <Previous_Close>28.35</Previous_Close>
    <Bid>28.35</Bid>
    <Bid_Size>200</Bid_Size>
    <Ask>28.35</Ask>
    <Ask_Size>100</Ask_Size>
    <High_52_Weeks>30.00</High_52_Weeks>
    <Low_52_Weeks>24.01</Low_52_Weeks>
    </Quote>
    </ArrayOfQuote>
    The second, the one I can't get to work, looks like this, except the <> are actually "& l t ;" and "& g t ;" (no spaces of course....).
    <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="http://www.webserviceX.NET/"><StockQuotes><Stock><Symbol>GETQUOTE?SYMBOL=PKG</Symbol><Last>4.84</Last><Date>6/21/2004</Date><Time>2:48pm</Time><Change>-0.01</Change><Open>4.94</Open><High>4.94</High><Low>4.79</Low><Volume>346739</Volume><MktCap>330.8M</MktCap><PreviousClose>4.85</PreviousClose><PercentageChange>-0.21%</PercentageChange><AnnRange>4.46 - 12.00</AnnRange><Earns>0.49</Earns><P-E>9.90</P-E><Name>WESTELL TECH A</Name></Stock></StockQuotes></string>
    Could that be causing the problem?
    Any suggestions on how to handle it?
    Any help is greatly appreciated.
    James

    Yep, when I look at the source I see the escape
    characters. (how did you get them to show up instead
    of showing up as <>? I tried code and pre tags.)Simple I just put &amp;lt; and so on.
    >
    I've wasted a ton of time messing around with, don't
    suppose you could give me a hint or a little boost on
    how to put it through a filter and substitute the
    escapes.
    I don't know of any prebuilt solution. I think you'll have to write your own filter.
    Perhaps simplest to use ByteArrayInputStream / ByteArrayOutputStream to buffer the data and a simple state based lexical processor.

Maybe you are looking for

  • CJ20N-fields are not getting updated in table PROJ

    Hi all, I have a requirement where I need to transfer the WBS element data created in one system to another using IDOC. The idoc has generated sucessfully and was also sent/processed successfully in the recieving system but fields STSPD and STSPR are

  • Certain keys not working. (backspace, brightness, volume)

    Recently, the keys on my Macbook Air (mid-11') has not been working properly and I'm unsure as to why this happened. I noticed in the keyboard viewer that sometimes when I press the arrow keys or such, the fn keys stick and doesn't unstick until i us

  • HP ProBook 4430s Operating System (Windows 7) wont Start UP)

    Hello I have HP ProBook 4430s which i got not long ago but got a major problem with it which is i have encrypted the HDD with the system always requirement a password or a swipe of finger on the reader up windows booting. Now, if you enter the passw

  • Change Amount in iProcurement Requisition Checkout

    How do I change the Amount field in Requisition checkout. We imported Item Master records with List Price and need to change price during iProcurement Checkout process.

  • Wacom y Teclado No totalmente Ok

    Hola, x que con Photoshop CS, no funcionan las teclas rápidas (Keyboard Shortcuts) ni las flechas de desplazamiento XY, ni las teclas de la tabla de dibujo Wacom. Con Photoshop Elements no hay problema. Gracias