Want PI to ignore Cdata tags....

Hi folks,
Just need your inputs,
Can PI ignore Cdata tags in Messages?

Hi,
Please have a look at the following links and see if it helps you.
CDATA tag in xml
Handling special characters in an IDOC to XML interface using BC
Best Regards

Similar Messages

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

  • Firefox 4 displays closing CDATA tag ]] on the screen for object tag

    With the recent Firefox 4 version. I am facing following problems with the website I am developing:
    1. For svg objects inside html page with Firefox 4 it now displays closing CDATA tag on the screen.
    It only displays ]]> on the screen.
    I have object specified using
    <pre><nowiki><object class="svgobj batteryGraphObj" type="image/svg+xml">
    <![CDATA[
    <?xml version="1.0" encoding="UTF-8"?>
    ]]>......
    </object></nowiki></pre>
    2. When the svg is added using div tags it doesn't display on the screen if the width is more than browser width. It was working on Firefox 3.6 but have stopped working with 4. We had a overflow specified with scrolling effect on the screen if user wants to view next section.

    A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.<br />
    The helpers at that forum are more knowledgeable about web development issues.<br />
    You need to register at the mozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=25

  • 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

  • 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

  • Changing Color of what is between the CDATA tags

    Hi.. I am doing a lot of code replacement and it would be
    really cool to be able to have the contents of the cdata tags a
    different color.
    I know you can change tag colors in the codecoloring.xml file
    , but no clue how to add what I want.
    <calloutcopy><![CDATA[My colored text here so I can
    see what to change easier]]></calloutcopy>
    basically the <![CDATA[ ]]> tag to be a different color
    Thanks
    Dax

    Dax,
    You can change the color of the *contents* in the Code
    Coloring
    Preferences. Select the XML Document Type, then click "Edit
    Coloring
    Scheme". Set the color of the "XML Text" style.
    The data for the Code Coloring feature is stored in XML, for
    which
    "<![CDATA[" has a special meaning, so there is currently
    no way to
    change the color of the CDATA tag itself.
    Hope this helps,
    Randy
    > I am doing a lot of code replacement and it would be
    really cool to be
    > able to have the contents of the cdata tags a different
    color.
    >
    > I know you can change tag colors in the codecoloring.xml
    file , but no clue
    > how to add what I want.
    >
    > <calloutcopy><![CDATA[My colored text here so I
    can see what to change
    > easier]]></calloutcopy>
    >
    > basically the <![CDATA[ ]]> tag to be a different
    color
    > Thanks

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

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • How to remoce CDATA tag from XSLT mapping

    Hi Sharma,
    Please remove all CDATA elements from your code and execute so that you will get expected output. Because CDATA term we will use while writing
    DTD for your source xml, so this is not required in XSL Program.  check below code....
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
         <xsl:template match="/">
              <DlrDiscItemWise>
                   <DlrDiscItemWiseXML>
                        <xsl:text disable-output-escaping="yes"></xsl:text>
                        <xsl:copy-of select="."/>
                        <xsl:text disable-output-escaping="yes"></xsl:text>
                        <xsl:text disable-output-escaping="yes"></xsl:text>
                   </DlrDiscItemWiseXML>
              </DlrDiscItemWise>
         </xsl:template>
    </xsl:stylesheet>
    thanks,
    madhu

    Thanks Madhusudan, but i doubt it wil work by removing all CDATA tags. I removed and this is the response. Please check
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
         <xsl:template match="/">
              <DlrDiscItemWise>
                   <DlrDiscItemWiseXML>
                        <xsl:text disable-output-escaping="yes"></xsl:text>
                        <xsl:copy-of select="."/>
                        <xsl:text disable-output-escaping="yes"></xsl:text>
                        <xsl:text disable-output-escaping="yes"></xsl:text>
                   </DlrDiscItemWiseXML>
              </DlrDiscItemWise>
         </xsl:template>
    </xsl:stylesheet>
    result
    <?xml version="1.0" encoding="UTF-8"?><DlrDiscItemWise><DlrDiscItemWiseXML><ns0:MT_DlrDis_Sender xmlns:ns0="http://MTSINDIA/TC/DealerDiscount"><ITEM><nDlrAddEdit>1</nDlrAddEdit><nItemCode>1001000080</nItemCode><nItemDisc>15</nItemDisc><dtDiscFromdt>11/May/2010</dtDiscFromdt><dtDiscToDt>31/Dec/2010</dtDiscToDt><nItemAddDisc/><dtAddDiscFromDt/><dtAddDiscToDt/><nDlrTypeCode/><nItemDisQtyMulti/><nItemDiscQtyFree/><sItemDiscPerAmt/><sItemDiscType/><nDlrCode>1001</nDlrCode><nCircleCode>4</nCircleCode></ITEM></ns0:MT_DlrDis_Sender></DlrDiscItemWiseXML></DlrDiscItemWise>
    But in target structure I am not able to see it as single string.
    Please suggest

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

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

  • ALSB 3.0 - Problem adding CDATA Tags using XSLT

    Hi all,
    I am having a problem using ALSB to insert CDATA tags into some XML.
    Here's a simple example of the stylesheet I am using:
    &lt;?xml version="1.0"?&gt;
    &lt;xsl:stylesheet xmlns:xsl="[http://www.w3.org/1999/XSL/Transform]" version="1.0"&gt;
    &lt;xsl:template match="/"&gt;
    &lt;a&gt;
    &lt;xsl:value-of disable-output-escaping="no" select="'&lt;![CDATA['"/&gt;
    &lt;b/&gt;
    &lt;xsl:value-of disable-output-escaping="no" select="']]&gt;'"/&gt;
    &lt;/a&gt;
    &lt;/xsl:template&gt;
    &lt;/xsl:stylesheet&gt;
    In XMLSpy, this produces the following output:
    &lt;a&gt;
    &lt;![CDATA[
    &lt;b /&gt;
    ]]&gt;
    &lt;/a&gt;
    Which is correct.
    However, when running the same transformation as an XSLT in ALSB, I get the following output:
    &lt;a&gt;
    &lt;?javax.xml.transform.disable-output-escaping?&gt;
    & lt ;
    &lt;?javax.xml.transform.enable-output-escaping?&gt;
    ![CDATA[
    &lt;b /&gt;
    &lt;?javax.xml.transform.disable-output-escaping?&gt;
    & gt ;
    &lt;?javax.xml.transform.enable-output-escaping?&gt;
    &lt;/a&gt;
    From some digging about online, I've found that the
    "&lt;?javax.xml.transform.enable-output-escaping?&gt;" elements are
    processing instructions.
    Has anyone else had similar issues?
    Or more importantly, has anyone fixed this?
    Cheers,
    Dave
    Edited by: DaveFeeder on 10-Dec-2008 12:36

    I've found a solution to this now.
    I've used the fn-bea:serialize XQuery function to serialized the data, having the same effect as manually trying to insert the CDATA,and if anything, is a neater solution.
    Cheers
    Dave

  • Is there a way to identify a thread you want to return to without tagging?

    Is there a way to identify a thread you want to return to without tagging?
    I will try to explain what I mean.
    Let say someone asks a question and you are curious at what people may suggest as solutions.  The interest could range from simple curiosity to "oh, I don't know how to do that, but would like to learn", or whatever reason that would cause someone to revisit a thread. 
    But the interest is weak enough that you do not want to subscribe to the discussion.  And the topic is not something you want to tag because it is an unusual thread that is unlikely going to re-occur, and you are not sure if you will or will not revisit after a solution is posted or the discussion goes a certain way. 
    Another example is if the question is interesting, you do not want to mark it because there is no answer / solution yet and you are curious if anyone would ever provide a solution, so you do not want to tag it and a subscription would be useless if no one replies.
    OR
    Maybe it is a hot topic of the day / week and that's it..  You would not revisit at a later date.
    But for the moment, you want to easily find it during the day or have a reminder that you want to revisit the thread ether in the near future or later when someone has provided an answer.
    Is there an easy way to mark threads that you want to re-visit?  Like a "todo" list, but rather a "to re-visit" list...
    R
    Solved!
    Go to Solution.

    Delicious is a website wher you can store URL for later use/retrieval. For every link you add you can add some tags, a description, and you can share them with others.
    I'm not using it for the use you have in mind, but it would be an idea. I have set up a special Mouse Gesture in Firefox that creates a delicious entry for the current page.
    I use delicious heavily when I am looking on the internet for a solution to a specific problem, what happens during such a search is that you see 20-30 pages that look promising but only 3 are actually on topic. Sometimes it turns out one of the 'not so good pages' are actually googd pages, but 3 days later you don't know exactly the search term  you used, or you are on another PC and it's hard to trace back your steps on the WWW. So by using Delicious I can easily create a list of pages on a particular topic.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Ignoring ejbdoclet tags

    I'm a little new to javadoc so forgive me if this is stupid.
    We have custom tags in our code that we get ejbdoclet to use to generate out deployment descriptors. One example of that would be:
    @ejb:transaction type="Supported"
    When I run javadoc it warns me that it doesn't know about this tag. I have tried all manner of variations of the -tag option but they don't work.
    It does work for custom tags that don't have the form @a:b. For example if I have a custom tag of @ejb param="value" and specify
    javadoc -tag ejb:X:"ejb stuff" then everything is fine. As soon as I have a custom tag of @ejb:transaction param="value" it does not work.
    I have tried
    javadoc -tag ejb:X:"ejb stuff" ...
    javadoc -tag ejb:transaction:X:"ejb stuff" ...
    javadoc -tag "ejb:transaction":X:"ejb stuff" ...
    javadoc -tag 'ejb:transaction':X:"ejb stuff" ...
    Can anyone tell me how to get around this?
    Thanks, Andrew
    PS: As an aside in my example that works, javadoc -tag ejb:X does not work, even though the documentation says it should. I have to add the header...

    Hi,
    Yes, it is a bug that the doclet does not support custom tags with "-" characters in the name properly. The only workaround is to write your own taglet. This should work:
    import com.sun.tools.doclets.standard.tags.SimpleTaglet;
    public class Foo extends SimpleTaglet {
    public Foo() {
    super("ejb.create-method", null, "x");
    When you run javadoc, use:
    -taglet <qualified name of your taglet> -tagletpath <path to your taglet>
    That's a lot of work just to ignore one tag, but this is a workaround for a bug that will probably be fixed soon.
    -Jamie

Maybe you are looking for