How to format a not well formed xml into well formed

Hi,
Here's what I'm trying to do: I have a build a report based on query results. In the query result, one field is a CLOB (which contains XML. The XML contains two tags - "description" and "count"). I want to read (&parse) the XML and store the "description" and "count" in a hashmap. But when I try to parse it, I end up in an error. I'm currently  using XmlParse but I got an error "The markup following the root element should be well formed."  I immediately used IsXml() to find out if the XML I am reading is well formed.  And the answer is "NO".
Could someone help me in converting it into a "well formed" one?
(This is what I've tried: I appended "<?xml version="1.0" encoding="UTF-8"?>" to the XML I'm reading coz it was missing this.  I later used XmlFormat to convert the XML into a string format.  But IsXML tells me that even this is not well formed.)
Thanks much for your help!

XML encodes information is a specific way. Well-formedness determines whether or not a string is an XML document in the first place.
However, as well-formedness can be broken by any arbitrary number of factors, it is in general impossible to automate the repair process to recover a well-formed XML document. You have to do it manually, using an XML or a text editor.

Similar Messages

  • How come F10 does not put my clip into the timeline ?

    How come F10 does not put my clip into the timeline ?
    When I pressed F10, the sound icon appears instead.
    Am I missing out something ?
    Thanks

    skalicki` wrote:
    Technically, to make the function keys work you don't need to change the second box to dash. I don't know why I gave that advice, but it isn't necessary. I guess I said that simply because that's what I have it set to.
    The reason there are two boxes is so that you can set Exposé to using both the function keys and the mouse. For example, if I have +All Windows+ set to F9 and Secondary Mouse Button, then it will show all open windows if I click F9 or right-click. That is why you actually don't need to have the second boxes for any of these set to dashes. You could set them to your mouse buttons, or if you wanted you could set the first box of any of these to any function key, as long as it isn't set to the same one as the key you want to use for your shortcuts within FCE.
    I hope this made sense, I realize that I might not have explained it very clearly.
    Message was edited by: skalicki`
    Thanks skalicki, I think I got it. You've been of great help !!

  • How to insert application form id into the form template

    Hi,
    Is there a way to set the application form id into a form template designed from the LiveCycle Designer? Here is the detail description of my question:
    (1) I am using LiveCycle Design to design a form template.
    (2) I go to our application to deploy this form template. During the process, a form id will be generated and it will be associated with this form template.
    (3) I would like to insert this generated form id into the form template, so that later when user fills out and submits the form, I will know what's the form id the submitted data belongs to.
    Appreciate you kind help!!!

    Hi Justin,
    Yes. The form ID will be generated by our application during the form deployment process (after the form is designed, it needs to be deployed to our application before it can be used.). So I was hoping there is a way to set the form ID into the form template design at that point. So that later when end user fills out and submits this form, I will know what form ID it is related to.
    If I cannot do this at the deployment point, one way I can think of is to do it at the time when end user is downloading the form. I can return a "rendered" form (instead of opening up the form template directly) with the form ID information in it. But that means for every single form user opened we need to render it at run time to fill in the form ID, which is not performing and what I was trying to avoid.
    Thanks for your help!
    Anita

  • In Acrobat 9 Pro, How do you split xml into multiple forms?

    Greetings,
    I'm new to Acrobat & xml in general. I'm trying to take one data file containing multiple copies of xml forms for importing in to Acrobat Pro. It keeps failing with the second xml header. The following is a sample of the data file.
    <?xml version="1.0" encoding="UTF-8" ?>
      <fields>
        <CaseNumber>00-12345</CaseNumber>
        <SendToNameAndCareOf>Somebody
        .</SendToNameAndCareOf>
        <SendToAddr>Address here</SendToAddr>
        <SendToCityStZip>City, St, Zip</SendToCityStZip>
      </fields>  
    <?xml version="1.0" encoding="UTF-8" ?>
      <fields>
        <CaseNumber>00-67890</CaseNumber>
        <SendToNameAndCareOf>Somebody else
        </SendToNameAndCareOf>
        <SendToAddr>Another Address</SendToAddr>
        <SendToCityStZip>City, St, Zip</SendToCityStZip>
      </fields>
    Is there anyway to accomplish this using the basic functionality of importing xml?

    Actually Graffiti it might be able to be done via 'touchup tool' without creating a new PDF. Assuming of course a photo editor like Photoshop is present.
    To the OP: Acrobat is intended as final destination format and not really suitable for editing (although minor changes can be made with the full Acrobat product). It's always best to do the changes to the original document and then make a new PDF making sure you acknowledge proper version control procedures. Changing the PDF means that you now have a PDF that doesn't match the original document.

  • How do I import multiple responses from outside Forms Central into a form at one time?

    I created a survey in Word, used Adobe to make into a fillable pdf, emailed it to the prospective respondents, and I have received many emailed responses.  I have uploaded my original form to Adobe Forms and now I would like to upload those responses into Forms Central to make use of its reporting capabilities.  How can I import all of my repsonses into Forms Central?  

    Hi,
    I don't mean to hijack this thread, but Randy had mentioned a bug in Chrome regarding copy/paste. I've been searching for hours for a solution, but nothing on Google Chrome and c/p for the fillable area of a pdf document. Google forums have not yielded anything about fillable forms, so I'm hoping an Adobe forum would be more knowledgable.
    I have a fillable form online where the fillable area cannot be pasted into or copied out of while using Google Chrome. Note that the text already on the document can be c/p'ed. You can see it here: http://www.centralcallegal.org/eictaxcampaign/Coverform.pdf   This is a form for our self-help computer kiosks which use Google Chrome. The form is designed so users can copy and paste their own info into the cover sheet so there won't be any typos.
    Without looking at alternative methods of using the form (i.e. saved on desktop), is there a way to fix this copy/paste issue? It is definitely a Google Chrome issue, as c/p works fine in IE and Mozilla. Thank you.

  • HT1296 how can I sync notes on my iPhone into my Outlook

    How can I sync Notes from my iPhone 4S into Outlook? 

    OS X has no notes app, notes are synced to the Mail app. Mail>Reminders>Notes.

  • How to import Lotus Notes or Outlook calendar into iCal ???

    Is there a way to import calendar data from either Lotus Notes or Outlook calendar into iCal ? Is there a generic data type file that I must first get the calendar file into before importing into iCal ?

    The file must be .ics. I used to simply use Missing Sync to get my calendars synced up, however it's not yet supported in Leopard.
    So, in order to get my office Outlook data over to Ical, I simply used the following "macro"
    http://sourceforge.net/project/showfiles.php?group_id=136194
    Simply follow the instructions...it worked well for me. all my work data got transferred over.

  • How do restore my notes from Yahoo email into my iPhone5?

    For the third time I have lost my Notes from my iPhone 5. I found them stored in my Yahoo folder. I need these notes to stay on my phone, how do get the note back into my phone?

    Thank you so much!! This resolved my issue.

  • How to format the text in an XML file

    This should be a fairly easy one. A fairly easy one that seems to be hard to actually find.
    When I write out the XML file, it's all on a single line. Not a huge problem all things considered (it works), but an annoying one.
    Here's the a snippet, to show what I'm doing. There's not enough information for this to actually compile, if one is so inclined, just comment out a bunch of things and have it write out aribitary data.
    Is this a case where I just need to manually write the formating myself?
    public void saveXML(File file){
            try{
                Document doc = DocumentBuilderFactory.newInstance().
                    newDocumentBuilder().newDocument();
                //give that document a root
                Element root = doc.createElement("root");
                doc.appendChild(root);
                Command[] command=getCommands();
                for (int index=0; index < command.length; index++){
                    Element element = doc.createElement("Command");
                    root.appendChild(element);
                    //get the name of the parser class this command should use
                    String pName=command[index].getParser().getClass().getName();
                    //remove everything but the last word
                    pName=pName.substring(JavaMUServer.PARSER_PATH.length());
                    //set the information.
                    element.setAttribute("name",
                        command[index].getName());               
                    element.setAttribute("parser",pName);               
                    element.setAttribute("method",
                        command[index].getMethod().getName());
                TransformerFactory tFactory =TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
                DOMSource source = new DOMSource(doc);
                StreamResult result = new StreamResult(
                    new FileWriter(file));
                transformer.transform(source, result);
            }catch (Exception e){
                e.printStackTrace();
        }

    Well, that helped quite a bit. Seems however when I set the indent property, rather then indenting it just makes new lines. Rather counter intuitive.
    Here's the slightly modified code (changed one line really. Tried setting a few different properties.)
    public void saveXML(File file){
            try{
                Document doc = DocumentBuilderFactory.newInstance().
                    newDocumentBuilder().newDocument();
                //give that document a root
                Element root = doc.createElement("root");
                doc.appendChild(root);
                Command[] command=getCommands();
                for (int index=0; index < command.length; index++){
                    Element element = doc.createElement("Command");
                    root.appendChild(element);
                    element.appendChild(doc.createElement("sample"));
                    //get the name of the parser class this command should use
                    String pName=command[index].getParser().getClass().getName();
                    //remove everything but the last word
                    pName=pName.substring(JavaMUServer.PARSER_PATH.length());
                    //set the information.
                    element.setAttribute("name",
                        command[index].getName());               
                    element.setAttribute("parser",pName);               
                    element.setAttribute("method",
                        command[index].getMethod().getName());
                TransformerFactory tFactory =TransformerFactory.newInstance();
                Transformer transformer = tFactory.newTransformer();
                transformer.setOutputProperty("indent", "yes");
                //transformer.setOutputProperty("method", "xml");
                DOMSource source = new DOMSource(doc);
                StreamResult result = new StreamResult(
                    new FileWriter(file));
                transformer.transform(source, result);
            }catch (Exception e){
                e.printStackTrace();

  • How to format large number field in XML so that it appears as is in Excel

    Hi
    I need help in formating the number field so that the number displays completely in Excel.
    Ex: 12345678889453 and this appers in Excel as 1.23457E+13
    Please let me know if you have any idea on this.
    Thanks

    Hi friends,
    Thanks to all of you that you all have replied my question and given your answers.
    Thanks to all of you specially Alpana Phapale, Wallie Chang, Poonam Thorat and Raghavendra Gadhamsetty, the answers given by you is the perfect one may be in different ways and only one can be used by me. But your answers were exactly correct.
    Thanks to Asha Lund, your answers is also correct but the result as per my report should be in figures and not in words.
    Whatever it may be but for repling thanks to you too.
    Please be always with me, I am very new to Crystal Report and just learnt by my own as my Boss ordered me to do this and I have to make about 50 reports within 15 days. I think the day will start from today.
    Well friends thanks a lot again for all your effort.

  • ..how do you group fields together in xml into one field? (sql:- address_line1||', '||address_line2||', '|| )

    afternoon Gurus.
    I take it by the errror messages produced I'm not able to do this..
    select ....
    address_line1||', '|| address_line2||', '|| address_line3||', '|| city|| Supplier_Address
    from...
    ..in my XML Publisher xsl Data Template file..
    Caused by: org.xml.sax.SAXParseException: <Line 13, Column 20>: XML-20201: (Fatal Error) Expected name instead of |.
    So how can I acheive putting several fields into one like you can in SQL?
    THanksForLooking..
    Al

    Untested, but try the following:
    SELECT DISTINCT
           fnd.CREATION_DATE
          ,fnd.user_name
          ,fnd.start_date
          ,per2.last_updated_by
          ,per2.last_update_date
          ,per2.employee_number
          ,per2.EMAIL_ADDRESS
          ,per2.full_name
          ,fnd.LAST_LOGON_DATE
    FROM fnd_user fnd
    where fnd.End_Date is null
    left outer join per_people_f per2 on (     fnd.employee_id              = per2.person_id
                                           and SUBSTR(per2.LAST_NAME, 2, 6) not like 'some characters'
                                           and per2.EMAIL_ADDRESS           LIKE '%priddle%' )
    ORDER BY 2 ASC;Investigate multiple outer joins using the LEFT OUTER JOIN syntax
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/queries006.htm#SQLRF52354

  • How to keep value in arrayList and print into matrix form.

    compute all primes less than N, and display the results
    step by step .summarize the computed results in an easy-to-read format.(matrix)
    The program starts by asking for an integer value N from the user. Print out the initial matrix
    of numbers from 2 to N.
    To find all primes less than N, begin by making a table of integers from 2 to N.
    Find the smallest integer i, that is NOT prime and NOT crossed out. Mark i as a prime
    number and cross out 2i, 3i, 4i, ?, ni N.
    At this point, program should print the intermediate results in a matrix format, and pause
    until any key is pressed before proceeding.clear screen every
    time prior to printing the intermediate results (in the matrix format).
    When i > N , the algorithm terminates. screen is cleared once again,
    before the program prints the final results in the matrix format.
    Following are the requirements for the matrix format:
    - The matrix consists of 10 columns
    - The number of rows varies, depending on the input N
    - Initial matrix: The program prints an empty string in place of 1
    - Intermediate matrix: The program prints values for all prime numbers and numbers
    that are not crossed out. The program prints an empty string for each crossed-out
    number.
    Final matrix: The program prints only the prime numbers less than N
    P.S I want to write at least 3 classes

    This is my new first class but it have an error
    import java.io.*;
    import java.util.*;
    public class ArrayListExample2 {
        public static void main(String[] args)throws IOException {
            ArrayListExample listExample = new ArrayListExample();
            listExample.doArrayListExample();
        public void doArrayListExample()throws IOException {
              BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
             System.out.print("enter limit : ");
              int max=Integer.parseInt(br.readLine());
              System.out.println();
            int counter = 2;
            List listA = new ArrayList();// int list
            //List listB = new ArrayList(); //string list
            for (int i = 2; i <= max; i++) {
                System.out.print("\t" + i );
                listA.add(new Integer(i)); //???????2-max ??listA
              int count =0;
              BufferedReader en = new BufferedReader(new InputStreamReader(System.in));
              while(count<Math.sqrt(max))
                     // max may be number of input or size of array list
              //BufferedReader en = new BufferedReader(new InputStreamReader(System.in));
              System.out.println ("Please enter");
              en.readLine();// wait for enter
              listA.removeNotPrime();
              count++;
         public void removeNotPrime()// what parametor?Need?
              for (int i=0;i<Math.sqrt(max)))
                   int prime = listA.get(i);
                        for (int j=i+1;i<=listA.size();j++)
                         int val = listA.get(j);
                        if (val%prime==0)
                        listA.remove(j);
    This part for test
            for (int i = 0; i <= max; i++)  // printttttttttt
                //System.out.print("\t" + i );
                   System.out.print("\t" + listA.get(i);
                // call class printMatrix;
    }

  • How to configure to not open pdf files into Internet Explorer 10?

    I have disabled the adobe complements from Internet Explorer and the preferences of Adobe to don't show the pdf files in internet but it keep also doing it.
    How can configure the computer? I am using Internet Explorer 10, Adobe Acrobat 8.1 and Adobe Reader XI
    Thanks for your help

    Hi BG-Zic,
    Acrobat 8 and Reader 11 is not a recommended configuration to install on one machine.
    Please check the KB : http://helpx.adobe.com/acrobat/kb/acrobat-product-interoperability-install-remove.html
    For disabling the pdf view in Browser please refer the KB : http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html
    There's also a related registry entry :
    1.Click "Start," type "Regedit" into the Search box and press "Enter."
    2.Click "Yes" if a User Account Control prompt appears.
    3.Navigate to the ""HKCU\Software\Adobe\Acrobat Reader\[version]\Originals\" key in the left pane of the Registry Editor, where "[version]" is the currently installed version of Adobe Reader.
    4.Create the bBrowserIntegration value if it doesn't exist in the right pane by clicking "Edit," "New." Click "DWORD Value," type "bBrowserIntegration" and press "Enter."
    5.Double-click the bBrowserIntegration value in the right pane.
    6.Type "0" into the value data box and press "Enter."
    Hope this helps.
    Regards,
    Ravi.

  • How to read a Value from Excel Cell into Oracle Forms 10g with Java

    Did any one Implamented a Java PJC to integrate Excel on Oracle Forms 10g?
    I Open Excel Applikation.
    Open a File like c:\import_test.xls
    read a number 05 from A:1 (i get it as return value).
    Save a number in a variable in Forms 10g
    Can any one help my please?
    Thanks

    why don't you use webutil.
    it has package client_ole2 which allows you to have programmatic interface with excel application.
    this is especially useful if the excel to be read is available in the client.

  • How to import form results into another form

    I'd like a simplified online membership form at acrobat.com to collect new member information, then have an employee in another office be able to import that record into another, more graphical PDF form that would be printed and go in the new member welcome pack that would be mailed out. The fields would be the same but the design would be different. Is there a way to do that?

    We currently don't support a workflow like this. I can't think of a work around either. Sorry we couldn't help more...
    Randy

Maybe you are looking for

  • How can I create a portal server authentication user with a batch

    hi, I am trying to import users into the portal server emulating the create user procedure as plumtree. What I cannot understand at the moment is which classes are involved in the sequence of creating a user. the problem starts from the fact that I h

  • Report to Verify Pending Aproval of Time sheet on CATS

    Hi Experts, Earlier Manager has faced some problem in approving Time sheet because of some missing authorizations, we have fixed that now we have to verify if he has any time sheets still pending for his approval. We use Cats Applicatiosn, all the em

  • Difference between BPM, BRM, and BRF

    Hi Experts, I need your suggestion. I am in a confution to learn Business Rules. When I am searching for SAP Business Rules in net, i got Business Rules Management(BRM), Business Rules Framework(BRF) and Business Process Management(BPM). My core modu

  • What are the overall responsibilities of a support functional HR consul

    What are the overall responsibilities of a support functional HR consultant? Dear  Member please read the forum Rules before posting the question Welcome and Rules of Engagement

  • Q re returning data to LV via pointer to DLL

    Hello, I have a LabView 7.0 program that calls a shared library written in C and compiled using LabWindows/CVI 7.0. The DLL returns results to me by writing them into memory that I provide from LabView. In LabView, I wire a control to the input side