CDATA element definition

Does anyone know how a CDATA element should be defined in DTD file so that DOMParser
will recognize it? I have the following problem: when I define in a DTD file something like
<!ELEMENT mytag (#CDATA)>
the DOMParser throws SAXParseException, although it seems to be the correct syntax.
Another question: given a DOM Node, how can I get a string representing the document
fragment stored in the tree starting at this node?
/Sasha

Of course, it works with PCDATA, but the point is that I want the element's content
to be unparsed.

Similar Messages

  • CDATA element deleted in SOAP receiver adapter

    Hello Everybody!
    I've got a problem with SOAP receiver adapter. I've made a mapping for synchronous HTTP -> XI -> SOAP interface, in which the request mapping is java mapping, which produce a message like this:
    <?xml version="1.0" encoding="UTF-8"?> <ns0:SaveISDocument xmlns:ns0="http://pl.optix.pl/aews">
    <ns0:xmlDocument><IMAGES><IMAGE FileName="tmp.xml" ClassName="IVX">
    <![CDATA[PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMiI/Pgo8SU5WT0lDMDECiAgPElET0MCiAgICAgPEVESV9EQzQwPgogICAgICA8VEFCTkFNPkVESV9EQzQwPC9UQUJOQU0CiAgICAgIDxNQU5EVD4zMDwvTUFORFQCiAgICAgIDxET0NOVU0OTAzMTAyMzA4MzwvRE9DTlVNPgogICAgICA8RE9DUkVMPjQ1QjwvRE9DUkVMPgogICAgICA8U1RBVFVTPjMwPC9TVEFUVVMCiAgICAgIDxESVJFQ1QMTwvRElSRUNUPgogICAgICA8T1VUTU9EPjI8L09VVE1PRD4KICAgICAgPElET0NUWVASU5WT0lDMDE8L0lET0NUWVACiAgICAgIDxDSU1UWVAWjFJTlYwMTwvQ0lNVFlQPgogICAgICA8TUVTVFlQPklOVk9JQzwvOVk9JQzAxPgo=]]>
    </IMAGE></IMAGES>
    </ns0:xmlDocument></ns0:SaveISDocument>
    In CDATA is a Base64 representation of some file.
    I hoped at oubound of SOAP adapter sholud be something like this:
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Header/><SOAP:Body><ns0:SaveISDocument xmlns:ns0='http://pl.optix.pl/aews'>
    <ns0:SaveISDocument xmlns:ns0="http://pl.optix.pl/aews">
    <ns0:xmlDocument><IMAGES><IMAGE FileName="tmp.xml" ClassName="IVX">
    <![CDATA[PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMiI/Pgo8SU5WT0lDMDECiAgPElET0MCiAgICAgPEVESV9EQzQwPgogICAgICA8VEFCTkFNPkVESV9EQzQwPC9UQUJOQU0CiAgICAgIDxNQU5EVD4zMDwvTUFORFQCiAgICAgIDxET0NOVU0OTAzMTAyMzA4MzwvRE9DTlVNPgogICAgICA8RE9DUkVMPjQ1QjwvRE9DUkVMPgogICAgICA8U1RBVFVTPjMwPC9TVEFUVVMCiAgICAgIDxESVJFQ1QMTwvRElSRUNUPgogICAgICA8T1VUTU9EPjI8L09VVE1PRD4KICAgICAgPElET0NUWVASU5WT0lDMDE8L0lET0NUWVACiAgICAgIDxDSU1UWVAWjFJTlYwMTwvQ0lNVFlQPgogICAgICA8TUVTVFlQPklOVk9JQzwvOVk9JQzAxPgo=]]>
    </IMAGE></IMAGES>
    </ns0:xmlDocument></ns0:SaveISDocument>
    </SOAP:Body></SOAP:Envelope>
    Unfortunatelly there is something like:
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Header/><SOAP:Body><ns0:SaveISDocument xmlns:ns0='http://pl.optix.pl/aews'>
    <ns0:SaveISDocument xmlns:ns0="http://pl.optix.pl/aews"><ns0:xmlDocument><IMAGES><IMAGE FileName="tmp.xml" ClassName="IVX">
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMiI/Pgo8SU5WT0lDMDECiAgPElET0MCiAgICAgPEVESV9EQzQwPgogICAgICA8VEFCTkFNPkVESV9EQzQwPC9UQUJOQU0CiAgICAgIDxNQU5EVD4zMDwvTUFORFQCiAgICAgIDxET0NOVU0OTAzMTAyMzA4MzwvRE9DTlVNPgogICAgICA8RE9DUkVMPjQ1QjwvRE9DUkVMPgogICAgICA8U1RBVFVTPjMwPC9TVEFUVVMCiAgICAgIDxESVJFQ1QMTwvRElSRUNUPgogICAgICA8T1VUTU9EPjI8L09VVE1PRD4KICAgICAgPElET0NUWVASU5WT0lDMDE8L0lET0NUWVACiAgICAgIDxDSU1UWVAWjFJTlYwMTwvQ0lNVFlQPgogICAgICA8TUVTVFlQPklOVk9JQzwvOVk9JQzAxPgo=
    </IMAGE>
    </IMAGES></ns0:xmlDocument></ns0:SaveISDocument>
    </SOAP:Body></SOAP:Envelope>
    ... which is not correct, because CDATA tags are lost!
    Anyone has idea, how to enable adapter to process message right?
    Best regards,
    Mikolaj

    Henrique:
    As I wrote - the webservice was wrote by 3rd party software supplier - so I wasn't sure if I could change a specification at this point - that was a reason why I needed a CDATA element. A CDATA element was at entry of this webservice and I couldn't send to it my data correctly using XI. That was a problem. Hope You got it now.
    Finally I've managed the problem because 3rd party software supplier agreed to change their service and use <CDATA> tag instead of CDATA element.
    I solved the problem but my question still remain not answered.
    At OSS I was asked to upload latest SP (now I've got 12 at Java Stack).
    If this will help I'll close this thread.
    Best regards
    Mikolaj

  • Error Message "Text Element definition is not valid"

    Hi , on trying to display workflow in pftc_dis or spdd , I am getting the eror "Text element definition is not valid".
    On debugging further , I found that the method cl_swf_cnt_factory=>create_swd_task_container does not return the workflow container elements i.e. the value passed to the parameter ex_task_container of the above method returned is blank.
    However the same method returns the values for the workflow which is getting displayed correctly.
    We have done an upgrade from 4.6B to ECC6.
    Please let me know what could be the reason behind it and is there any note to overcome it or do we need to retransport it again.
    Thanks and Regards,
    Aman

    at first, the error you are getting is from the method, just check after upgrade if there is any change in the method. and see why it doesnt return the value.
    also check the binding properly from workflow to method.
    there is no oss notes for the same, i would require more info abt the workflow whether a standard or custome.
    In case of custome if the method returns possible null value, then create a custom method and call this method inside and handle the return appropriately so that the workflow always expect a value back.
    I beleive since workflow is expecting a value and it is unable to get values at times is causing this error.
    Regards,
    Raj

  • Importing element definition from an  EDD into a template - does not work

    FM 10.0.1 German on Windows XP SP3.
    When importing the element definitions from an existing EDD into an existing template, FrameMaker converts the template into a  new EDD.
    So the element definitions which are correctly defined do not appear in the template.
    The highest level element is than ElementCatalog in the template and not the higherst lvel element defined in the EDD.
    In FM9 this was no issue.
    Any help is appreciated, I have a deadline and must do some changes in the EDD.
    Best Regards
    Thomas

    Lynne,
    EDD is english (Version FM7.0), Interface language is German.
    Maybe it´s a localization issue.
    I have attached a captivate demo pdf so you can see what happens and the
    defective EDD.
    Mit freundlichen Grüßen
    Best Regards
    Thomas Zeisig
    From:   Lynne Price <[email protected]>
    To:     "Th. Zeisig" <[email protected]>
    Date:   13.10.2011 14:12
    Subject:        Importing element definition from
    an  EDD into a template - does not work
    Re: Importing element definition from an EDD into a template - does not
    work
    created by Lynne Price in FrameMaker Structured - View the full discussion
    Thomas,
      No question the behavior you describe is a bug. However, I am unable to
    duplicate it. I created an EDD with two element definitions:
    Element (Container): doc
      Valid as the highest-level element.
      General rule:  (
      When I imported element definitions from this EDD into a new portrait
    document, FM reports that element a is referenced but not defined and that
    b is defined but not referenced. However, with all elements listed, the
    element catalog shows a, b, and doc. The metatemplate elements are not
    available.
      I wonder if this is a language-dependent problem. Is your EDD German or
    English? What about your user interface?
      Can you send me a short EDD that fails as you've described?
      Thanks,
          --Lynne
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3969067#3969067]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3969067#3969067]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in FrameMaker Structured by email or at Adobe
    Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • Change of Project & WBS Element Definition

    Hi,
    Could you please let me know is there any function module to change the Project Definition ,WBS element Definition for an already existing Project and WBS element.
    Regards,
    Hemu Saini.

    BAPI_BUS2054_CHANGE_MULTI      for WBS
    BAPI_BUS2001_CHANGE                  for Project
    Regards,
    Chandra

  • Dynamic Query in Element Definition

    Hi All,
    I am using SiteStudio 10gR4 Designer, i have placed a query in element definition, since the query is auto generated from content server so it is specific to node ID, now i want to use it for other node IDs as well.
    Just to clear out i want to use the same element definition for different sections without displaying the datafiles related to other node IDs. I need to make the query in element defination generic.
    Eg.:
    xWebsiteObjectType <substring> `Data File` <AND> xWebsiteSection <substring> `test:30` <AND> xSubType <substring> `SideNavigation`
    I want to replace `test:30`so that the query becomes generic.
    Thanks.
    Edited by: user3919522 on Jul 19, 2010 11:43 PM
    Edited by: user3919522 on Jan 7, 2011 6:22 AM

    Simple. Just put in idoc for the siteId and nodeId:
    xWebsiteObjectType <substring> `Data File` <AND> xWebsiteSection <substring> *`&lt;$siteId$&gt;:&lt;$nodeId$&gt;`* <AND> xSubType <substring> `SideNavigation`
    Good luck, and please award points as necessary.

  • CDATA element mapping in Biztalk Mapper

    Hi,
    we have a input message which has an element called ParticleName.
    an example is:
     <ns:ParticleName><![CDATA[TestingName]]></ns:ParticleName>
    There is a biztalk map which takes this message and transforms it into another.
    When i try test map, it doesn't output any value on the target ParticleName node.
      it comes as <ns:ParticleName>
                           </ns:ParticleName>
    There are 2 cases:
    a)In one case, I want only the node value (TestingName) in the target node?
    b)In the second case, i want the whole CDATA section in the target?
    Please assist.
    regards,

    Hi,
    If you want to read the values from the CDATA use custom XSLT functoid. Visit below links for your reference :
    http://stackoverflow.com/questions/10323332/how-to-parse-an-xml-dom-inside-a-cdata-element-in-xslt
    http://social.msdn.microsoft.com/Forums/en-US/a6f40a1f-583d-4339-8cf9-d70dd56b20df/cdata
    Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question
    Regards,
    Rahul Madaan
    biztalkvillage.blopspot.com

  • Unable to define element definition in Site Studio

    Hello guys,
    I'm using SiteStudio and UCM 11g and trying to make a news site. I follow this tutorial's instructions, but after i try to add an element definiton, i cannot see it on project again. I mean the element definiton that i try to add couldn't be added actually. Does anybody have an idea about this problem?
    Helps will be appreciated.Regars
    Erdo

    So, I assume that we speak about SSXA and JDev IDE.
    First of all, you should find out where is the problem (what metadata is missing/is not configured). My guess is that it will be Web Sites (xWebsites). This parameter can be best influenced from JDev by selecting the site you want to work with in the upper-right corner of the Site Assets section in the JDev (you might find the text +( No Sites Specified)+ there ). Note that you must have a Site Studio Connection created and must be logged in to make this work (since you can create the element definition I assume that you have your connection ready).
    Of course, like with any other metadata you may also specify the metadata later via Advanced Checkin, but since it should not be necessary to do it that way.
    The other parameter, Web Site Object Type, will be selected for you by JDev, depending on the object you want to create.

  • Will anyone please Tell me how to create a CDATA Element

    Hello Guys
    I am hammering my head to create a CDATA Element in Oracle 9i using XMLDOM Package.
    The Element structure should look like this
    <Formula>
    <![CDATA[VALVERB("AC_Fluid_Pressure_Sensor")]]>
    </Formula>
    The Code I used to create in ORACLE 10G is Given below, But The same code when I used for 9i is Not working
    field_elmt := xmldom.createelement(doc,'FORMULA');
    field_node := xmldom.appendchild(ssd_node,xmldom.makenode(field_elmt));
    -- Create a CDATA ELEMENT
    field_text := xmldom.createtextnode(doc,'CDATA ELEMENT');
    field_node := xmldom.appendchild(field_node,xmldom.makenode(xmldom.createCDATASection(doc,SSDRECORD.FORMULA)));
    field_node := xmldom.appendchild(field_node,xmldom.makenode(field_text));
    Please Help me Out.
    Regards
    Madhu

    Hi Manikandan
    i once have a similar problem using a BTE, i solved creating the data element and adding the records in TPS01 and TPS02, i tried to create a record on TBE01 and it says the same mentioning TPS01 and TPS02
    please check this link
    http://scn.sap.com/thread/3173012
    create the data element asking the authorization code to your basis and create the records
    hope this help
    Regards
    Marco Cristobal

  • Using a Site Studio 10R4 Dynamic List Element Definition

    Hi All,
    I've created and can use a Static List Element Definition > Region Definition > Region Template with no problems based off of the 10gR4 samples.
    However, there is no example that I've found to utilise the Element Definition of a Dynamic List. I'm attempting to use the same sample code as provided for a Static List but having no luck displaying the results of the query...
    Does anyone have some sample code used in a Region Template or Sub Template to show how we use a Dynamic List Element Definition please?
    I noted from another thread in this forum that there are some iDoc calls to make which load the query defined in the Element Definition... I can't find any documentation regarding this either.
    Thanks
    Edited by: user615721 on May 4, 2009 10:08 AM
    Edited by: user615721 on May 4, 2009 10:09 AM

    Found my answer in another thread, here... Re: Using a Site Studio 10R4 Dynamic List Element Definition
    'For 10gR4 Site Studio you can get examples and even a video talking about making dyanmic lists from here:
    http://www.oracle.com/technology/products/content-management/ucm/SiteStudio10gR4Tutorials/index.html'
    Edited by: user615721 on May 4, 2009 10:25 AM
    Edited by: user615721 on May 4, 2009 10:25 AM

  • Hidden Assets like element definition, region definition from site studio designer

    Hi Experts,
    I am facing problem in Site Studio Designer, I have created a new Website and Created Page Template and when i tried to create the site assets like element definition, region definition, region templates. It's visible and when i refresh the list or change the list from element definition to region definition and again open the tab of element definition, the definition list removes or hide from the list in Site Studio Designer and when i check the content server for the same region definitions, element definitions all are present in content server but hides from site studio designer. Can any one please help me out resolve this issue i am unable to edit any assets.
    Thanks,
    Vijay

    First, the Override Editor CSS is ONLY used to change the CSS for the contributor editor. For instance, if you have a div tag that encompasses the entire website and specify it to be center-aligned, everything within your WYSIWYG editor will be center-aligned too (not ideal). So you could, for instance, use the Override Editor CSS to have the same div class that overrides the text within the contributor to be left-aligned.
    As far as not being able to apply the CSS, I'm not too sure. You should at least be able to create a completely blank HCSP layout page, and see that no classes are available (because there is no CSS on the page). When you have a CSS, I've found that the classes loaded aren't always necessarily the ones that are in the CSS. My recommendation is to select "Allow selected classes", ONLY use the "additional classes", and type in the classes you want to show up in the CSS WYSIWYG dropdown. That's the only way I've gotten it to work.

  • Sorting dynamic listing by element definition field.

    Hi,
    Does any one know how to sort a dynamic listing by one of the regional definition field?
    My situation is currently sorting is done by dDocTitle (<!--$SortField = "dDocTitle"-->). The title that is displayed in website(h1) has a different title from dDocTitle. So although it is sorting by dDocTitle, it looks random in the live website.
    So I was wondering if there is a way to sort dynamic listing by one of the element definition field.
    I was hoping that something like this will work but it didn't
    <!--$SortField = ssIncludeXml(dDocName,"ContentPage/Title/node()")-->
    Thanks.
    Edited by: K0907163 on 23-Nov-2011 03:00

    Wish there was a way, but unfortunately I don't think there is without building your own custom sort. SortField only takes metadata fields.
    My suggestion is to have your users actually use dDocTitle (or a different metadata field), as opposed to ContentPage/Title/node().

  • XMLParser and CDATA-Element

    Why do the XMLParser replace '<' with '<' in a CDATA-Element?
    I have a Stylesheet with an Element like this:
    <script lang...><![CDATA[
    function test(){
    for(i=0; i<2; i++)...
    }]]>
    </script>
    Now I use the oracle.xml.parser.v2.XMLParser to parse the Stylesheet in this way:
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    parser.parse(xslURL);
    xsldoc = parser.getDocument();
    and now I print it out this way:
    xsldoc.print(out);
    This is the result:
    ... for(i=0; i<2; i++) ...
    How can I tell him not to do this replacement? I thought all characters inside the <![CDATA[-tag wouldn't be parsed. Am I wrong?
    I use the XMLParser 9.0.1.0.0 Production                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I've found a workaround with <xsl:comment> like this:
    <script ...>
    <xsl:comment>
    <![CDATA[
    ...Javascriptcode...
    ]]>
    </xsl:comment>
    </script>
    null

  • Saaj CDATA element exception

    Hi, I am trying to insert a soap body but I am getting an exception.
    This is what I am trying to achieve:
    <Message><![CDATA[hello]]></Message>
    My code:
    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage message = factory.createMessage();
    SOAPFactory soapFactory = SOAPFactory.newInstance();
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    body.addChildElement(envelope.createName("Message")).addTextNode("<![CDATA[hello]]>");
    This creates an exception:
    java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.impl.CDATAImpl
         at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.addTextNode(ElementImpl.java:245)
    Can anyone help me with that. I must use the CDATA, escape characters would be of no use.

    Of course, it works with PCDATA, but the point is that I want the element's content
    to be unparsed.

  • Trying to understand an object/element definition in a SAPScript

    Hi,
    what does the following block defines in a SAP Script ?
    It begins defining an element, like
    /E      Element1
    Then it defines the contents of the element
    /:ADDRESS PARAGRAPH AS
    /:  TITLE       &HADRS-ANRED&
    /:  NAME        &HADRS-NAME1&, &HADRS-NAME2&
    /:  STCEG       &HADRS-STCEG&  "This is a line I am trying to add to the output, but is not being printed
    /:  STREET      &HADRS-STRAS&
    /:  POBOX       &HADRS-PFACH& CODE &HADRS-PSTL2&
    /:  CITY        &HADRS-PSTLZ&, &HADRS-ORT02&
    /:  POSTCODE    &HADRS-ORT01&
    /:  COUNTRY     &HADRS-LAND1&
    /:  REGION      &HADRS-REGIO&
    /:  FROMCOUNTRY &HADRS-INLND&
    /:ENDADDRESS
    What is this ADDRESS object ?! I don't find any referrences to it in the whole code. HADRS-STCEG cointains the proper value at print time, but I can't make it show up in the output. What must I be missing ?
    What does the ADDRESS / ENDADDRESS statements define ? How can I access this object ?
    There is no place where the program defines Element1, right  ? There is only its call via
    CALL FUNCTION 'WRITE_FORM'
                EXPORTING
                  element                  = 'Element1'
                  function                 = 'SET'
                  window                   = 'DEBDATA'
                EXCEPTIONS
                  element                  = 1
                  function                 = 2
                  type                     = 3
                  unopened                 = 4
                  unstarted                = 5
                  window                   = 6
                  bad_pageformat_for_print = 7
                  OTHERS                   = 8.
    I have no idea what/where to search.
    Thanks in advance,
    Avraham
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Dec 15, 2009 10:06 AM

    /E      Element1
    Defines a block, that can be reused.
    ADDRESS / ENDADDRESS
    Defines a block defined as ADDRESS, that means it's giving a special format.
    CALL FUNCTION 'WRITE_FORM'
                EXPORTING
                  element                  = 'Element1'
                  function                 = 'SET'
                  window                   = 'DEBDATA'
                EXCEPTIONS
                  element                  = 1
                  function                 = 2
                  type                     = 3
                  unopened                 = 4
                  unstarted                = 5
                  window                   = 6
                  bad_pageformat_for_print = 7
                  OTHERS                   = 8.
    Here you are all calling the block called Element1...you can define other blocks and call them the same way...
    Greetings,
    Blag.

Maybe you are looking for

  • SAP XML Schema's - 2 questions

    Hi All, 1. Difference between ifr.sap.com & XI The schema's defined in ifr.sap.com and the schema's retrieved via the RFC adapter are different!  The XSD's in ifr.sap.com use mixed case for the elements.  The XSD/WSDL extracted contain element names

  • Urgent Help in JSP for multiple records update

    I have a Order Placement form for the dealers. Here they place their orders online and submit the form. The details they enter are stored in Orders table in a database. This order is sent for processing. This is an external operation for the users of

  • What are the Relations between Journalizing and IKM?

    What is the best method to use in the following scenario: I have about 20 source tables with large amount of data. I need to create interfaces that join the source tables into target tables. The source tables are inserted every few secondes with abou

  • How to determine video driver version?

    Is there any way to determine the version of the Nvidia video driver that's being used on my system? I've checked the Graphics/Displays section of System Information, but it's pretty vague. I assume that the entry for "Revision ID" is what the answer

  • ObFormLoginCookie Not Reset

    Hello I have OAM installed on a number of web servers in the environment and they are working fine under normal operations. But, I am having a problem with a particular sequence of access. 1. when access application 1 you are redirected to the login