Creating a PLSQL script to parse structured XML with repeated tags

Hi, I'm trying to parse an xml feed but the way it's structured makes it difficult to pull out the values. (see example) Would anyone be able to recommend a solution or some ideas as to how to get around this?
SAMPLE XML:<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
     <env:Header>
     </env:Header>
     <env:Body>
          <ns3:commandResponse xmlns:ns2="http://test.com/2011/Generic/schema" xmlns:ns3="http://test.com/2011/Generic">
               <return>
               <ns2:return>success</ns2:return>
               <ns2:Command>issues</ns2:Command>
                    <ns2:WorkItems>
                         <ns2:Id>216141</ns2:Id>
                         <ns2:ModelType>Issue</ns2:ModelType>
                         <ns2:DisplayId>216141</ns2:DisplayId>
                         <ns2:Field>
                              <ns2:Name>Type</ns2:Name>
                              <ns2:Value>
                                   <ns2:Item>
                                        <ns2:Id>Dev Task</ns2:Id>
                                        <ns2:ModelType>Type</ns2:ModelType>
                                        <ns2:DisplayId>Dev Task</ns2:DisplayId>
                                   </ns2:Item>
                              </ns2:Value>
                         </ns2:Field>
                         <ns2:Field>
                              <ns2:Name>ID</ns2:Name>
                              <ns2:Value>
                                   <ns2:int>216141</ns2:int>
                              </ns2:Value>
                         </ns2:Field>
                         <ns2:Field>
                              <ns2:Name>Reason</ns2:Name>
                              <ns2:Value>
                                   <ns2:string>Integrating</ns2:string>
                              </ns2:Value>
                         </ns2:Field>
                         <ns2:Field>
                              <ns2:Name>Dev Task Component</ns2:Name>
                              <ns2:Value>
                                   <ns2:string>Java Tools</ns2:string>
                              </ns2:Value>
                         </ns2:Field>
                         <ns2:Field>
                              <ns2:Name>Created Date</ns2:Name>
                              <ns2:Value>
                                   <ns2:datetime>2009-08-10T15:52:39.000-04:00</ns2:datetime>
                              </ns2:Value>
                         </ns2:Field>
                         <ns2:Field>
                              <ns2:Name>Date Closed</ns2:Name>
                              <ns2:Value/>
                         </ns2:Field>
                         <ns2:Field>
                              <ns2:Name>Modified Date</ns2:Name>
                              <ns2:Value>
                                   <ns2:datetime>2011-03-04T12:57:05.000-05:00</ns2:datetime>
                              </ns2:Value>
                         </ns2:Field>
                    </ns2:WorkItems>
               </return>
          </ns3:commandResponse>
     </env:Body>
