Automate create xml with HTML blocks

Hi,
I have to base on certain trigger, database query result
create an XML file.
In the XML file I'm passing an HTML page. I have the HTML
page saved on the
local server.. page1.html, page2.html etcs..
Any suggestions on how I can do this would be greatly
appreciated. This will
need to be an automate process... which I can do.. but the
actual creating
the XML file, I'm not sure about.
Thanks in advance!

Thanks for your reply... the XML that i need to create will
be like this?
<emailMessage>
<messagetype>Welcome</MessageTpye>
<Subject>Welcome</Subject>
<MessageContent>
<![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>test</title>
</head>
<body>
welcome to our site<br /> you are blah blah<br
/><br />
<p>blah blah</p>
<table><tr><td>whatever</td></tr></table>
</body>
</html>
]]>
</MessageContent>
</emailMessage>
The part thats in the CDATA are now indivual html files so i
want to take
the content of that html file and put it in the CDATA. i'm
not sure if
that's the best way to do it though... might be better to
store the HTML in
the DB and then write it out from there???
SUggestions?
"coffeedrinker56" <[email protected]> wrote
in message
news:[email protected]...
> I'm not certain that I understand what you're asking.
Creating an XML file
from
> a database is pretty easy stuff so I'm undoubtedly
misunderstanding the
> question(?):
> <cfquery name="abc" ...>
> Exec myStoredProcedure #myparam1#, '#myparam2#'
> </cfquery>
> <cfxml var="abc">
> <page>
> <html>
> <head>
> <title>abc example</title>
> <link rel="stylesheet" type="text/css"
href="css/default.css" />
> <script language="javascript" type="text/javascript"
src="abc.js" />
> </head>
> <body>
> <form name="pageForm" method="post"
action="javascript:checkForm();">
> <table ...>
> </table>
> </form>
> </body>
> </html>
> </page>
> </cfxml>
>
> If you choose to do so, you can display the XML like:
> <cfoutput>#abc#</cfoutput>
>
> ... or you can save the XML on your server as a file
using CFFILE.
>
> If your intention is solely to display the XML, you can
also use ...
> <cfcontent type="text/xml"><?xml version="1.0"
encoding="UTF-8" ?><abc>
> </abc>
>
> ... instead of the <cfxml> and </cfxml>
tags.
>
> [I use the latter form when passing data back and forth
between the
server and
> the client.]
>
>

