Regex with xml for italicize or node creation

Okay
Guess it's a complex situation to explain.
I am working on the text content of xml documents again. made quite a lot of progress with some of my other regex requirements.
I am looking for a specific set of words to italicize say for example 'In Vitro'
String Regex = "In Vitro";
// here I get the text of a particular xml Node which is a text node
String paragraph = nl.item(i).getNodeValue();
//Value of paragraph before replace is "and lipids and In Vitro poorlysoluble(in water"
String replace = "<Italic>In Vitro<Italic/>";
String paragRepl = m.replaceFirst(replace);
//Value of pargRepl after regex replace is "and lipids,?;:!and <Italic>In Vitro<Italic/> poorlysoluble(in water"
//then I update the content of the node again
nl.item(i)..setNodeValue(paragRepl);
// save the xml documentthe italic tag is interpreted by our custom stylesheet to display "In Vitro" in italics, the reason it cannot do that is because the the character entities of the < and > have been put in the text content of the node i.e &lt; and &gt;. On closer examination of the text of the node after the document was saves, it appeared this way " &lt;Italic>In Vitro&lt;Italic/> ". For some reasom the greater than sign came out okay, but still no point, It didn't actually create a new node. I am not sure how you can automatically put tags around specific text you find in xml documents using regex, or If I have to create a new node at that point.
it's xml so these entities come into picture.
any help is greatly appreciated, in short I need to just add a set of tags to a particular regex I find in an xml document,
thanks in advance
Jeevan

okay i am getting closer to the solution as there is an api call from another proprietary language that would do this
but as I loop through the xml document, it keep selecting the text "In Vitro" even after it has been italicized.
So I guess my next challenge is getting a regex which looks for "In Vitro" but not italicized
For regex so far I have seen case insensitive handling, I have seen for italics
basically if I I can get my hands on a regex for example
String regex = "In Vitro && Not Italic"
any help is appreciated
Jeevan