</env:Envelope>This is just a sample with just one WorkItem, but there would be much more, N number of items with 9 fields per item. (Not all of the fields were put in the sample, and some can have null values)
I only need to pull the content from /ns2:WorkItems/ns2:Field/ns2:Value/ns2:Item/ns2:Id for the first field and the /ns2:value/* tag of all the other fields. Then put this in a table where each row is a workitem and the fields are the columns (create table workitems (Type,ID,Reason,Dev Task Component,Created Date, Date Closed, Modified Date) --all the fields should be varchar2 except the dates)
What I've been trying so far seems rather brute force by running a nested loop to go through every item and field and then an IF case for each field 1,2,...9 which would insert the value into a table.
At the moment I'm using something like below to pull a single value
path1 = '//ns2:WorkItems[1]/ns2:Field[1]/ns2:Value[1]/ns2:Item[1]/ns2:Id[1]';
nameserve = 'xmlns:ns2="http://test.com/2011/Generic/schema"';
extractvalue(xmltype(src_clob),path1,nameserve);I'm not entirely sure if I would be able to substitute the [1]'s with [' || nitem || '] where nitem is loop number to do something like:
for nitem in 1..itemcount
loop
    FOR nfield in 1..9
    loop
        if nfield=1 then
            path1 := '//ns2:WorkItems[' || nitem || ']/ns2:Field[' || nfield || ']/ns2:Value[1]/ns2:Item[1]/ns2:Id';
            fieldvalue := extractvalue(xmltype(src_clob),path1,nameserve);';
        else
            path2 := '//ns2:WorkItems[' || nitem || ']/ns2:Field[' || nfield || ']/ns2:Value[1]/*[1]';
            fieldvalue := extractvalue(xmltype(src_clob),path2,nameserve);';
        end if;
    end loop;
end loop;The problem with the above script is how do I insert this fieldvalue into different columns on a table without using an IF case for each field.
I was wondering if there is simpler way to put each field into a different column and loop through every workitem. I looked into dynamically naming variables but I don't think plsql supports that.
Any help/advice is appreciated,
Thanks!
Edited by: 843508 on Mar 10, 2011 1:56 PM
Edited by: 843508 on Mar 10, 2011 1:57 PM
Edited by: 843508 on Mar 10, 2011 2:01 PM

If it were me, I wouldn't use PL/SQL to try and process XML, but would use SQL's XMLTABLE functionality e.g.
SQL> ed
Wrote file afiedt.buf
  1  WITH t as (select XMLTYPE('
  2  <RECSET xmlns:aa="http://www.w3.org">
  3    <aa:REC>
  4      <aa:COUNTRY>1</aa:COUNTRY>
  5      <aa:POINT>1800</aa:POINT>
  6      <aa:USER_INFO>
  7        <aa:USER_ID>1</aa:USER_ID>
  8        <aa:TARGET>28</aa:TARGET>
  9        <aa:STATE>6</aa:STATE>
10        <aa:TASK>12</aa:TASK>
11      </aa:USER_INFO>
12      <aa:USER_INFO>
13        <aa:USER_ID>5</aa:USER_ID>
14        <aa:TARGET>19</aa:TARGET>
15        <aa:STATE>1</aa:STATE>
16        <aa:TASK>90</aa:TASK>
17      </aa:USER_INFO>
18    </aa:REC>
19    <aa:REC>
20      <aa:COUNTRY>2</aa:COUNTRY>
21      <aa:POINT>2400</aa:POINT>
22      <aa:USER_INFO>
23        <aa:USER_ID>3</aa:USER_ID>
24        <aa:TARGET>14</aa:TARGET>
25        <aa:STATE>7</aa:STATE>
26        <aa:TASK>5</aa:TASK>
27      </aa:USER_INFO>
28    </aa:REC>
29  </RECSET>') as xml from dual)
30  -- END OF TEST DATA
31  select x.country, x.point, y.user_id, y.target, y.state, y.task
32  from t
33      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
34                '/RECSET/aa:REC'
35                PASSING t.xml
36                COLUMNS country NUMBER PATH '/aa:REC/aa:COUNTRY'
37                       ,point   NUMBER PATH '/aa:REC/aa:POINT'
38                       ,user_info XMLTYPE PATH '/aa:REC/*'
39               ) x
40      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
41                '/aa:USER_INFO'
42                PASSING x.user_info
43                COLUMNS user_id NUMBER PATH '/aa:USER_INFO/aa:USER_ID'
44                       ,target  NUMBER PATH '/aa:USER_INFO/aa:TARGET'
45                       ,state   NUMBER PATH '/aa:USER_INFO/aa:STATE'
46                       ,task    NUMBER PATH '/aa:USER_INFO/aa:TASK'
47*              ) y
SQL> /
   COUNTRY      POINT    USER_ID     TARGET      STATE       TASK
         1       1800          1         28          6         12
         1       1800          5         19          1         90
         2       2400          3         14          7          5p.s. XML questions are better suited in the XML DB forum:
XML DB FAQ

Similar Messages

  • Poweshell script to parse a XML document to get all Leaf level nodes with Node names in CSV

    Hi Experts,
    I want to write a Powershell script to parse a XML document to get all Leaf level nodes with Node names in CSV
    <?xml version="1.0" encoding="UTF-8"?>
    <CATALOG>
       <CD>
          <TITLE>Empire Burlesque</TITLE>
          <ARTIST>Bob Dylan</ARTIST>
          <COUNTRY>USA</COUNTRY>
          <COMPANY>Columbia</COMPANY>
          <PRICE>10.90</PRICE>
          <YEAR>1985</YEAR>
       </CD>
    </CATALOG>
    Need to display this as
    CD_Tiltle, CD_ARTIST, CD_COUNTRY, CD_COMPANY, CD_PRICE, CD_YEAR
    Empire Burlesque, Bob Dylan,USA,Columbia,10.90,1985
    and so on..
    I do not want to hard code the tag names in the script.
    current example is 2 level hierarchy XML can be many level till 10 max I assume
    in that case the csv file field name will be like P1_P2_P3_NodeName as so on..
    Thanks in advance
    Prajesh

    Thankfully, I have writtenscript for ths same $node_name="";
    $node_value="";
    $reader = [system.Xml.XmlReader]::Create($xmlfile)
    while ($reader.Read())
    while ($reader.Read())
    if ($reader.IsStartElement())
    $node_name += "," + $reader.Name.ToString();
    if ($reader.Read())
    $node_value += "," + $reader.Value.Trim();
    Thanks and Regards, Prajesh Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • Oracle SQL - Extracting clob value from XML with repeating nodes

    Hi All,
    I am attempting to run SQL on a table (called test_xml with a column xml_data [data type xmltype]). The column contains xml with repeating nodes (description). The following statement runs successfully when the node contains data of a non clob size:
    SELECT
    extractvalue (Value (wl), '*/description')
    FROM test_xml
    , TABLE (xmlsequence (extract (xml_data, '*/record'))) wl
    but fails when description node contains a lot of data:
    ORA-01706: user function result value was too large
    I amended my query:
    SELECT
    extractvalue(Value (wl), '*/description').getClobVal()
    FROM test_xml
    , TABLE (xmlsequence (extract (xml_data, '*/record'))) wl
    but this fails with:
    ORA-22806: not an object or REF
    Thanks in Advance

    Hi Greg,
    11.2.0.2.0 (Although I will need to do this on my work instance also which is 10.2.0.4)That's gonna be a problem...
    Direct CLOB projection is supported starting with 11.2.0.2, using XMLTable or XMLCast/XQuery functions (extractvalue, extract, xmlsequence are deprecated now) :
    SELECT x.*
    FROM test_xml t
       , XMLTable(
           '/*/record'
           passing t.xml_data
           columns
             description  clob path 'description'
         ) x
    ;On prior versions, implicit conversions will occur to VARCHAR2 datatype, hence the limitation observed.
    AFAIK you have two options on 10.2.0.4 :
    1) Using Object-Relational storage, with the xdb:SQLType="CLOB" annotation.
    2) Using the following trick :
    SELECT dbms_xmlgen.convert(x.description.getClobVal(), 1) as description
    FROM test_xml t
       , XMLTable(
           '/*/record'
           passing t.xml_data
           columns
             description  xmltype path 'description/text()'
         ) x
    ;

  • Generate Query in PLSQL to return Well Formed XML with Multiple records

    Hi there
    This is very urgent. I am trying to create a PLSQL query that should retrieve all records from oracle database table "tbl_Emp" in a well formed xml format. The format is given below
    *<Employees xmlns="http://App.Schemas.Employees" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *<Employee>*
    *<First_Name></First_Name>*
    *<Last_Name></Last_Name>*
    *</Employee>*
    *<Employee>*
    *<First_Name></First_Name>*
    *<Last_Name></Last_Name>*
    *</Employee>*
    *</Employees>*
    To retrieve data in above format, I have been trying to create a query for long time as below
    SELECT XMLElement("Employees",
    XMLAttributes('http://App.Schemas.Employees' AS "xmlns",
    *'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"),*
    XMLElement("Employee", XMLForest(First_Name, Last_Name)))
    AS "RESULT"
    FROM tbl_Emp;
    But it does not give me the required output. It creates <Employees> tag with each individual record which I don't need. I need <Employees> tag to be the root tag and <Employee> tag to repeat and wrap each individual record. Please help me in this as this is very urgent. Thanks.

    Hi,
    Please remember that nothing is "urgent" here, and repeating that it is will likely produce the opposite effect.
    If you need a quick answer, provide all necessary details in the first place :
    - db version
    - test case with sample data and DDL
    That being said, this one's easy, you have to aggregate using XMLAgg :
    SELECT XMLElement("Employees"
           , XMLAttributes(
               'http://App.Schemas.Employees' AS "xmlns"
             , 'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
           , XMLAgg(
               XMLElement("Employee"
               , XMLForest(
                   e.first_name as "First_Name"
                 , e.last_name  as "Last_Name"
           ) AS "RESULT"
    FROM hr.employees e
    ;

  • Parsing the xml with out dom parser in Oracle10g

    Hi,
    I need to parse the xml and create new xml with out any parsers in oracle 10g.Please help me how to do this one.

    Parsing without a parser eh? Could be tricky. Maybe if you go to the XML DB forum and explain your problem over there someone can help you...
    XML DB forum FAQ:
    XML DB FAQ

  • Problems parsing a XML with binary element

    Hi,
    I'm trying to parse a xml that contains an element with the type "xs:hexBinary".
    The problem is that when i load a file in to the xml everything goes fine ...
    no matter the size of the file (i've tested it with 6Mb file), the problem is
    that when i try to parse it i got an error "java.lang.OutOfMemoryError" ... i
    don't know if there is any kind of size restriction or something like that.
    Any information would be gratefully considered.
    Thanks a lot.
    Rober.

    XML is a text format so of course it can't include binary data such as GIFs. But then so is HTML, so there doesn't seem to be much point in doing this. Your HTML would have to include a link to the GIF, rather than the GIF itself in any format, binary or otherwise. And therefore so should the XML. Given all that, it follows that parsers don't deal with whatever it is you are attempting.

  • Adding an XML doc with repeating tags

    Hello,
    Can anyone tell me how I take an XML document with a tag that can appear from 0-N times and map it to a database table? I am currently using a supertable and then using triggers to move data to the appropriate spot but am stuck on how to map tags that don't correspond 1-1.
    My structure is like
    <product>
    <name>
    <model>
    <cost>
    <feature>* (0-N)
    <spec>* (0-N)
    </product>
    Thanks.
    null

    Do a getElementsByTagName on a node and do a
    insert on each node found.

  • How to parse a XML file where tags have a underscore in them

    Hi,
        As per my current requirement I have a XML file where the tag names ( tags ) have a underscore in them like
    <root>
    <name_get>100<name_get>
    <name_set>200<name_set>
    </root?
         Can any let me know the following
    1) Can I read /parse such a XML file in Flex( is it possible)
    2) If yes How. Can any one forward me with example/docs/suggestions
    Regards
    Kalavati Singh
    [email protected]

    I use XML files with underscores in the node names all the time.
    In what context are you reading the files?  For example, if you're using an HTTPService object with a resultFormat of XML, and you databind an object to the lastResult of the HTTPService, the file gets parsed automagically (you have to setup a few things properly, but it's almost as simple as I describe).
    Do you need to manually parse the file?  If so, look into the XML, xmlList, Array and ArrayCollection datatypes.
    It'll be easier to help if you give an example of what you need to do.

  • Reading Structured XML the Repeater gives an error

    Hi I have seen some good answers on this forum and I am looking for some assistance please.
    I have read in xml documents fine from a iDoc Listener and now I want to update the Production orders with a BAPI. the xml that I get from the Production system is in a well structured format. Then the repeater gives an error the xpath expression is now "<b><u>XmlLoader_0.XmlContent{/xml/rs:data/z:row}</u></b>" and not the normal <b>XmlLoader_0.XmlContent{/Rowsets/Rowset/Row}</b>.
    I am sure that I will sort the reading of it once I get the repeater to read the document for me.
    Thanks
    Cheers,
    Dave

    Dave,
    Glad to see you were able to sort things out.  The Rowsets/Rowset/Row xml format is the standard xMII internal format that you will see when working with any of the Query action block outputs, the Document building actions, and any of the XML convenience blocks like CalculatedColumns, etc.
    Since the iDOC file came through the external listener, the xml format will not be in this format, just like when seeing the Request/Response xml schemas when working with JCO calls to BAPI's on your R/3 system, webservice calls, etc.
    Regards,
    Jeremy

  • Parsing XML with incomplete tags

    Message was edited by:
    user490857

    Hello,
    How about the following?
    Change your XML document to:
    <?xml version='1.0' encoding='utf-8'?>
    <response>
         <title> this is book on &amp;lt;tags&amp;gt; Order </title>
    </response>
    Running the following code:
    String xmlstring = "<?xml version='1.0' encoding='utf-8'?><response><title> this is book on &amp;lt;tags&amp;gt; Order </title></response>";
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = factory.newDocumentBuilder();
    InputSource inStream = new InputSource();
    inStream.setCharacterStream(new StringReader(xmlstring));
    Document doc1 = db.parse(inStream);              
    System.out.println(doc1.getDocumentElement().getFirstChild().getFirstChild().getNodeValue());
    Will produce the following result:
    this is book on <tags> Order
    -Blaise
    Message was edited by:
    Blaise Doughan

  • Parsing complicated XML with XMLTable

    Can anyone tell me how to write the syntax to parse the following XML snippet
    <item rdf:about="http://www.sec.gov/Archives/edgar/data/30554/000104746910000954/0001047469-10-000954-index.htm">
    <title>DUPONT E I DE NEMOURS &amp; CO (0000030554) (Filer)</title>
    <pubDate>Wed, 17 Feb 2010 15:20:37 EST</pubDate>
    <edgar:xbrlFiling xmlns:edgar="http://www.sec.gov/Archives/edgar">
         <edgar:companyName>DUPONT E I DE NEMOURS &amp; CO</edgar:companyName>
         <edgar:fileNumber>001-00815</edgar:fileNumber>
         <edgar:xbrlFiles>
              <edgar:xbrlFile sequence="1" file="a2196441z10-k.htm" type="10-K" size="3484943" description="10-K" url="000104746910000954/a2196441z10-k.htm" />
              <edgar:xbrlFile sequence="2" file="a2196441zex.htm" type="EX" size="109254" description="EXHIBIT 3.2" url="000104746910000954/a2196441zex-3_2.htm" />
    what I need is
    Title, pubDate, companyName, FileNumber, Seq, file, type, size, description, url
    Have a problem starting at the edgar:xbrlFiling
    select *
    from xmltable('//item'
    passing HTTPURITYPE('http://www.sec.gov/Archives/edgar/xbrlrss.xml').getXML()
    columns
    title varchar2(4000) path '/item/title/text()',
    publication_date varchar2(4000) path '/item/pubDate/text()',
    filing xmltype path '/item/edgar:xbrlFiling') t1,
    xmltable('FILING' passing t1.filing
    columns
    companyname varchar2(4000) path '/edgar:companyName/text()')

    Hi,
    You need to add the namespaces in the [namespaces clause|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions228.htm#CIHGGHFB] of XMLTable.
    HTH,
    Chris

  • How do i parse an xml with a string?

    I got a string (ex. "<testing><testing1>bla</testing1></testing>") and i would like to temparory store in XmlDocument so that i can retrieve the value. I am new in using xml... Can you all pls help? urgent thanks

    search this forum, it's been asked and answered a thousand times.

  • 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

  • Sending via XML with changeable tags

    I've been using the following very successfully to pass varialbes for an update via $_POST to a php:
    <mx:HTTPService id="sendtophp" url="http://10.101.50.60/update.php" useProxy="false" method="POST">
        <mx:request xmlns="">
         <key>{keytoinsert}</key><value>{valuetoinsert}</value>
        </mx:request>
    </mx:HTTPService>
    Works great. However instead of sending the format '<key>{keytoinsert}</key><value>{valuetoinsert}</value>' I want to send the key as the tag.
    e.g. <{keytoinsert}>{valuetoinsert}</{keytoinsert}>
    But this doesn't seem to work:
    <mx:HTTPService id="sendtophp" url="http://10.101.50.60/update.php" useProxy="false" method="POST">
        <mx:request xmlns="">
         <{keytoinsert}>{valuetoinsert}</{keytoinsert}>
        </mx:request>
    </mx:HTTPService>
    I get an 'invaid character or markup found in script block. Try surrounding your code with a CDATA block'
    Can anyone steer me in the right direction?

    Hi,
    i know this way with mail package... as i wrote this is no problem.
    My problem is that i have a xml structure which i want to send as email.
    Just an email with and XML attachment of the XI Message. No Mail Content like in your given Weblogs.
    for example:
    <root>
    <receivermail>mailadress</receivermail>
    <tag1>value</tag1>
    <tag2>value</tag2>
    <tag3>value</tag3>
    </root>
    an on email i want just an xml attached like:
    <root>
    <tag1>value</tag1>
    <tag2>value</tag2>
    <tag3>value</tag3>
    <root>
    when i set the mail adress in CC its no problem, but how i do this with dynamic mail reciever?
    regards,
    robin

  • 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

Maybe you are looking for

  • Logical and Physical Delete

    Hi Everyone, I am a newbie to Oracle. What is Logical Delete and What is Physical Delete ? Help is appreciated. Thanks in advance, KR

  • How to import select photos from Iphoto into Adobe Elements

    How to import select photos from Iphoto into Adobe Elements

  • Working on SAP BW

    Hi Gurus, Can you please give me information on how to work on SAP BW? What are the tcodes, what can we get from SAP BW? Please give me some working knowledge on it. Thanks

  • 'Printer offline' error message

    My Epson XP-405 printer is turned on and working normally. But when I send an InDesign document to it I get the false error message 'Printer offline'. Documents created in all my other programs print without problems.

  • IPod Auto Update

    I can't figure out how to auto update my iPod. Every time I want to add music I have to drag and drop onto the iPod icon in iTunes. Is there something in my settings that I have set wrong or what?