Encapsulating Data in XML Output in CDATA tags

Hi,
I have a simple pdf fillable form that I created in LiveCycle Designer ES that saves/submits form data as XML for parsing into a database.  The database parser requires all form data to be encapsulated into CDATA tags inside the XML fieldnames or it will not process it.  Can anyone give some pointers to force the XML output to encapsulate the data inside CDATA tags within the XML fieldnames in my output XML file?  Thanks.
Dan

Hi Dan,
Can you post a sample of what you want the xml to look like.  If I understand correctly, it sounds like a very strange parser.  I would imagine you would have to preprocess the xml on the server.
Regards
Bruce

Similar Messages

  • XML output with multiple tags in one line

    I have not done much XML exporting with SQL. Previously I had just been ending my SQL queries with
    FOR XML RAW ('Company'), ROOT ('Companies'), ELEMENTS;
    and it formatted my query nicely in an XML output. That put every column name as a tag and the cell data within the tag.
    However, now the criteria has changed on me. I need to create a tag with multiple sub tags in it.
    Example: <Location Floor="10" Suite="512" DoorType="Metal">
    But I'll still need other tags to be normal in the XML output such as
    <Address>123 Fake St</Address>
    <City>Springfield</City>
    <Location Floor="10" Suite="512" DoorType="Metal">
    Is there any way to get this XML mixed in the output like above?
    Thank you for any help. 

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • RH9 and XML output - passing build tags

    Hi,
    I've just upgraded to RH9 and have found out that the XML output options are different from RH7 - the RH7 Export Handler "Export Topics to XHTML"  has  disappeared and the other options no longer allow you to retain conditional build tags in the XML output. Instead, the tag is removed (if tag is to be included in compile), leaving the content as is, or the tag and content is removed (if tag excluded).
    As some background, we used the RH7 Export Handler "Export Topics to XHTML" option to strip down the size of our localized content - included tags stay in the XML,exclude tags actually remove content. The XML is reimported into a translatable project where the retained tags (e.g., UserGuide or Help) are used to restrict content to Help or generated User Guide after translation.
    Has anyone any experience of this area of RH9? Woulld you know if this is a bug or by design, or if a workaround is possible? Are there other ways of cutting down projects for translation while having build tag control in your localized versions?
    This breaks my solution for cutting down UK/US help content big time - this has saved a lot on localization costs!
    Many thanks
    Andy Capstick
    [email protected]

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • Wrong data in XML output of dunning letters

    When changing the output format for concurrent program: "Dunning Letter Print from Dunning Letter Generate" to XML the following output occurs.
    Parameters setting:
    Order by "Customer"
    Dunning as of date "14-NOV-2007"
    Letter set low "STANDARD"
    Letter set high "STANDARD"
    Customer low and Customer high are filled with same customer name.
    Dunning method "Staged Dunning"
    Single staged letter "Yes" or "No" (no difference in output!)
    Preliminary "No"
    The following oupt is generated:
    <?xml version="1.0" ?>
    - <!-- Generated by Oracle Reports version 6.0.8.26.0 -->
    - <ARDLP>
    - <LIST_G_CORRESPONDENCES>
    - <G_CORRESPONDENCES>
    <SEND_TO_ORDER>AAAA</SEND_TO_ORDER>
    <POSTAL_CODE1>F_postal_code</POSTAL_CODE1>
    <NLR_TELEPHONE />
    <NLR_FAX />
    <NLR_EMAIL />
    <CORRESPONDENCE_ID>-1</CORRESPONDENCE_ID>
    <CUSTOMER_NAME>F_customer_name</CUSTOMER_NAME>
    <POSTAL_CODE>F_send_to_zip</POSTAL_CODE>
    <DUN_DATE>14-NOV-07</DUN_DATE>
    <LETTER_NAME />
    <SEND_TO_LOCATION>F_location</SEND_TO_LOCATION>
    <SEND_TO_ADDRESS1>F_send_to_address_1</SEND_TO_ADDRESS1>
    <SEND_TO_ADDRESS2>F_send_to_address_2</SEND_TO_ADDRESS2>
    As you can see most of the data fields are "fieldnames" like F_send_to_address_2 while an proper address was expected.
    For all dunning letters I've tested the same output occurs each time.
    However when I change the parameter Preliminary to "Yes" (a list is printed) the output is good. But I want this also for a single dunning letter.
    Does anyone know how to solve this problem?
    Kind regards,
    Koenraad

    Thanks Gareth,
    For your quick reply.
    I've seen a second group (second top level element) and it seems to be the right data.
    This might work, tanks,
    Koenraad.

  • Set character encoding for data template xml output

    Hello everyone, in my data template, I have defined the header as
    <?xml version="1.0" encoding="WINDOWS-1256"?>
    but when output is generated, it is returned as:
    <?xml version="1.0" encoding="UTF-8"?>
    Is there a way for me to force the WINDOWS-1256 encoding in my data template?
    Many Thanks

    This data is read as
    bytes then I am using the InputStreamReader to convert
    to UTF-8 encoding.Don't you mean "from UTF-8 encoding"? Strings don't have an encoding, bytes can. And do you know that SQL Server produces those bytes encoded in UTF-8, or are you just assuming that?
    The stream is then written to a file with the
    extension ".xml". When I go and open the file, I get
    errors stating that the characters were not
    recognized.When you open the file with what? And what errors do you get?
    However, when I open the file with
    Notepad, I can see my xml data.

  • Changing data in XML variable and appending tags in XML  document

    Hi all,
    I am new to weblogic Integrator . can any one help me concerning following problem
    1. I get input XML message to my workflow which I stores in XML variable. after
    some processing i want to change value of one tag in XML stored in XML variable.
    How I can do thaat ?
    2. I have some XML like
    <root>
    <child>
    <a> </A>
    </child>
    <child>
    </child>
    </root>
    and i want to append multiple such tag at run time . how i can do the same
    in wli
    Please let me know your suggestion
    Kiran

    For both cases I suggest you use XSLT.
    Mike
    "Kiran" <[email protected]> wrote in message
    news:3c720cd2$[email protected]..
    >
    Hi all,
    I am new to weblogic Integrator . can any one help me concerning followingproblem
    1. I get input XML message to my workflow which I stores in XML variable.after
    some processing i want to change value of one tag in XML stored in XMLvariable.
    How I can do thaat ?
    2. I have some XML like
    <root>
    <child>
    <a> </A>
    </child>
    <child>
    </child>
    </root>
    and i want to append multiple such tag at run time . how i can do thesame
    in wli
    Please let me know your suggestion
    Kiran

  • How to insert a new line character inside CDATA tag in the source xml data file?

    values for form fields in the xml data file is contained inside CDATA tags which is an Unparsed Format.
    Eg: [CDATA[IBM-01 ~ DSHFSJDSJ ~ FGFGFJ, ~ VA 665665]] delimited by "~" char
    Actual o/p:-
    IBM-01 ~ DSHFSJDSJ ~ FGFGFJ, ~ VA 665665
    Expected o/p is like :-
    IBM-01
    DSHFSJDSJ
    FGFGFJ,
    VA 665665
    live cycle product does not interpret ~ as a newline character. Please suggest which character should be used instead inside CDATA section or if there is any other way to fix this?

    I do not have any problem while using IE's XML parser
    for XML+XSLT merging.That is because IE's parser does not implement XML correctly.
    But when I use JAXP's Transformer object, it does not
    preserve the new lines inside attribute values and
    converts those into white spaces.That is exactly what the XML specifications say should happen.
    >
    ----If you have text that contains newlines, you
    should put it in an element, not in
    ----an attribute.
    That would be my last solution. But I'd really hate
    to change my logic just 'coz JAXP is not capable of
    handling new lines inside attribute values. I may be
    wrong... but If IE can keep those then there has to
    be a way to do the same from server side merging....Sure. Write your own parser with the same bug in it. But you don't have any right to demand that other people supply you with parsers that work incorrectly.

  • ALSB automatically wrapping data in a CDATA tag

    I'm trying to route SOAP messages through ALSB. These messages work like this:
    1) Proxy service listens for incoming SOAP request
    2) Request is logged and routed to a business service (set up as "Any SOAP Service"), which queries the web service
    3) Web service response is logged and passed back to Proxy service and to caller.
    The problem we're having is that ALSB encodes one of the elements of the response XML in a CDATA tag. Without ALSB, there is no CDATA tag in the response.
    Our calling application cannot process the message with the CDATA tag. Why does ALSB do this, and how can I prevent it from doing so without doing an expensive (and annoying to write) XQuery transform that removes the CDATA tag manually?
    Thanks.

    Thanks for the response.
    Both the proxy service and the business service are set up as "Any Soap".
    Here is an example response from the service, as captured by TCPMonitor (before ALSB gets ahold of it):
    <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><findAccountsResponse xmlns="http://service.account.test.com"><findAccountsReturn><?xml version="1.0" encoding="UTF-8"?>
    <lt:Message xmlns:lt="http://xml.test.com/2006/01/common/Message"><lt:Header><lt:CallingApplicationId>AccountService1</lt:CallingApplicationId><lt:CallingApplicationName>Account Service</lt:CallingApplicationName><lt:CallingUser>SYSTEM</lt:CallingUser><lt:MessageId>58C4B701-1AD0-EF69-6A15-001D4D107AA9</lt:MessageId></lt:Header><lt:Body><qr:QueryResponse xmlns:qr="http://xml.test.com/2006/04/common/QueryResponse"><qr:MetaData><qr:ReturnedResults>1</qr:ReturnedResults><qr:MoreResultsExist>false</qr:MoreResultsExist></qr:MetaData><qr:Results><ac:Accounts xmlns:ac="http://xml.test.com/2006/04/Account"><ac:Account><ac:testId>111111</ac:testId><ac:Name>Test School</ac:Name><ac:Address><ac:Line1>Test Road</ac:Line1><ac:City>Hartland Cors</ac:City><ac:StateOrProvinceCode>VT</ac:StateOrProvinceCode><ac:PostalCode>05049 </ac:PostalCode><ac:Country>USA </ac:Country></ac:Address><ac:Programs><ac:Program><ac:Code>1</ac:Code><ac:Description>Test </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>2</ac:Code><ac:Description>Test </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>5</ac:Code><ac:Description>Test </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>6</ac:Code><ac:Description>Test </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>7</ac:Code><ac:Description>Test </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>8</ac:Code><ac:Description>Test </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>9</ac:Code><ac:Description>Other - Unclassified </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>10</ac:Code><ac:Description> </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program></ac:Programs></ac:Account></ac:Accounts></qr:Results></qr:QueryResponse></lt:Body></lt:Message></findAccountsReturn></findAccountsResponse></soapenv:Body></soapenv:Envelope>
    Here's the contents of $body just after the business service receives the response:
    <
    soapenv:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="ht
    tp://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
    nvelope/">
    <findAccountsResponse xmlns="http://service.account.test.com">
    <findAccountsReturn><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <lt:Message xmlns:lt="http://xml.test.com/2006/01/common/Message"><lt:Header><lt:CallingApplicationId>AccountService1</lt:CallingApplicationId><lt:CallingApplicationName>Account Service</lt:CallingApplicationName><lt:CallingUser>SYSTEM</lt:CallingUser><lt:MessageId>58C4B701-1AD0-EF69-6A15-001D4D107AA9</lt:MessageId></lt:Header><lt:Body><qr:QueryResponse xmlns:qr="http://xml.test.com/2006/04/common/QueryResponse"><qr:MetaData><qr:ReturnedResults>1</qr:ReturnedResults><qr:MoreResultsExist>false</qr:MoreResultsExist></qr:MetaData><qr:Results><ac:A
    ccounts xmlns:ac="http://xml.test.com/2006/04/Account"><ac:Account><ac:Life
    touchId>111111</ac:testId><ac:Name>Test</ac:Name><ac:Address>
    <ac:Line1>Test</ac:Line1><ac:City>Hartland Cors</ac:City><ac:Stat
    eOrProvinceCode>VT</ac:StateOrProvinceCode><ac:PostalCode>05049     </ac:PostalC
    ode><ac:Country>USA  </ac:Country></ac:Address><ac:Programs><ac:Program><ac:Code
    1</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>2</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>5</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>6</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>7</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>8</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>9</ac:Code><ac:Description>Test             </ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program><ac:Program><ac:Code>10</ac:Code><ac:Description>Test</ac:Description><ac:Assignment>VJ</ac:Assignment></ac:Program></ac:Programs></ac:Account></ac:Accounts></qr:Results></qr:QueryResponse></lt:Body></lt:Message>]></findAccountsReturn></findAccountsResponse>
    </soapenv:Body>
    As you can see, ALSB is adding the CDATA tag. Our calling service can't translate the data inside of the CDATA tag.
    I sincerely appreciate your help!

  • Wrap XML with in CDATA using webservice

    Hi folks,
    i have a requirement to generate highlighted XML with in CDATA tag using web service for KENEXA integration.
    <?xml version="1.0"?>
    <Envelope version="01.00">
           <Sender>
                 <Id>HRISUSER</Id>                        
                 <Credential>100</Credential>       
           </Sender>
           <Recipient>
                 <Id/>
           </Recipient>
           <TransactInfo transactType="data">
                 <TransactId>5555</TransactId>                    
                 <TimeStamp>2006-02-28 09:22:10AM</TimeStamp> 
           </TransactInfo>
           <Packet>
                 <PacketInfo packetType="data">
                        <PacketId>1</PacketId>
                        <Action>SET</Action>
                        <Manifest>MANIFESTNAME</Manifest>   
                 </PacketInfo>
                 <Payload><![CDATA[<?xml version="1.0"?>
    <Foundation_Data>
           <Foundation_Item>
                 <Code>0001</Code>
                 <Description>Code 1</Description>
                 <Status>A</Status> 
           </Foundation_Item>
           <Foundation_Item>
                 <Code>0002</Code>
                 <Description>Code 2</Description>
                 <Status>I</Status> 
           </Foundation_Item>
    </Foundation_Data>
    ]]></Payload>
           </Packet>
    </Envelope>
    To know more about kenexa integration  Foundation Integrations
    Please guide me with this.
    Regards,
    Srinivasan R.

    Hi folks,
    i have a requirement to generate highlighted XML with in CDATA tag using web service for KENEXA integration.
    <?xml version="1.0"?>
    <Envelope version="01.00">
           <Sender>
                 <Id>HRISUSER</Id>                        
                 <Credential>100</Credential>       
           </Sender>
           <Recipient>
                 <Id/>
           </Recipient>
           <TransactInfo transactType="data">
                 <TransactId>5555</TransactId>                    
                 <TimeStamp>2006-02-28 09:22:10AM</TimeStamp> 
           </TransactInfo>
           <Packet>
                 <PacketInfo packetType="data">
                        <PacketId>1</PacketId>
                        <Action>SET</Action>
                        <Manifest>MANIFESTNAME</Manifest>   
                 </PacketInfo>
                 <Payload><![CDATA[<?xml version="1.0"?>
    <Foundation_Data>
           <Foundation_Item>
                 <Code>0001</Code>
                 <Description>Code 1</Description>
                 <Status>A</Status> 
           </Foundation_Item>
           <Foundation_Item>
                 <Code>0002</Code>
                 <Description>Code 2</Description>
                 <Status>I</Status> 
           </Foundation_Item>
    </Foundation_Data>
    ]]></Payload>
           </Packet>
    </Envelope>
    To know more about kenexa integration  Foundation Integrations
    Please guide me with this.
    Regards,
    Srinivasan R.

  • How to display data containing CDATA tags in JSP/HTML?

    Hi,
    I'm getting some data from a webservice and displaying it in JSP. But some data from the service (like description of an item) contains CDATA tags.
    For ex: This is the data from the webservice.
    <BenefitsIssues><![CDATA[This strategy buys after a very rapid or extreme sell off with the hope that the gap will eventually be filled. <br>Typically, traders following these types of strategies expect some very large losses as downtrends continue.<br>Traders should take only very small positions when trading this strategy and never dedicate more than a small amount of risk capital in aggregate to this strategy.]]></BenefitsIssues>
    where <BenefitsIssues> is the XML tag. My code displays everything within this tag in JSP.
    Code is JSP looks like this.
    <tr><td><%=strategyDescriptor.getBenefitsIssues()%></td></tr>
    Eventually the HTML output of this JSP looks like..
    <tr><td>![CDATA[This strategy buys after a very rapid or extreme sell off with the hope that the gap will eventually be filled. <br>Typically, traders following these types of strategies expect some very large losses as downtrends continue.<br>Traders should take only very small positions when trading this strategy and never dedicate more than a small amount of risk capital in aggregate to this strategy.]]</td></tr>
    Problem is that the page fails to display the first line, "This strategy buys after a very rapid...." and starts displaying only from "Typically, traders following these....", i.e after the occurrence of first <br> tag. Page also displays "]]" at the end.
    How I can get rid of this problem? One way is to remove "![CDATA[" and "]]" from the data received from webservice. I would like to know if any other better solutions is there. Is there any predefined function to remove "![CDATA[" ?
    Thanks in advance for the help.
    -Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    write tha bean class with the return type like. vector,arraylist .
    add the result set values to vector.
    for example
    Vector s = new Vector();
    while(rs.next)
    s.add(rs.getString());
    at last return that s.
    return s;
    // IN Jsp page;
    <ur dropdown come here>
    <%
    Vector Test = new Vector();
    Test = call function contains databasevalues();
    for(int i=0;i<Test.size();i++)
    %>
    <option><%=Test.get(i)%></option>
    <%}%>
    %>
    Message was edited by:
    kamal_shan

  • Parsing errors with CDATA tags using oracle xml parser v2

    I'm using the oracle.xml.parser.v2 parser to combine a
    generated xml document from a database with a static
    xsl file to produce html. Within the xml document, there
    are fairly large CDATA sections (500 lines) which happen
    to contain javaScript.
    Occasionally, I'm getting xml tags in the final html
    document! It seems that the oracle parser pukes
    on a certain type of data within a CDATA tag, and then
    replaces an angle bracket (<) of a tag with a #60. This
    can cause html tags being viewed in the document. At
    first, I thought the amount of JavaScript within the
    CDATA tag was too large for the parser to handle,
    because when I split it up into 2 or more parts the errors
    went away. But, re-arranging the JavaScript (String in the CDATA tag)
    can make the errors disappear. And, if I
    use the Saxon parser to manually combine the xsl with
    the xml, the output is fine. If anyone knows that this is
    a confirmed bug by Oracle, or any other relevant info on
    this, please let me know.

    Hi,
    Your lucky, i've just finished a project that used the oracle parser extensively.
    I think the problem may stem from your xsl. Although your cdata tags may be well formed, in the xsl you might need to escape the text again, this may mean that the xsl needs to print a further cdata tag around the data. This is because the parser (well the version I was using) strips the cdata tags before the transformation happens.
    This is the probably the cause of the nasty html output.

  • Having issue with XML in CDATA tag

    Currently I am having a major issue that I've been dealing with for the last four days unsuccessfully.  I run a search against our data provider (lets say the term searched on is 'foobar').  We get back an XML document on our server along with a list of objects that has the start index of where the hit terms are found and the length from the start of the index (our data provider calculates all of this for us).  We then take that XML document in its exact state as it's given to us from our data provider and wrap it in a CDATA tag and put it into another XML document and pass that to our FLEX app.  The document looks something like this coming back from the server (we're using REST).  This is not the true original document as it was shortened for readability.
    <?xml version="1.0" encoding="UTF-8"?>
    <Document>
    <ID>123456</ID>
    <HITTERMS>
    <HITTERM index="45" length="6" />
    <HITTERM index="105" length="6" />
    <HITTERM index="260" length="6" />
    </HITTERMS>
    <DocumentXML><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <DOC DOCUMENT_ID="123456" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <METADATA>
    <ID>123456</ID>
    <LANGUAGE>ENGLISH</LANGUAGE>
    <SOURCEDATA>1/1/2009</SOURCEDATA>
    <SOURCE>AP</SOURCE>
    </METADATA>
    <ARTICLE>
    <TITLE>Some title with foobar</TITLE>
    <TEXT>
    There would be just standard text.
    Some breaks for example like the start of new paragraphs, but otherwise all the foobar text would be condensed like this.
    </TEXT>
    </ARTICLE>
    </DOC>]]></DocumentXML>
    </Document>
    I've confirmed the XML coming from the server looks exactly as it does above. The issue is for some reason whenever I try to get the text out of '<DocumentXML>' it formats the code in a way that won't work for me since it throws off the offsets of the hit terms and changes the original document.  Whenever I do a .toString() on the XML it puts breaks before each '<' and after each '>' so it spaces everything out inside the CDATA tag.  Now the XML looks like this when turned into a string:
    <?xml version="1.0" encoding="UTF-8"?>
    <Document>
    <ID>123456</ID>
    <HITTERMS>
    <HITTERM index="45" length="6" />
    <HITTERM index="105" length="6" />
    <HITTERM index="260" length="6" />
    </HITTERMS>
    <DocumentXML><![CDATA[
    <?xml version="1.0" encoding="UTF-8"?>
    <DOC DOCUMENT_ID="123456" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <METADATA>
    <ID>123456</ID>
    <LANGUAGE>ENGLISH</LANGUAGE>
    <SOURCEDATA>1/1/2009</SOURCEDATA>
    <SOURCE>AP</SOURCE>
    </METADATA>
    <ARTICLE>
    <TITLE>Some title with foobar</TITLE>
    <TEXT>
    There would be just standard text.
    Some breaks for example like the start of new paragraphs, but otherwise all the foobar text would be condensed like this.
    </TEXT>
    </ARTICLE>
    </DOC>
    ]]>
    </DocumentXML>
    </Document>
    I need to be able to keep the original document as-is in the first example so I can calculate where the hit terms are so that I can highlight them and there are things further down the road that I'm going to need to be able to do so a simple search and replace will not get the job done unfortunately.  Has anyone ever encountered this before or have any idea possibly how to fix this.  Thanks in advance to anyone who can help with this.

    Didn't work.  Now it spaces out all of the XML, not just the document wrapped in the CDATA tag.  Looks like this now:
    <?xml version="1.0" encoding="UTF-8"?>
    <Document>
    <ID>123456</ID>
    <HITTERMS>
    <HITTERM index="45" length="6" />
    <HITTERM index="105" length="6" />
    <HITTERM index="260" length="6" />
    </HITTERMS>
    <DocumentXML>
    <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <DOC DOCUMENT_ID="123456" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <METADATA>
    <ID>123456</ID>
    <LANGUAGE>ENGLISH</LANGUAGE>
    <SOURCEDATA>1/1/2009</SOURCEDATA>
    <SOURCE>AP</SOURCE>
    </METADATA>
    <ARTICLE>
    <TITLE>Some title with foobar</TITLE>
    <TEXT>
    There would be just standard text.
    Some breaks for example like the start of new paragraphs, but otherwise all the foobar text would be condensed like this.
    </TEXT>
    </ARTICLE>
    </DOC>
    ]]>
    </DocumentXML>
    </Document>

  • In XML Output the values of Number column tags are not displayed properly

    Hi,
    Our Client have been using AR Invoice Print Program for a long time and it is heavily customized. Also they are using an old version of the RDF. So we have taken the latest version of the RDF (RAXINV.rdf) for Oracle Apps 11.5.10.2 by raising a SR and implement Client's old RAXINV.rdf into it.
    All was ok, but when we are running the program, the XML Output did not generate properly. For the Q_INVOICE query (G_ORDER_BY, G_INVOICE and G_INV_TERM group), the value of some of the scaler number columns are not appeared properly. The tags are coming correctly, but the value is appearing as '*', instead of the correct value. We have checked in the RDF Level (By putting srw.message and check in the log file) that those columns are having proper value. So there is no issue with the RDF.
    But because of the above mentioned problem, the some of the PDF output field values also is not generated correctly.
    I think that because of the lexical parameters which was implementing the Q_INVOICE query (&COMMON_QUERY) this issue is coming. Because the issue is only in the Q_INVOICE query group (G_ORDER_BY, G_INVOICE and in G_INV_TERM group) not in any other query group.
    There is no problem with the scaler character columns. The issue is only with the number columns.
    Also we have checked that if we hardcode the value of the number columns in the above mentioned lexical parameter, this problem doesn't appear.
    If we put TO_CHAR function to those number columns in the lexical parameter (COMMON_QUERY), then this issue get solved. But we can't do it because of performance issue and also Client won't approve it.
    Please help.
    With Thanks and Regards

    I don't know how to read the code you pasted or I would have checked this myself.
    Do your fields in the internal table reference dictionary objects or elementary types? If not using dictionary types, the column names will be blank by default. If you can't change your fields to be dictionary types, you can try this to change the column names:
    I made a method inside my local class to add the names:
            call method set_colname
              EXPORTING iv_tab = alv_tab
                        iv_colid = 'xxxx'  "fieldname from the table
                        iv_stxt = text-t54
                        iv_mtxt = text-t55
                        iv_ltxt = text-t55.
    METHOD set_colname .
      data:
              alv_cols type REF TO cl_salv_columns_table,
              alv_col type REF TO cl_salv_column.
      TRY .
    *... Change fieldnames
            call METHOD iv_tab->get_columns RECEIVING value = alv_cols.
            call method alv_cols->get_column EXPORTING columnname = iv_colid RECEIVING value = alv_col.
            IF iv_stxt <> ''.
              CALL METHOD alv_col->set_short_text EXPORTING value = iv_stxt.
            ENDIF.
            IF iv_mtxt <> ''.
              CALL METHOD alv_col->set_medium_text EXPORTING value = iv_mtxt.
            ENDIF.
            IF iv_ltxt <> ''.
              CALL METHOD alv_col->set_long_text EXPORTING value = iv_ltxt.
            ENDIF.
       CATCH cx_salv_not_found.
      ENDTRY.
    ENDMETHOD. "set_colname

  • Using CDATA tags in XML program and parsing to J2ME

    Hi,
    Can anybody tell me how to use CDATA tag in a xml file and parse it to my J2ME code. is there any sample code available for this? I want to use this CDATA tag for sending Binary data. plzzzzzzz Help....!

    I think what you want is to parse a CDATA text from a xml file and let this text to execute.
    Very innovative idea!
    If I am right, I think you might mix some concept.
    Java code need to be changed to ByteCode before pased to the JVM. Furthermore, Java ME code must be verified before downloading to your machine.
    I figure that your attempt is impossible.

  • CDATA tag in xml

    Does anyone know if CDATA tag is supported for values.  For example can XI do the following;
    <vendor-name><![CDATA[MOON FREIGHT LINES, INC.]]></vendor-name>
    The vendor name value is "MOON FREIGHT LINES, INC." which is included in the CDATA tag.  Can XI parse correctly and give me the correct value? We don't have a system in place yet and i can't test it out.
    Thanks.

    Hello,
    In SAP - ABAP, I am outputing a xml file. In that i am outputing the following:
    <position> <5 </position>.
    But as '<5' will not pass directly into the xml phraser, i have used the following.
    <position><![CDATA[<5]]> </position>.
    But when I am opening the file in xml editor it is showing me the following output.
    "<position>&lt;![CDATA[&lt;5]]&gt;</position>."  where all the < symbols are replaced by&lt; and > symbol with &gt; for CDATA section.
    But when i am opening the file in internet, it is giving me the correct output as :
    <position><![CDATA[<5]]> </position>.
    I want the above output  ( <position><![CDATA[<5]]> </position>.) to come in xml editor.
    Could anyone please guide me in this regard. It is very urgent.
    Thank you .
    Edited by: Sangeeta Golha on Feb 1, 2008 5:07 PM
    Edited by: Sangeeta Golha on Feb 1, 2008 5:10 PM

Maybe you are looking for

  • Facebook Safari jitter?

    Whenever I hit Facebook's login page, Safari's display jitters very, very briefly. Facebook seems to be the only page that has this effect. Is this a sign of things to come, or is it just a problem with Facebook's login screen?

  • Order Address per Line Item in OLA

    Hi, hoping someone can help with an OA/OLA query. One of our Buyers would like to use a different ordering address for one of the line items in an OLA.  Is there any way to set up an Ordering Address per line item in the OLA?  Or does she need to cre

  • All my Skype to Go Numbers Changed

    Hi I have saved my skype to go numbers in my cell. Recently, I went to call one of these numbers and was told that the call would not connect (and asked for pin etc.). When i logged in to Skype I saw that all my Skype to Go numbers had changed - it l

  • Saving image as JPG

    Hi all, after editing my photo in Photoshop I save as JPG but later when I open it, it automatically opens Photoshop everytime which I don't want to do.  What am I doing wrong? Thanks so much for your advice. Louise

  • Business area is getting populated automatically

    Hi, I came across a situation where some time Business area is getting populated automatically in some of the Maintenance order. I have checked the reference object, cost centre, Plant level, WBS element etc, we have not maintained the business area