Similar Messages

  • Problem while creating xml with cdata section

    Hi,
    I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
    select xmlelement("DOCUMENTS",
    xmlagg
    (xmlelement
    ("DOCUMENT",
    xmlforest
    (m.document_name_txt as "DOCUMENT_NAME_TXT",
    m.document_type_cd as "DOCUMENT_TYPE_CD",
    '<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
    ) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
    msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
    <DOCUMENTS>
    <DOCUMENT>
    <DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
    <DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
    <DOCUMENT_CLOB_DATA>
    &lt;![cdata[123456789012345678901234567890123456789012]]&gt;
    </DOCUMENT_CLOB_DATA>
    </DOCUMENT>
    </DOCUMENTS>
    The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give &lt; for cdata tag. How can I overcome this? Please help.

    SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
      2                                             cdataValue varchar2)
      3  return xmltype deterministic
      4  as
      5  begin
      6     return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
      7  end;
      8  /
    Function created.
    SQL>  select xmlelement
      2         (
      3            "Row",
      4            xmlcdata_10103('Junk','&<>!%$#&%*&$'),
      5            xmlcdata_10103('Name',ENAME),
      6            xmlelement("EMPID", EMPNO)
      7         ).extract('/*')
      8* from emp
    SQL> /
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[SMITH]]></Name>
      <EMPID>7369</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[ALLEN]]></Name>
      <EMPID>7499</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[WARD]]></Name>
      <EMPID>7521</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[JONES]]></Name>
      <EMPID>7566</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[MARTIN]]></Name>
      <EMPID>7654</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[BLAKE]]></Name>
      <EMPID>7698</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[CLARK]]></Name>
      <EMPID>7782</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[SCOTT]]></Name>
      <EMPID>7788</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[KING]]></Name>
      <EMPID>7839</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[TURNER]]></Name>
      <EMPID>7844</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[ADAMS]]></Name>
      <EMPID>7876</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[JAMES]]></Name>
      <EMPID>7900</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[FORD]]></Name>
      <EMPID>7902</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[MILLER]]></Name>
      <EMPID>7934</EMPID>
    </Row>
    14 rows selected.
    SQL>

  • How to automatically create xml documents ?

    Hi,
    I have created an xml form with specific fields and properties. Now, I want to automatically create a large amount of xml documents based on it.
    Is there any means to do this ?
    Thanks,
    Loïc LEVEUGLE

    You cannot automate applying usage rights with Acrobat. For that you'd need to use Adobe's LiveCycle Reader Extensions.
    How exactly are you currently converting XML into fillable forms? Are you using an XDP to somehow convert to an XFA-based PDF?

  • Create XMl with indentation by DOM

    Hi all,
    I wanna create a xml file with indentation.
    e.g
    <MyXML>
         <MyNode attr1="value1"/>
         <MyNode2 attr1 = "value1"/>
    </myXML>
    I save my xml with the following code
         TransformerFactory transFactory = TransformerFactory.newInstance();
         Transformer transformer = transFactory.newTransformer();
         DOMSource source = new DOMSource(getDocument());
         FileOutputStream os = new FileOutputStream(file);
         StreamResult result = new StreamResult(os);
         transformer.transform(source, result);it create a result like:
    <MyXML><MyNode attr1="value1"/><MyNode2 attr1 = "value1"/></myXML>
    how to achieve my purpose ?

    sorry again, this is what i really want to achieve
    <MyXML>
         <MyNode attr1="value1"/>
         <MyNode2 attr1 = "value1">
              <MyChildNode attr="value"/>
         </MyNode2>
    </MyXML>

  • Importing XML with html style tags

    I have an xml with an element <description> that contains some styling like, <em> or <b>. What do I need to do in order for me to import the xml into ID and see the italicized words?
    I appreciate any help.

    I have an xml with an element <description> that contains some styling like, <em> or <b>. What do I need to do in order for me to import the xml into ID and see the italicized words?
    I appreciate any help.

  • XML with HTML Tags... (easy points) 11g question

    Dear Programming Gods,
    I have been researching this for about 2 weeks now, and I have hit the final road block.
    Using BI Publisher 11.1.1
    In APEX 4.0 I have a Rich Text Field. The data from the Rich Text Field is store in CLOB. The data has HTML formatting tags. I have a data model that selects the data. I create an xml which has the html tags. I export the xml and import it into MS Word using the BI Publisher add-in. I import my subtemplate which handles almost all of the formatting tags. I apply the template to the CLOB field so that the HTML formatting tags will be rendered when printed.
    The problem is this. The subtemplate is looking for this < and / > however BI publisher convters the tags stored in the CLOB from raw html tags to this &.lt; and &.gt; so the subtemplate can not match to it.
    Here is what I need to figure out and please explain it in very novice terms.
    When I generate and export the XML from BI Publisher how do I prevent it from converting my raw tags?
    Here is some further assistance when prepairing your answer.
    My subtemplate is based on the htmlmarkup.xsl from the following blog but has been modified heavily to include support for simple tables, more formatting such as subscripts and superscripts, ect...
    http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    I am also familliar with this blog but I do not understand how to implement it using BI 11g.
    http://blogs.oracle.com/xmlpublisher/2009/08/raw_data.html
    I have tried adding this to my layout but it doesnt seem to work.
    <xsl: element name="R_CLOB" dataType="xdo:xml" value="R_CLOB" / >
    Please, help me. I have to have this working in 4 days.
    Richard

    This did not work either. Here's more infor on what I have so far.
    My data template looks like this:
    <dataTemplate name="Data" description="Template">
         <parameters>
              <parameter name="p_person_id" dataType="character" defaultValue="1"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                                  select TEMPORARY_TEMPLATE_DATA.line_id as LABEL_line_ID,
    TEMPORARY_TEMPLATE_DATA.column_id as LABEL_column_ID,
    TEMPORARY_TEMPLATE_DATA.person_id as LABEL_PERSON_ID,
    TEMPORARY_TEMPLATE_DATA.label as LABEL_DATA
    from MY_BIO.clm_TEMPORARY_TEMPLATE_DATA TEMPORARY_TEMPLATE_DATA
    Where person_id = :p_person_id
    and style = 'L'
                             </sqlStatement>
              <sqlStatement name="Q2" parentQuery="Q1" parentColumn="LABEL_DATA">
                                  select TEMPORARY_TEMPLATE_DATA.LINE_ID as LINE_ID,
    TEMPORARY_TEMPLATE_DATA.COLUMN_ID as COLUMN_ID,
    TEMPORARY_TEMPLATE_DATA.label as COLUMN_LABEL,
    to_nclob(TEMPORARY_TEMPLATE_DATA.COLUMN_DATA) as  COLUMN_DATA,
    TEMPORARY_TEMPLATE_DATA.STYLE as STYLE,
    TEMPORARY_TEMPLATE_DATA.ATTRIBUTE as ATTRIBUTE,
    NVL(TEMPORARY_TEMPLATE_DATA.JUSTIFY,'L') as JUSTIFY
    from MY_BIO.clm_TEMPORARY_TEMPLATE_DATA TEMPORARY_TEMPLATE_DATA
    Where person_id =:p_person_id
    and label = :LABEL_DATA
    and style != 'L'
    Order by line_id, column_id
                             </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_LABEL" source="Q1">
                   <element name="LColumnData" value="label_data"/>
                   <group name="G_DATA" parentGroup="G_Label" source="Q2">
                        <element name="LineID" value="line_id"/>
                        <element name="ColumnID" value="column_id"/>
                        <element name="ColumnData" value="column_data"/>
                        <element name="Style" value="style"/>
                        <element name="Attribute" value="attribute"/>
                        <element name="Justify" value="justify"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    After running this data_template there was no change in the xml file generated see partial :  Note:
    my test actually has the B with the html tags
    </G_DATA>
    - <G_DATA>
    <LINEID>20</LINEID>
    <COLUMNID>1</COLUMNID>
    <COLUMNDATA>test test <B>my test</B></COLUMNDATA>
    <STYLE>R</STYLE>
    <ATTRIBUTE />
    <JUSTIFY>C</JUSTIFY>
    </G_DATA>
    - <G_DATA>
    <LINEID>21</LINEID>
    I loaded in to MS Word but there was no change documnet still look the same. I left the commands import file command and xsl:apply-templates command in the word document template.
    I really appreciate you helpiing me.
    cheryl

  • Create XML with XSLT help

    Hi,
    I would like to create an XML which map to XSLT.
    The data that I have to produce XML is just a very small data, for example ArrayList<Integer> myList.
    So I need to create an XML from myList.
    I'm not sure what technology solution I should choose.
    But it'll be great if I can produce my XML map with my xslt.
    Should I use SAX? Xerces? Digester? or ....
    Could someone give me a right direction or an example.
    I'm really appreciate all your input.
    Thanks,

    Explain why you want to use XSLT. From what you've said so far I don't see the need.
    There are a variety of ways to produce XML from data. You'll need to decide how exactly you want a list of numbers to map to XML -- there's a lot of data missing here.

  • Create XML with digital sign and SOAP header...

    Hi.
    With ABAP, I need create an XML file iwith SOAP envelope. The message has to be signed and the sign data saved in the ws-security part in the SOAP header. I have to sign the file with a X509v3 certificate in base64.
    Somebody can tell me how can create the SOAP header and sign it with ABAP for the XML.
    Thanks.

    Please refrain from implementing WS-Security yourself.
    NWAS ABAP 7.x provides support for WS-Security - in both roles, as Consumer and Provider.
    The right approach is to generate a proxy based on a given WSDL.
    What kind of (message-based) authentication is demanded by the WS Provider?
    Other info source: see https://wiki.sdn.sap.com/wiki/display/Security/SingleSignonforWeb+Services
    Edited by: Wolfgang Janzen on Jul 8, 2009 12:11 AM

  • Automatically Creating Communities with G6

    This should be pretty straightforward but its not. We have upgraded our development server to G6 and are working on a system to create communities automatically. Our code called the POrtalObjectsFactory.CreateSession() to create a session but then it complains that Init must be called first. To call Init, you need an IOKContext which is part of com.plumtree.openkernel.config. The G6 API has a broken link on the page that has the PortalObjectsFactory.Init method to IOKContext.
    We have seen that in Version 5, you didn't need to do this but in G6 you have to. We need to understand how to Init the PortalOBjectsFactory so we can create a community. Thanks
    Below is our code:
    public int CreateCommunity(string name, int templateID, int folderID){int communityID = -1;IPTSession mIPTSession = PortalObjectsFactory.CreateSession();IPTCommunity mIPTCommunity = null;IPTServerContext mIPTServerContext = null;mIPTSession.Connect(ms_UserName, ms_Password, null);mIPTCommunity = (IPTCommunity) mIPTSession.GetCommunities().Create(folderID);mIPTCommunity.SetName(name);mIPTCommunity.SetCommunityTemplateID(templateID);mIPTServerContext = (IPTServerContext) mIPTCommunity.GetInterfaces("IPTServerContext");mIPTServerContext.Store();mIPTServerContext.UnlockObject();communityID = mIPTCommunity.GetObjectID();return communityID;}

    Here is an explanation of the changes from 5.x to 6.0 and the extra step needed in getting it to work:
    I had this exact same problem when I first tried to init a session - I had hoped they put it in some readme files of the changes, but oh well. I'm pasting an explanation given to me about the changes, and below is a .jsp fiile I created that got this working.
    In 5.x portal settings were located using a set of environment variables which had to be in place before you could create and use a session. In Portal 6.0, that requirement has been replaced by leaving it up to the client to locate and load the configuration files, hence the extra step of feeding config data manually to the factory.
    IOKContext is the interface that the portal will use for loading its data. You generally load it with the following call:IOKContext context = OKConfigFactory.createInstance("MyDirectory", "MyContextURN");
    The portal's config directory is under the Martok install directory and the context name for the portal is, I think, "portal". OpenConfig will load all the config files in the config directory (and its subdirectories) and provide to the portal factory all the settings that are used by the context named "portal".
    Here is my jsp code, I hope you can utilize most of the stuff for .netLillian
    <%@ page language="java" import="java.util.*,java.io.*,java.text.*,java.lang.reflect.*, com.plumtree.remote.portlet.*, com.plumtree.server.*, com.plumtree.openkernel.config.*, com.plumtree.openkernel.factory.*, com.plumtree.server.PortalObjectsFactory.*, com.plumtree.remote.prc.*, java.net.*" %>
    <h5> Get Community, Portlet, and Page Name </h5>
    <% IPTSession ptSession = null; IOKContext context = OKConfigFactory.createInstance("C:\\Program Files\\plumtree\\settings", "portal"); PortalObjectsFactory.Init(context);
    // Connect to the portal server.. here we'll just be Administrator ptSession = PortalObjectsFactory.CreateSession(); ptSession.Connect("administrator", "", null); IPTObjectManager objMan = ptSession.GetCommunities(); //querying for user's communities, joeuser IPTQueryResult qresult = objMan.QuerySingleObject(201); int qnum = qresult.RowCount();
    //querying for administrator's communities IPTQueryResult aresult = objMan.QuerySingleObject(1); int anum = aresult.RowCount();
    %>
    qnum is: <%=qnum%><br>anum is: <%=anum%>

  • Create XML with PL/SQL

    Hi,
    What is the best way to create large XML in pl/sql?? and to read large XML from CLOB procedure parameter?????
    Thanks

    Use the internal XML-structures of the database, such as XMLType, XMLElement, XMLForrest. Have a look at the XMLDB-documentation.

  • Parsing XML with html tags for style

    I'm using flash to pull in XML data, but I want to use html
    tags to be able to style the text. When I add any html, it treats
    it as a sub-node and ignores the data. Also, line breaks in the xml
    are being converted to double spaced paragraphs? The relevant code
    is basically this:
    if (element.nodeName.toUpperCase() == "TEXT")
    {//add text to text array
    ar_text[s]=element.firstChild.nodeValue;
    textbox1.text = ar_text[0];

    try to use htmlText instead text... like this:
    textbox1.htmlText = ar_text[0]
    adam

  • Automatically create PR with collective PR indicator

    Hello,
    Since ERP6.0 it's possible to group material components in a project according to a "collective purchase requisition indicator", i.e. material components with the same indicator will be put into the same PR.
    We already have a customer program that creates new material components using BAPI_NETWORK_COMP_ADD. However, this BAPI does not seem to have a possibility to set a collective PR indicator when creating the components. (Also it's obviously not possible to set the indicator later.)
    Do you know a BAPI or FM that can create a material component and set the collective PR indicator?
    Thank you
    Roland

    Hi Roland,
    I am sorry to say, there is not a possibility to do that. The collective purchase requisition indicator
    cannot be filled via BAPI. This functionality is not yet available.
    Apologies for not being more positive this time.
    Best regards,
    Enrique
    Edited by: Enrique Sosa Dominguez on Sep 9, 2011 2:58 PM

  • How to create Matrix with Group report layout in xml

    Hi,
    i would be glad if anyone could tell me How to create Matrix with Group report layout in xml?
    Here i am attaching the required design doc
    below is the code
    select COST_CMPNTCLS_CODE,
    -- crd.RESOURCES,
    NOMINAL_COST,
    cmm.COST_MTHD_CODE,
    -- crd.COST_TYPE_ID,
    gps.period_code
    -- ORGANIZATION_ID
    from CM_RSRC_DTL crd,
    gmf_period_statuses gps,
    CM_MTHD_MST cmm,
    CR_RSRC_MST crm,
    CM_CMPT_MST ccm
    where gps.period_id = crd.PERIOD_ID
    and crd.cost_type_id = cmm.cost_type_id
    and crd.RESOURCES = crm.RESOURCES
    and crm.COST_CMPNTCLS_ID = ccm.COST_CMPNTCLS_ID
    and gps.period_code in (:p_period1, :p_period2, :p_period3)
    group by COST_CMPNTCLS_CODE, cmm.COST_MTHD_CODE, gps.period_code,NOMINAL_COST
    order by 1,2,3,4.
    The o/p of the report shoud be as given below
              Period-1     Period-2     Period-3     Period-4
    COMPONENT                         
    LABOUR - DIRECT                         
         Actual     1     2     3     4
         Actual Rate     10     10     10     10
         Standard Rate                    
         Var%                    
    DEPRICIATION-DIRECT                         
         Actual                    
         Actual Rate                    
         Standard Rate                    
         Var%                    
    OVERHEAD - DIRECT                         
         Actual                    
         Actual Rate                    
         Standard Rate                    
         Var%                    
    LABOUR - IN DIRECT                         
         Actual                    
         Actual Rate                    
         Standard Rate                    
         Var%                    
    Thanks in advance

    Your friend is obviously not a reliable source of HTML
    information.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mr.Ghost" <[email protected]> wrote in
    message
    news:f060vi$npp$[email protected]..
    > One of my friends advised me to develop my whole site on
    the layout mode
    > as its
    > better than the standard as he says
    > but I couldnot make an ordinary table with rows and
    columns in th layout
    > mode
    > is there any one who can tell me how to?
    > thanx alot
    >

  • How to automatically create fillable PDFs from XML

    We are looking for a way to create fillable PDFs that users can enter data into and save (so the PDF needs Reader Rights applied) and we want to be able to automatically create these PDFs from XML files. We are able to do what we want in a manual fashion using Acrobat Pro v8 but we need a way to automate this due to the volume of XML files that we will need to convert.
    Is there any way that this can be scripted from a command line interface with Acrobat.. like:
    Acrobat.exe –input FileName.xml –output FileName.pdf –applyReaderRights true
    If there is no command line options for this is there any way that this could be coded using .NET or any other programming language?

    You cannot automate applying usage rights with Acrobat. For that you'd need to use Adobe's LiveCycle Reader Extensions.
    How exactly are you currently converting XML into fillable forms? Are you using an XDP to somehow convert to an XFA-based PDF?

  • How to put String with html tags as it is into xml

    I am using apache dom API to create xml from java.
    I have a string with html tags in it .when I add the string to xml, its replacing all the "<"; with &lt and ">" with > I would like the html tags to look as it is instead of the > and & lt;. How can I acheive that
    this is the code snippet of what I am doing
    In java class
    String titleString = "<font color=red>This Is an Example of a Red Subject</font>"
    Document doc = new DocumentImpl();
    Element root = doc.createElement("bulletin");
    Element item = doc.createElement("title");
    item.appendChild(doc.createTextNode(titleString));
    In Xml it looks like below
    <title><font color=red>This Is an Example of a Red Subject</font></title>
    but I would like to have the xml like below
    <title><font color="red">This Is an Example of a Red Subject</font></title>
    Can you please suggest me whats the best way to acheive this.
    I appreciate all your help
    Thank you
    Suma

    One problem is that you don't understand escaping. If you re-read what you posted you'll see that what you say you get, and what you say you want, are identical. That's because you didn't escape one of the two properly. So your first step should be to find the section about escaping in Chapter 1 of your XML book and read it carefully. Figure out what you should have done here (yes, the same rules apply).
    However, to attempt to answer what I think your question is: if you have a String which contains markup, and you want to convert that String to XML elements, then you have to feed the String into an XML parser.

Maybe you are looking for

  • How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?

    How can I open McAfee encrypted (EEFF) PDF files with Adobe Reader?  Get error "There was an error opening this document. Access denied".  Disabling Protected Mode in Reader doesn't always work. McAfee: https://kc.mcafee.com/corporate/index?page=cont

  • XMP metadata for Photo Libraries

    I demo lightroom at shows for Adobe and one of the constant gripes I get, and spend a long time trying to convince punters I have no answer for, is that Lightroom doesn't interact at all well with some of the software that photo libraries use. I have

  • After Effects cc 2014, problem: swf files not supported

    Hi, trouble with loading SWF file into After effects cc 2014, "format not supported" is the message. The same project is opened by another identic Macpro like mine...

  • Printing checks to multiple printers

    Based on organizations my AP checks print to different printers. I'm using one check template for all of them. How critical is it to have the actual printers to be exactly same model? Do I need to even worry about this? Tomas

  • ABAP HR payroll

    hi all, i made the salary slip in which i m showing the Toatal days paid by using wage type \807, in my company we will deduct the salary for leave type LWP(leave without pay) but problem is that when employee takes full day LWP then it deducts from