Similar Messages

  • Single detail Record repeated with xml for in wcf sql for xml polling.

    Hi,
    I am getting a weird results for a inner join of header detail with for xml auto, element.
    If I run the query in sql it gives me master detail results as expected. i.e
    <HEADER>
    <ID>1</ID>
           <DETAIL><ID>1</ID></DETAIL>
         <DETAIL><ID>2</ID></DETAIL>
    </HEADER>
    In BizTalk I configured the receive location and added a root node and the namespace to the binding properties.
    I get results as.
    <HEADER>
    <ID>1</ID>
           <DETAIL><ID>1</ID></DETAIL>
    </HEADER>
    <HEADER>
    <ID>1</ID>
           <DETAIL><ID>2</ID></DETAIL>
    </HEADER>
    Please Advice.
    Thank you and have great day! Vivek Kulkarni MCAD.net

    Hi Vivek,
    Took a while to simulate your issue. The usage of "FOR XML AUTO, ELEMENTS" is generally used in the old SQL-adapter. To get this working in the WCF-SQL adapter, you need to have some properties set which is not explored well.
    The issue is due to the way you have defined the SQL query and the "InboundOperationType" property of the WCF-SQL adapter. Here is the steps I have done to get the result as you wanted in WCF-SQL adapter, the same output as "FOR XML AUTO,
    ELEMENTS " in SQL.
    In the binding of the WCF-SQL adapter, select the  "InboundOperationType" property to "XMLPolling". The default is "Polling". 
    In the "Polling Statement", ensure the SQL statement which will give results the XML-output as you wanted. So if you have used following statement in SQL management studio, then use the same statement in the "Polling Statement" property
    of the Receive location. Ensure you DON'T remove the "For XML AUTO" statement while configuring the SQL query in receive location. As here you have choose "XMLPolling" as the value for  "InboundOperationType"
    property, the output of the SQL statement should be XML. 
    SELECT Header.ID
    ,Detail.ID
    FROM Header
    JOIN Detail ON Detail.OrderHeaderID = Header.ID
    FOR XML AUTO, ELEMENTS
    Note: You can either use SQL select statement or stored procedure. Even if any of these method used to get the resultset from SQL db, ensure it return the output in XML.
    Above query is what I have used to simulate your case, you can change it to suit your actual SQL table and column names.
    In the "PolledDataAvailableStatement" property I have used the following which would ensure that "Polling Statement" statement executes. I assume you're using this to learn how WCF-SQL adapter works, in real time you may need to update
    the query in SQL so that SQL doesn't return the resultset continuously
    SELECT top 1 Header.OrderID
    ,Detail.DetailID
    FROM Header
    JOIN Detail ON Detail.OrderHeaderID = Header.OrderID
    Try the setting, the structure of the output using the above using "XMLPolling" values in "InboundOperationType" property of the receive location binding will be same as the "FOR XML AUTO, ELEMENTS" in SQL. You may need to change
    the rootname property to suit your actual expected output.
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • ADO's Use with XML for Data Transfer

    Does anyone know if ADO is supported as a data transfer method
    between XML and Oracle8i and back (from Oracle8i and XML)? If
    not, are any other Microsoft drivers supported for this type of
    operation?
    null

    Hi there,
    I have a similar question for you: I have an ASP page (coded in vbScript) that connects to an oracle 9i database via ODBC and accesses data using ADO.
    Using this method I can read and write to the database successfully for all data types except that of XML Type.
    It is my understanding that a column of XML Type is fundamentally treated as a CLOB column underneath the covers. Then why can I write data to a CLOB column and not to an XML column using ADO methods??
    Here is the code I am using:
    'put my dom object into a variable
    Dim xmlDoc
    xmlDoc = objDom.xml
    ' Connection string
    Dim cnxn
    Set cnxn = Server.CreateObject("ADODB.Connection")
    cnxn.Open "dsn=sc3;uid=user;pwd=password;"
    ' Recordset object
    Dim rs
    Set rs = Server.CreateObject("ADODB.Recordset")
    rs.Open "Select * FROM xmltabletest", cnxn, 2, 2
    'write xml document to column of xml type
    rs.AddNew
    rs("xmlcol") = xmldoc
    rs.Update
    ' clean up
    rs.Close
    cnxn.Close
    Set rs = Nothing
    Set cnxn = Nothing
    Any help with this would be great. I'd also like to write the xml document to a table of xml type using the same/similar method.
    Can anyone help me please?!?
    Thanks in advance,
    Ari

  • Using Coldfusion with XML for Flash photogallery

    Hello community. I have created a site for my son's
    kindergarten for free because I wanted to say thanks, since my son
    was very happy.
    The site has been created using coldfusion because I gave
    them some control on news, new children, waiting list, etc.
    They just asked me they want to be able to modify all the
    content of the site, so I started working on a CMS for it.
    There are two section on the site, video gallery and photo
    gallery that are flash - XML based galleries.
    I know that if I explain to them how to modify the XML files
    in order to change photos and videos, they'll screw the gallery.
    Is there any way I can access the content of my XML file from
    coldfusion and allow modification, like adding new photos to the
    existing ones, or modifying the caption on the existing ones?
    So basically I need to them to be able to click on "Modify
    photo gallery", then see all the childs (photos) and be able to
    modify/add.
    Thank you so much for any info or help.

    quote:
    Originally posted by:
    DaniFusionWeb
    Hello community. I have created a site for my son's
    kindergarten for free because I wanted to say thanks, since my son
    was very happy.
    The site has been created using coldfusion because I gave
    them some control on news, new children, waiting list, etc.
    They just asked me they want to be able to modify all the
    content of the site, so I started working on a CMS for it.
    There are two section on the site, video gallery and photo
    gallery that are flash - XML based galleries.
    I know that if I explain to them how to modify the XML files
    in order to change photos and videos, they'll screw the gallery.
    Is there any way I can access the content of my XML file from
    coldfusion and allow modification, like adding new photos to the
    existing ones, or modifying the caption on the existing ones?
    So basically I need to them to be able to click on "Modify
    photo gallery", then see all the childs (photos) and be able to
    modify/add.
    Thank you so much for any info or help.
    If you are using ColdFusion 7/8 this should be quite easy.
    You'd basically:
    1) Read the XML file into ColdFusion memory
    2) Loop through the nodes you need etc outputting them to a
    page or dynamically built form fields
    3) Allow the user to edit these fields then on submit have
    ColdFusion tale the variable holding the form data and write it to
    an XML file again via a loop, overwriting the previous file.
    Clearly you'll need to be careful on validating the input but
    it should be pretty straightforward.
    I didn't have time to write any code but look at the
    following functions and tags to find out more:
    <cffile />
    <cfxml />
    Here's some more info:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_u-z_4.html
    Cheers,
    Mikey.

  • Problems with Xml for mixed frame rate clips in 23.98 sequence

    When an XML from an fcpx sequence which has mixed frame rate clips in 23.98 timeline is put through X2Pro the resulting AAF is incorrect as the non 23.98 clips are out of sync and have the wrong frame conversion applied. The same thing happens with the XML through Xto7 - the fcpxml appears not to be handling the frame rate conversion correctly in the XML process.
    Anyone else had this or know of a workaround ( other than converting all media to 23.98 before editing obviously!)

    What happened to us is that the DP shot all the footage in 59.94 mode. Some at 60p, and some at 24p WITHOUT pulldown. We tried capturing it again as 24p at 23.98 but it wouldn't come in that way. So we had to live with it at 59.94. And yes, we couldn't slip it on the timeline, we had to match back to the master clip and choose different in points until it came in right.
    It was a horrible mess and we won't be hiring that DP again. I hope that re-capturing does it for you, it didn't for us.
    Good Luck.
    Shane

  • Possible Issue with help for "disable property node"

    Hi, In Labview version 9.0 (32-bit) there seems to be a conflict between help info for the Enum constant  as applied to the disable property node . If I right click on a control variable and select create-> property node -> disable. If I then right click on disable -> help for disable, the help lists the following interger assignment 0 - Disable, 1- Disable and Greyed, 2 Enable. If however, I right click on the generated Enum constant and select properties -> Edit Items, the listing order is as follows; 0- Enable, 1- Disable, 2- Disable and Greyed. The latter assignment is how the Enum constant actually works. It appears that the help information may be incorrect.
    Regards,
    Pat    
    Solved!
    Go to Solution.

    Hi,
    I compared it with 8.2.
    In 8.2 creating a constant, indicator or control by right clicking on the "disabled" property node gave an object of type U8, which operates in accordance with the "help for disabled", ie
    0=Enable
    1=Disable
    2=Disable/grey
    In 9.0/2009 right clicking and creating on the property node gives an Enum (of datatype U8) with names/values in agreement with 8.2, and operation as in 8.2, BUT the "help for disabled" message says
    0=Disable
    1=Disable/grey
    2=Enable
    Thus I would agree that this is a documentation error, and the LabVIEW is correct.
    N.I. Can we have a CAR please?
    P.S. I do think that it is a good idea to have made the disabled property an enum, whilst maintaining compatability with previous code. I always wondered why it wasn't that way in earlier revisions.

  • Realize a J2ME reporting thin client (for PDA) with XML for Analysis

    I'd create a reporting thin client (on PDA or smartphone) that uses the web service XMLA. How I can implement it? Can I use J2ME ?
    Can i have more informations ??

    I haven't tried generating stubs from WTK, but you could also try to access your WS by programming it. One of the solutions available for most of J2ME devices (MIDP/CLDC) is kSOAP (<a href="http://www.ksoap.org">www.ksoap.org</a>). I've tested it with Apache Axis and .NET-based WS servers - it works just fine, so I assume it should be working with SAP as well. This two articles might be valuable for you:
    http://www.javaworld.com/javaworld/jw-08-2002/jw-0823-wireless.html
    http://java.sys-con.com/read/37193.htm?CFID=671691&CFTOKEN=A29B9B9F-EE05-1072-E2866AEB2CFB4A79

  • Help with xsl for multiple child node

    We have the following data.
    row          meID EI
    1          a a1
              a2
              a3
              a4
    2          b b1
              b2
    3          c c1
              c2
    I would like to use XSL to display the data in the fashion:
    <row=1>
    <meID>a</meID>
    <EI>a1</EI>
    <EI>a2</EI>
    <EI>a3</EI>
    <EI>a4</EI>
    </row>
    <row=2>
    <meID>b</meID>
    <EI>b1</EI>
    <EI>b2</EI>
    </row>
    <row=3>
    <meID>c</meID>
    <EI>c1</EI>
    <EI>c2</EI>
    </row>
    Currently, I am only able to get the XSL to lump all the EIs together:
    <row=1>
    <meID>a</meID>
    <EI>a1a2a3a4</EI>
    </row>
    What do I need to change in the XSL to make it display 4 rows of EI?
    Thanks.

    The data should look like:
    1_________a_________a1
    ____________________a2
    ____________________a3
    ____________________a4
    2_________b_________b1
    ____________________b2
    3_________c_________c1
    ____________________c2

  • Seeking for API to deal with XML processing instructions

    Hi all,
    I have a requirement to list all the processing instructions inside a xml document.
    E.g. For the document
    <?xml version="1.0" encoding="utf-8"?>
    <?AAA att1="att 1"?>
    <?BBB?>
    <?CCC?>
    <body>
      <empty>True</empty>
    </body>
    I need to print out PIs AAA, BBB, CCC.
    Two solutions i can find are:
    1. to treat the doc as a string and do a pattern search for <?*?>.
    2. use IF_IXML_DOCUMENT to traverse all the nodes and check their node types against IF_IXML_NODE=>CO_NODE_PI_PARSED and TYPE = IF_IXML_NODE=>CO_NODE_PI_UNPARSED.
    However, I am wondering if there's any xml API to deal with XML PIs.
    During my research on this, i got IF_IXML_DOCUMENT. It provides two creation APIs for XML PI: CREATE_PI_PARSED and CREATE_PI_UNPARSED. However, there is no corresponding getter API found.
    Does anybody know if there is such one?
    Thanks in advance.

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Generate Photo Gallery XML for Spry with Adobe Bridge

    Wanted to post a note to what I've discovered/worked out -- a
    way to
    generate a very useful photos.xml from Adobe Bridge. If you
    use Bridge,
    it's very easy to add titles, keywords, ratings -- all kinds
    of metadata
    that one might use in a photo gallery. Here it is in case
    anyone wants
    to use.
    The script is based on one I found at the Adobe User to User
    Bridge
    Scripting Forum for exporting a CSV file.
    Note 1: this particular script doesn't take into account
    CDATA that
    might exist in your metadata, like ampersands in your title.
    I've just
    avoided using those, but you could also have the script write
    out a
    CDATA node for that info instead.
    Note 2: this script does not write out a thumbpath,
    thumbwidth or
    thumbheight attribute. But usually the thumbpath is the exact
    same as
    the regular "path" attribute, and the thumbwidth and
    thumbheight are
    just a ratio of the regular "width" and "height" attributes.
    I added a
    bit of JS to the gallery.js file to calculate those before
    growing the
    thumbnail on rollover.
    Personally I'm using keywords as categories and titles as
    captions and
    sorting by rating (stars in Bridge), so here's the .jsx file
    I created.
    The script should be saved to the folder "StartupScripts" in
    Program
    Files/Common Files/Adobe.
    Hope this is useful for others too!
    #target bridge
    if (BridgeTalk.appName == "bridge" ) {
    // create menu
    var menu = MenuElement.create( "command", "Export XML File",
    "at the end
    of Tools");
    menu.onSelect = function(m) {
    try {
    // ask for the name of the output file
    var f = File.saveDialog("Export XML file to:", "XML
    File:*.XML");
    if ( !f ) { return; }
    // open filestream and write first line
    f.open("w");
    f.writeln("\<photos\>\r\r");
    // get a list of all the visible thumbnails in Bridge
    var items = app.document.visibleThumbnails;
    for (var i = 0; i < items.length; ++i) { var item = items
    f.writeln("\<photo path = \"" + item.name + "\"" + "\r" +
    "width = " +
    "\""+ getWidth(item) + "\"" + "\r" + "height = " + "\""+
    getHeight(item)
    + "\"" + "\r" + "rating = " + "\""+ getRating(item) + "\"" +
    "\r" +
    "categories = " + "\""+ listKeywords(item) + "\"" + "\r" +
    "caption = "
    + "\""+ getTitle(item) + "\"" + " \>" + "\r" +
    "\<\/photo\>\r\r" ); }
    f.writeln("\<\/photos\>");
    f.close();
    } catch(e) {
    function getTitle(tn) {
    md = tn.metadata;
    md.namespace = "
    http://purl.org/dc/elements/1.1/";
    var varTitle = md.title;
    return varTitle;
    function getWidth(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/tiff/1.0/"
    var varWidth = md.ImageWidth;
    return varWidth;
    function getHeight(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/tiff/1.0/"
    var varHeight = md.ImageLength;
    return varHeight;
    function getRating(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/xap/1.0/"
    var varRating = md.Rating;
    return varRating;
    function listKeywords(tn) {
    md = tn.metadata;
    md.namespace = "
    http://ns.adobe.com/photoshop/1.0/";
    var Keywords = md.Keywords;
    var varKeywords = "" ;
    for ( var i = 0; i < Keywords.length; ++i ) { varKeywords
    = varKeywords
    + Keywords + ","; }
    return varKeywords;

    I updated the script so it exports an XML file from Bridge
    with full
    compatibility with the Spry Demo Photo Gallery, to use as
    photos.xml.
    It's at the same address:
    http://www.imagicdigital.com/spry/bridge_export_xml.zip
    To Use:
    The script goes in the folder "StartupScripts" in Program
    Files/Common
    Files/Adobe.
    Launch Bridge and browse to a folder that contains the files
    you want in
    your gallery -- the "source" folder, as it were.
    Choose the menu command "Tools > Export XML for Spry
    Gallery".
    Type a name for your XML file in the Save dialog box, choose
    a location,
    and hit "Save".
    In the dialog box that pops up, enter a max length/width for
    your
    thumbnails, in pixels. Some common sizes are "75" , "100" or
    "125".
    Hit "OK". You should see an alert pop up telling you "XML
    file
    successfully created!"

  • SSMS 2012:FOR XML PATH Using XPath Node Tests-Columnn name 'test()' contains an invalid XML identifier as required by FOR XML?

    Hi all,
    I am learning XPATH and XQUERY from the Book "Pro T-SQL 2008 Programmer's Guide" written by Michael Coles, (published by apress). I copied the Code Listing 12-8 FOR XML PATH Using XPath Node Tests (listed below) and executed it in my
    SQL Server 2012 Management Studio:
    --Coles12_8.sql // saved in C:/Documemnts/SQL Server Management Studio
    -- Coles Listing 12-8 FOR XML PATH Using XPATH Node Tests
    -- Retrieving Name and E-mail Addresses with FOR XML PATH in AdvantureWorks
    -- 16 March 2015 0935 AM
    USE AdventureWorks;
    GO
    SELECT
    p.NameStyle AS "processing-instruction(nameStyle)",
    p.BusinessEntityID AS "Person/@ID",
    p.ModifiedDate AS "comment()",
    pp.PhoneNumber AS "test()",
    FirstName AS "Person/Name/First",
    MiddleName AS "Person/Name/Middle",
    LastName AS "Person/Name/Last",
    EmailAddress AS "Person/Email"
    FROM Person.Person p
    INNER JOIN Person.EmailAddress e
    ON p.BusinessEntityID = e.BusinessEntityID
    INNER JOIN Person.PersonPhone pp
    ON p.BusinessEntityID = pp.BusinessEntityID
    FOR XML PATH;
    I got the following error message:
    Msg 6850, Level 16, State 1, Line 2
    Column name 'test()' contains an invalid XML identifier as required by FOR XML; '('(0x0028) is the first character at fault.
    I have no ideas why I got this error message.  Please kindly help and advise me how to resolve this error.
    Thanks in advance,  Scott Chang

    Hi Michelle, Thanks for your nice response.
    I corrected the mistake and executed the revised code. It worked nicely.
    I just have one question to ask you about the appearance of the xml output of my Co;les12_8.sql:
    <row>
    <?nameStyle 0?>
    <Person ID="1" />
    <!--2003-02-08T00:00:00-->697-555-0142<Person><Name><First>Ken</First><Middle>J</Middle><Last>Sánchez</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="2" />
    <!--2002-02-24T00:00:00-->819-555-0175<Person><Name><First>Terri</First><Middle>Lee</Middle><Last>Duffy</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="3" />
    <!--2001-12-05T00:00:00-->212-555-0187<Person><Name><First>Roberto</First><Last>Tamburello</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="4" />
    <!--2001-12-29T00:00:00-->612-555-0100<Person><Name><First>Rob</First><Last>Walters</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="5" />
    <!--2002-01-30T00:00:00-->849-555-0139<Person><Name><First>Gail</First><Middle>A</Middle><Last>Erickson</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="6" />
    <!--2002-02-17T00:00:00-->122-555-0189<Person><Name><First>Jossef</First><Middle>H</Middle><Last>Goldberg</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="7" />
    <!--2003-03-05T00:00:00-->181-555-0156<Person><Name><First>Dylan</First><Middle>A</Middle><Last>Miller</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="8" />
    <!--2003-01-23T00:00:00-->815-555-0138<Person><Name><First>Diane</First><Middle>L</Middle><Last>Margheim</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="9" />
    <!--2003-02-10T00:00:00-->185-555-0186<Person><Name><First>Gigi</First><Middle>N</Middle><Last>Matthew</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="10" />
    <!--2003-05-28T00:00:00-->330-555-2568<Person><Name><First>Michael</First><Last>Raheem</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="11" />
    <!--2004-12-29T00:00:00-->719-555-0181<Person><Name><First>Ovidiu</First><Middle>V</Middle><Last>Cracium</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    I feel this xml output is not like the regular xml output.  Do you know why it is diffrent from the regular xml xml output?  Please comment on this matter.
    Thanks,
    Scott Chang
    What do you mean by regular xml document? Are you referring to fact that its missing a root element? if yes it can be added as below
    USE AdventureWorks;
    GO
    SELECT
    p.NameStyle AS "processing-instruction(nameStyle)",
    p.BusinessEntityID AS "Person/@ID",
    p.ModifiedDate AS "comment()",
    pp.PhoneNumber AS "text()",
    FirstName AS "Person/Name/First",
    MiddleName AS "Person/Name/Middle",
    LastName AS "Person/Name/Last",
    EmailAddress AS "Person/Email"
    FROM Person.Person p
    INNER JOIN Person.EmailAddress e
    ON p.BusinessEntityID = e.BusinessEntityID
    INNER JOIN Person.PersonPhone pp
    ON p.BusinessEntityID = pp.BusinessEntityID
    FOR XML PATH('ElementName'),ROOT('RootName');
    replace ElementName and RootName with whatever name you need to set for element as well as the root element
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Creating a template in Financials for using with XML Publisher..

    to whom..
    I hope someone can help please. I'm trying this process for the first time so please bear with me..
    Ive got everything in place for producing PDF reports via XML Publisher through ORACLE Financials but I'm stuck on the last
    part.
    According to the notes (Publishing Concurrent Requests with XML Publisher - An Oracle White Paper Jan 2005) I've come
    across, I need to update the concurrent program definition with a default template (when you submit a request, its in the
    'upon completion' last section where theres an option to change or enter a template layout) yet this section is GREYED OUT.
    Now according to my notes, to create a template you..
    "Setting a Default Template....to select a default template in the Update Concurrent Program page available from the System Administration
    responsibility (Note that this field is available only from System Administration. It is not available from the System
    Administrator Forms interface)......."
    My query is, where is this 'Update Concurrent Program page'..?
    Thanks In Advance..
    Steven
    Edited by: user554089 on Sep 16, 2008 4:02 AM

    OK, so now I've found out how to 'default a template for EBS 11i' (System Administration > Concurrent > Programs - notice its Administration not Administrator)... but its unavailable.. in the the 'OnSite Setting' tab there was no box visible for me to enter a template filename. Does anybody know why this could be?
    thanks,
    Steven

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • How to insert into table from a xml with XDE for java?

    want to insert into the oracle tables from the xml with XDE for java, some sample better. thank you.

    XML Document may be stored in a SQL database with XML SQL Utility.
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10794/adx08xsu.htm#i1008168
    XML Document may be stored in a SQL database with Oracle XML DB.
    http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10790/xdb03usg.htm#CEGFECFH

  • Issue with XML nodes while Import

    Hi I am trying to import R3 data to MDM via XI. In my XML that generated from XI, has a separate nodes for main table and Qualifier Lookup tables. What happens is, in Import Manager, when a Qualifier Lookup table has only one record for a main table record, then those qualifier lookup table fields are displayed as main table elements. In that case my import MAP won't work for that Qualifier table. Any thoughts/advices?.
    Thanks
    Job.
    Edited by: Job C Daniel on Dec 21, 2007 8:00 AM

    Hi Amol,
      Thanks for your reply. My import map was created based on xml from XI( may be I should have used xsd?). I am using Products (partly customized from standard) repository. I have couple of issues.
    1. In the import manager when I opened the xml from XI, in source hiarchy tree table I see main table node and other QL(Qualifier Lookup) nodes for example Location Data and Sales Data. XI generates one XML for a record. Sometimes Sales Data QL node disappears (in import manager) because it has only one sales data record for that main table record and sales fields are populated as elements of main table node. This inconsistency is going to have problem on my Sales Data QL Map.
    2. Likewise, I do not see Material Number (Main table "Key") in Sales Data or Location Data (QL) nodes in IM. But I need that in order to load qualifier fields.
    Your help on this is appreciated.
    Thanks
    Job.

Maybe you are looking for

  • ITunes has lock symbol; iPod will not update songs from library

    My iTunes has a lock symbol next to remaining space area. Also, the remaining space says that there is 1.4GB of spaced used up even though there are no songs in the iPod folder or on the iPod itself. I have tried resetting the ipod and tried to copy

  • Access result set in user define type of table

    here is the situation. I have a stored procedure that dequeues messages of a AQ and passes them as an OUT parameter in a collection of a user defined type. The same type used to define the queues. The java code executes properly but seems like we don

  • MacBook Pro will not boot after switching graphics cards

    Dear All, I have a late-2008 unibody MacBook Pro. I have had it since April 2009, and I have not encountered any real problems with it. Yesterday, I switched to the 9600 graphics card for the first time since purchasing the machine. It logged me out

  • While in PDF format it is showing some starting fields only

    Hi All, I created sample report and build Layout template in word doc. I uploded RTF template into Report & given output format in Exel&Pdf. When i view the output for Exel format is OK While in PDF format it is showing some starting fields only (I c

  • Web Report - Hide Repeated Values

    My web report hides repeated values regardless of the query setting.  Is there any way to set a specific column to not hide repeated values?  Using the table API? Thanks!