Spry can not  parse xml string

while designind an mvc architecutre in php I found display
data on site was slow so I generate a xml sheet an used spry Data
loading was fast an dproduced and I also performed many operations
like sorting ,galeery making ..etc... but main thing is that I can
not parse a xml string using spry only a xml file can be parsed
my application required to parse xml string

I'm not sure if this is valid in your situation, but OC4J comes with Oracle XMLParser.
Simply use the JAXP API to parse/build/modify XML and the Oracle XMLParser implementation will be used behind the scenes.
If you must use xerces/xalan, try putting the jars in OC4J_HOME/j2ee/home/lib instead.
HTH //Anders

Similar Messages

  • Why i can not  parse xml in client jar successfully?

    If the length of xml is short in 300bytes(maybe another amount),i can read the string of xml from the file in java web start client jar and can parse it exactly. But if length is more than the amount, the xml string will be cut off so that i can not parse it.
    is this a bug of java web start? or my fault?
    display my function below:
    className :FileUtils
    private static byte[] getData(String fileName) throws IOException
    byte[] data = null;
    File file = null;
    try
    file = new File(fileName);
    }catch(Exception ex)
    ex.printStackTrace();
    InputStream in = null;
    if (file.exists() && file != null)
    in = new FileInputStream(file);
    data = new byte[in.available()];
    if (in.available() > 0)
    in.read(data);
    in.close();
    else
    in = FileUtil.class.getClassLoader().getParent()
    .getResourceAsStream(fileName);
    if (in == null)
    in = FileUtil.class.getClassLoader() .
    getResourceAsStream(fileName);
    if (in == null)
    throw new IOException("Can not read the file in
    classpath"+ fileName);
    else
    data = new byte[in.available()];
    if (in.available() > 0)
    in.read(data);
    in.close();
    else
    data = new byte[in.available()];
    if (in.available() > 0)
    in.read(data);
    in.close();
    return data;
    please help me,thank you.
    best regards!

    in = new FileInputStream(file);
    data = new byte[in.available()];available tells how many bytes are available at the moment in the buffer. For smaller files fitting into the buffer it might be okay but for longer ones it is definitively not.
    Use a ByteArrayOutputStream to store the data in and return its toByteArray().
    Or ask the for the file length and allocate a buffer of that size and read into it in one operation: read(byte[] b).

  • Flash can not parse this document.  What's up with this?

    I've never seen this one before.  I'm using CS5
    On windows 7
    I'm developing a component.  I have it in the Components panel.
    But I update it alot, and copy the shim to the prototype file quite often.
    Every now and then I get the error that the file cannot be opened.
    In the output panel is says Flash can not parse this document.
    I have lost access to one of my files.
    If I save as CS4 it always loads.
    So now I'm saving in both formats.
    I don't understand what is happening.
    Is this a bug?  I've checked for updates.
    I have the latest build for CS5 Flash Prof

    Did you use any special character like & ^ $ etc... in any of the components field? Flash CS4 was more lenient with special character compare to Flash CS5. One way to fix CS5 files is to change .fla extension to .zip. Unzip the file, go through the DOMDocument.xml file or xml file inside LIBRARY folder and remove the special character. After that double click the fla file you see inside the zip folder and Resave this file in Flash.
    Quynh
    Flash Pro, QE

  • Flash can not parse this document. - Tried everything: Searching online, Calling Adobe, Online Help

    I have tried everything in fixing this problem. I have searched online with no help. And Google does not fix everything.
    I have tried calling the phone number on the help site numerous times only to be uselessly helped once. I was on hold for a long time with each one only to be unsuccessful in fixing my problem.
    I tried submitting the form on the page when you sign in and 3 times so far I was told to go to this extremely unhelpful devnet, which was all the phone support told me to do which was no help, and they closed all of the support requests.
    Does anyone know how to fix these errors:
    Flash can not parse this document.
    An error occurred opening file '.fla'
    Failed to open document..fla.
    I have converted it to a zip and went through all the files and did not see any error. The only one I did was MobileSettings.xml, which is blank and a new CS5 made file is blank and gives the error as well.
    Does anyone know how to fix this?

    you may have a corrupt fla.  try creating a new directory that has no subdirectories.  move that fla to the new directory.  try and open the fla from the new directory.  if it fails, you have a corrupt fla and, in that situation, i believe the best you can do is to take your last working swf and decompile it to create a working fla.

  • Could not parse xml on Weblogic!

    Hello
    My ear file have aldready deployed successfull on Oracle Appllication Server. And now I try deploy on weblogic but I reiceive the error could not parse xml file. I think It may be the problem with security in weblogic.
    # java.lang.NullPointerException
    # at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
    # at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
    # at org.apache.commons.digester.Digester.endElement(Digester.java:1225)
    # at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
    # at org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
    # at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1809)
    # at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
    # at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    # at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
    # at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:153)
    # at org.apache.commons.digester.Digester.parse(Digester.java:1785)
    # at com.toranto.cmsserver.util.TorantorevisorUtil.createOrganizationOrgEntityIdXml(TorantorevisorUtil.java:3636)
    # at jsp_servlet.__test._jspService(__test.java:119)
    If any one have the same error on weblogic, please help me.
    Thanks in advance.

    Because this ear is ok in oracle apllication server.
    the code here:
    Digester digester = DigesterLoader.createDigester(rulesURL);
    Object rootElement = null;
    InputStream is = null;
    try {
    is = initURL.openStream();
    //3. parse initialization file
    try {
    rootElement = digester.parse(is);
    } catch (SAXException e) {
    String msg = "Digester parse error! Message: " + e.getMessage();
    log.error(msg, e);
    throw e;
    The error cause by rootElement = digester.parse(is);
    So I think in weblogic not accept common-digester.jar to parse xml
    Do you have any idea for this problem.
    Thanks in advance.
    Tang Chow

  • Reproducible Error: Flash can not parse this document.

    I have a reproducible error: I am being forced to fix corrupted flash files that give the "Flash can not parse this document" error. But shortly after I fix the problem, the files are re-corrupted.
    Here is how the problem is reproduced: when I update a custom component that is used in other symbols in the library. When a new version of a custom component symbol added to the library, replacing an older version, the symbols that contained the old symbol are corrupted in the XML. This is tedious and time consuming to work around.
    Is there a way to avoid the problem?
    Has this BUG been reported in this context before?
    How do I report this problem?
    Kevin

    Adobe - Wishlist & Bug Report
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • [CS5] Flash can not parse this document..

    I sat with my flash document open for 12 hours straight actually.. and when I closed it and opened it again I got "Flash can not parse this document".
    So I googled for a solution, found that I could rename the .fla to .zip and unzip it and after 2 hours I found the XML-file that caused the problem, and I even commented out the lines in that XML-file, so I could re-zip it and rename it to .fla again and open it.
    Anyway this happened again and again.. and I got frustrated.
    I think I found out why this happened to me, I copied text from Photoshop into Flash CS5, and this made the document unable to open again after I closed it. It appears that the text I copied contained a "line break" or something, so I copied the text to notepad removed that character and then into flash, and this seems to have worked for.
    Anyone else had this problem?

    Hi,
    We had another user report about this issue where an ETX character in a TLF TextField was causing Flash to corrupt the FLA on save.  I will contact you privately to see if I can get your FLA file to investigate if it's the same issue.
    Thanks,
    Nivesh

  • Constant Problem: "Flash can not parse this document"

    Hi all,
    I have been having an issue with Flash cs5 over the last two weeks. I've tried the few "fixes" that are offered on some of the forums. Zipping the file up and taking apart the xml files, with no helpful results.
    Anyone have any ideas or solutions?
    I am losing lots of work at random times on many different files.
    I uusally get only this error message:
    Flash can not parse this document.
    But today I got this longer one:
    Flash can not parse this document.
    An error occurred opening file '/Users/brad/Desktop/mant episode 3-2c backup.fla'
    Failed to open document./Users/brad/Desktop/mant episode 3-2c backup.fla.
    The following JavaScript error(s) occurred:
    In file "/Users/brad/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    Cannot find file /Users/brad/Desktop/mant episode 3-2c backup.fla.
    Flash can not parse this document.
    An error occurred opening file '/Users/brad/Desktop/mant episode 3-2c backup.fla'
    Failed to open document./Users/brad/Desktop/mant episode 3-2c backup.fla.
    The following JavaScript error(s) occurred:
    In file "/Users/brad/Library/Application Support/Adobe/Flash CS5/en_US/Configuration/Javascript/ObjectFindAndSelect.jsfl":
    Cannot find file /Users/brad/Desktop/mant episode 3-2c backup.fla.

    You may have already seen this, but there was another forum posting of a similar issue here:
    http://forums.adobe.com/message/2816038#2816038

  • Flash CS5 error: Flash can not parse this document

    The amount of times Flash CS has crashed on me and ive lost documents is unbelievable now. Yesterday i closed down Flash CS5 normally (no crash or anything) and today i load my file back up and it says in the output "Flash can not parse this document" with an error saying an error occurred opening file bla bla. I had a backup of the file too ALSO that does not work with the same problem. The last time this happened to me i was told it was because i had a document on the network so ive been working locally on my drive ever since and this problem arises again.
    The project i was working on was important and i want a solution to this problem please.

    Hi guswebb,
    We are currently looking into these issues. Can you please send the file with the bad UIScrollBar.xml to me at [email protected]? Please zip your file and change .zip extension to .zzz before attaching to email.
    Thanks,
    Quynh
    Flash Pro, QE

  • Delphi 4 can not move a string to VARCHAR2 field

    Hi,
    I'm using Oracle 8 version 8.0.4.0.0 and Delphi 4. I can not move a string data (20 characters) over VARCHAR2 field, so I'm also using the BDE (5.11) and ODBC to do this. The message sent by Delphi is 'Operation not applicable'.
    TIA,
    Roberto.

    Hi,
    I'm using Oracle 8 version 8.0.4.0.0 and Delphi 4. I can not move a string data (20 characters) over VARCHAR2 field, so I'm also using the BDE (5.11) and ODBC to do this. The message sent by Delphi is 'Operation not applicable'.
    TIA,
    Roberto.

  • Flash can not parse this document

    I have just had a Flash CS5 file corrupt on me. It comes up with this error message: 'Flash can not parse this document'. This is the second time this has happened to one of my  Flash CS5 files. My colleagues have had problems with their files too and we bought a bit of software called 'Sothink SWF decompiler'. This has been a useful way of getting Flash files back from swf's however this has not worked with my file today. It doesn't work perfectly with other files anyway as it looses all of the library names and layer names, a big problem with a complex file.
    So my questions are
    1. can you help me get my file back?
    2. I don't recall having any problems with SC3 so what has happened in these later version to cause this dreadful problem? One of my colleaguse has had 40% of her files corrupt sinse using CS5.
    3. Then can you tell me whether this problem, that has exsisted in Flash since CS4, will be fixed in CS6 as we will be upgrading when it becomes available?
    4. When is Flash CS6 going to become available?
    Many thanks

    You're all very unlucky to get this problem. I don't know why you guys got the error when transitioning from Flash CS4 to CS5. My transition went perfectly fine, and the game I was developing went through perfectly clean.
    Sorry about your problems
    dikuno <><
    P.S. By the way, that file that was mentioned "textLayout_1.0.0.595.swz", is created whenever you put in TLF text that is edited at runtime via ActionScript and use Runtime Shared Library (RSL) preloading. Did you leave all your text boxes be, or convert them all to TLF?
    P.P.S.S. I was very lucky that I didn't lose my project when I transitioned, as my current game is actually due in around a week. Hoepfully none of your projects that you lost are due in a week.
    P.P.P.S.S.S. Imagine if this happened to Alan Becker while he was working on Animator vs. Animation II (it took him five months).
    P.P.P.P.S.S.S.S. I feel especially sorry for the guy who spent three months on his online multiplayer real-time game. Must be a real shame to lose all your work after all those late nights and sore backs...
    P.P.P.P.P.S.S.S.S.S. If you don't know what Animator vs. Animation is, you should watch the animations. You can find them on YouTube - just look up "Animator vs. Animation" and "Animator vs. Animation 2".
    P.P.P.P.P.P.S.S.S.S.S.S. Sorry about all the PostScripts.

  • Can not construct xml from relative xpath expression: //FormVar

    In version 7.0, it was possible to access Form Variables with the (valid) XPath Expression "//FormVariable".
    In 7.2.2, using this XPath Expression leads to a stalled action, with message: "can not construct xml from relative xpath expression: //FormVar". (see full stack trace below)
    What's wrong? How can I fix this?
    Use of relative expression is very very useful during the development phase!
    Best Regards,
    com.adobe.workflow.WorkflowRuntimeException: can not construct xml from relative xpath expression: //FormVar
    at com.adobe.workflow.pat.service.PATExecutionContextImpl.createNodesForXPathExpression(PATE xecutionContextImpl.java:854)
    at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionCo ntextImpl.java:707)
    at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATEx ecutionContextImpl.java:429)
    at com.adobe.workflow.qpac.set_value.SetValueService.execute(SetValueService.java:72)
    at com.adobe.workflow.engine.PEUtil.executeAction(PEUtil.java:184)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2371)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncInvokeProcessCommand(ProcessEngineBMT Bean.java:512)
    at sun.reflect.GeneratedMethodAccessor709.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:683)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 44)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:72)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:120)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331 )
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:359)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
    at $Proxy285.asyncInvokeProcessCommand(Unknown Source)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandController Bean.java:127)
    at sun.reflect.GeneratedMethodAccessor641.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.j ava:458)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:185)
    at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterc eptor.java:62)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:315)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:148)
    at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
    at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:372)
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at org.jboss.ejb.plugins.jms.JMSCont

    Sorry, i just read my own message in the discussion forum and
    discovered all spaces for formating the XML tags where gone.
    It should look like this:
    [-----xml_type---]
    <doc>
    __<role>
    ____actor
    ____<first>
    ______john
    ____</first>
    ____<last>
    ______bond
    ____</last>
    __</role>
    __<role>
    ____actor
    ____<first>
    ______james
    ______</first>
    ____<last>
    ______smith
    ____</last>
    __</role>
    </doc>
    semantic:
    There are two actors: "john bond" and "james smith"
    Querying for "john bond" succeedes which is correct
    Querying for "james smith" succeedes which is correct
    Querying for "james bond" fails which is correct
    Querying for "john smith" succeedes which is an ERROR!
    contains(xdata, 'actor INPATH(//role[./first = "john" and ./last
    = "smith"])' (= 100 ---> ERROR!)
    bye,
    feri

  • Flash can not parse this document. - CS5 Issue

    I've been working on a project for a couple days now and some were along the line the project file became corrupted. I read this posting: http://forums.adobe.com/message/2812314#2812314 but the problem does not seem to be because of an empty frame.
    The error is the same and says:
    Failed to open document. Name and location of document.
    Flash can not parse this document.
    I was able to go back a few versions and start over but the same thing happened 2 times after this. I've even done some version control but when it gets corrupted there is no way to tell unless I close the file and reopen it. But then its usually too late.
    This last time it happened I was saving it out as a different name and reopened it when I noticed the error. Luckly I still had the original version opened. I knew if I closed it I would've lost hours of work so instead I opened a new document and copied over all my library assets, saved, closed and reopened and it worked fine.  I don't think this has anything to do with an empty frame on a movie clip because I checked all library assets and the new empty file I created worked fine.
    The only thing I can say that is different with this project and the previous projects that I have worked on (just trying to give ideas of what it could be) is that I am using FlashEff and some of my text are TLF Text which I have never used those before and I've never encountered this before.
    Thanks,
    Zef

    Is anyone else having this issue or figured out how to solve it? Its really bad to have to keep saving the file out every 10 minutes and testing to see if it will crash when I go to open it.

  • Flash can not parse this document CS5

    I am working with one of my students that is creating an animation in Flash CS5 he has only worked in Flash CS5 not any other version he saved one day and when he returned the next to work on his file he can not open his file and keeps receiving the error message that "Flash can not parse this document." Is there anyway to save his work or is it gone? There is not a CS4 version to work with this file only CS5

    You're all very unlucky to get this problem. I don't know why you guys got the error when transitioning from Flash CS4 to CS5. My transition went perfectly fine, and the game I was developing went through perfectly clean.
    Sorry about your problems
    dikuno <><
    P.S. By the way, that file that was mentioned "textLayout_1.0.0.595.swz", is created whenever you put in TLF text that is edited at runtime via ActionScript and use Runtime Shared Library (RSL) preloading. Did you leave all your text boxes be, or convert them all to TLF?
    P.P.S.S. I was very lucky that I didn't lose my project when I transitioned, as my current game is actually due in around a week. Hoepfully none of your projects that you lost are due in a week.
    P.P.P.S.S.S. Imagine if this happened to Alan Becker while he was working on Animator vs. Animation II (it took him five months).
    P.P.P.P.S.S.S.S. I feel especially sorry for the guy who spent three months on his online multiplayer real-time game. Must be a real shame to lose all your work after all those late nights and sore backs...
    P.P.P.P.P.S.S.S.S.S. If you don't know what Animator vs. Animation is, you should watch the animations. You can find them on YouTube - just look up "Animator vs. Animation" and "Animator vs. Animation 2".
    P.P.P.P.P.P.S.S.S.S.S.S. Sorry about all the PostScripts.

  • Parse xml string not file

    Hi
    Can anyone help me I am trying to parse a xml file that is in a StringBuffer and not a file.
    Any suggestions would be great.
    Thanks ;>

    You can create a StringReader object from your StringBuffer. Once you have a StringReader object, you can create an InputSource object. Then, you can parse the InputSource with a DocumentBuilder object. I enclosed the code to illustrate. The method printXml is only used to check that the XML string is properly parsed and retrieved.
    import java.io.IOException;
    import java.io.StringReader;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Document;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    public class Parsing
        public static void main(String[] args)
         StringBuffer yourStringBuffer = new StringBuffer("<message>"
                                        +"<header>This is the message's header</header>"
                                        + "<body>This is the message's body</body>"
                                        + "</message>");
         try {
             DocumentBuilderFactory docBuilderFactory = new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl();
             //throws ParserConfigurationException
             DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
             StringReader strReader = new StringReader(yourStringBuffer.toString());
             //throws SAXException, IOException, IllegalArgumentException
             Document doc = docBuilder.parse(new InputSource(strReader));
             System.out.println(printXml(doc)); //check if the XML can be retreived, i.e. it has been parsed successfully
         catch(ParserConfigurationException ex) {
             ex.printStackTrace();        
         catch(SAXException ex) {
             ex.printStackTrace();
         catch(IOException ex) {
             ex.printStackTrace();
         catch(IllegalArgumentException ex) {
             ex.printStackTrace();
        //Convenient method to print a Document object.
        public static String printXml(Document xmlDoc)
         StringBuffer xml = new StringBuffer("************ Xml Document *************");
         print(xmlDoc,xml);
         return xml.toString();
        protected static void print(Node node, StringBuffer strXml)
         int type;
         String elementName;
         Node childNode;
         NamedNodeMap attrs;
         Attr attrib;
         NodeList childNodes;
         strXml.append(System.getProperty("line.separator"));
         if(node == null)
             return;
         type = node.getNodeType();
         switch (type) {
         case Node.DOCUMENT_NODE: {
             print(((Document)node).getDocumentElement(),strXml); //recursive call to browse the tree
             break;
         case Node.ELEMENT_NODE: {
             elementName = node.getNodeName();
             strXml.append("<" + elementName);
             attrs = node.getAttributes();
             if(attrs == null)
              strXml.append(">");
             else {
              for(int i = 0; i < attrs.getLength(); i++) {
                  attrib = (Attr) attrs.item(i);
                  strXml.append(" " + attrib.getName() + "=\"" + attrib.getValue() + "\"");
              strXml.append(">");
             childNodes = node.getChildNodes();
             if(childNodes == null) return;
             for (int i = 0; i <  childNodes.getLength(); i++) {
              childNode = childNodes.item(i);
              if(childNode.getNodeType() == Node.TEXT_NODE)
                  strXml.append(childNode.getNodeValue());
              else
                  print(childNode,strXml);
             strXml.append(System.getProperty("line.separator"));
             strXml.append("</" + elementName + ">");
    }Hope this helps.

Maybe you are looking for

  • How can I navigate through tabs without using the mouse?

    I want to know how to navigate through tabs without using a mouse... just like you can navigate through multiple windows by using <alt><tab> ... because it's extremely annoying when I'm working on something to have to take my hands off the keyboard a

  • How to get the file using file adapter.

    Hi All, We have a requirement, IDoc -> PI -> JMS Adapter. Here the IDoc is in Flat file format. How can i consume Flat file version of IDoc into PI using Sender File Adapter for further processing.. The Flat file version is been created within the SA

  • Problem with SB Live! Value & Dell 8

    I recently reinstalled a fresh copy of XP on my Dell 8200 PC. When I start the PC, the SB Li've! Value card isn't "enabled". I have to go into Device Manager to "enable" it so I have sound. What needs to be done to correct his annoying problem? Thank

  • [b]Run time error in Invoking Servlet to J2ME tool kit[/b]

    I am tried to invoke a servlet to my J2ME tool kit. invoking will happen when user press command button on the mobile phone, but when i do this there were run time error called "Warning: To avoid potential deadlock, operations that may block, such as

  • Itunes is not as user friendly as it seems

    i am not be able to delete unwanted apps from itunes ,its very difficult to sync pics, music and videos from computer to iphone.