Moving an existing xml element into aTable

Hi Everyone,
After importing the xml I need to place or convert the xml elements into the table. Is there any way to do this by JS?
Here is the sample Table xml elements....
<table-wrap id="ch3_t1">
<label>Table 3.1</label>
<caption>
<title>Anatomy and Classification of Major Hepatic Resections</title>
</caption>
<table>
<thead>
<tr>
<th align="left" valign="top" colspan="5">Anatomic Classification</th>
</tr>
<tr>
<th align="left" valign="top">Couinaud</th>
<th align="left" valign="top" colspan="2">Goldsmith and Woodburne</th>
<th align="left" valign="top">Brisbane</th>
<th align="left" valign="top">Segments resected</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="top">Right hepatectomy</td>
<td align="left" valign="top" colspan="2">Right hepatic lobectomy</td>
<td align="left" valign="top">Right hemihepatectomy</td>
<td align="left" valign="top">V, VI, VII, VIII</td>
</tr>
<tr>
<td align="left" valign="top">Right lobectomy<sup>a</sup>
</td>
<td align="left" valign="top" colspan="2">Extended right hepatic lobectomy</td>
<td align="left" valign="top">Right trisectionectomy</td>
<td align="left" valign="top">IV,V,VI, VII, VIII<sup>b</sup>
</td>
</tr>
<tr>
<td align="left" valign="top">Left hepatectomy</td>
<td align="left" valign="top" colspan="2">Left hepatic lobectomy</td>
<td align="left" valign="top">Left hemihepatectomy</td>
<td align="left" valign="top">II, III, IV</td>
</tr>
<tr>
<td align="left" valign="top">Extended left hepatectomy<sup>a</sup>
</td>
<td align="left" valign="top" colspan="2">Extended left lobectomy</td>
<td align="left" valign="top">Left lateral sectionectomy</td>
<td align="left" valign="top">II, III, IV, V, VIII<sup>b</sup>
</td>
</tr>
<tr>
<td align="left" valign="top">Left lobectomy</td>
<td align="left" valign="top" colspan="2">Left lateral segmentectomy</td>
<td align="left" valign="top">Left trisectionectomy</td>
<td align="left" valign="top">II, III</td>
</tr>
</tbody>
</table>
</table-wrap>
Looking forward your replies... Your help will be thankful....

You may want to look again, specifically section 20.11 Moving Oracle Enterprise Content Management to a Production System, Task 4.
The same basic steps would apply to 10g, minus the WebLogic parts. (Also note that prior to 11g, what you are attempting is really a non-supported configuration. In 11g, Oracle at least gives this set of supported pointers.)

Similar Messages

  • Existing XML documents into KM

    Hello Everyone
    Is there a way to load existing xml documents into KM and then maintain them using xml forms built using the form builder. Any help is greatly appreciated.
    Thanks
    Swetha

    Hi Renuka
    You can move the XML projects from one server  to another.The Xml forms created is stored in the path 'etc\xmlforms' in KM. You can send it out and Upload to the target server instead of creating the same in the Target server from the scratch.
    Regards
    Geogi

  • Check for existing XML element

    Dear all,
    I'm trying to write a simple script first checking to see whether an XML element exists, and then creating it if it doesn't. I've tried editing a piece of code that I used previously to do the same for paragraph styles, but apparently it's not that straightforward. Currently, all I get is the error "Cannot execute the script in target engine 'main'!" Without the checking, adding the XML element based on the search result works fine.
    /* Find all instances of the word "Superscript" */
    app.findTextPreferences.findWhat = "Superscript";
    var mySuperscript = myDocument.findText(); // Save search result for future reference
    /* See if an XML element named "Superscript" already exists, and create it if that's not the case; then add it to all instances of the word "Superscript" */
    var myXMLElementSuper = myDocument.xmlElements.item("Superscript");
    try {
    var myName = myXMLElementSuper.name;
    catch (myError){
        var myXMLElementSuper = myDocument.xmlElements.add({markupTag:"Superscript", xmlContent:mySuperscript[i]});}
    Any assistance would be greatly appreciated!
    Kind regards and thanks in advance,
    Julian

    Try this,
    app.findTextPreferences=app.changeTextPreferences=null; 
    app.findTextPreferences.findWhat = "Superscript"; 
    var mySuperscript = app.activeDocument.findText();
    for(var i=0; i< mySuperscript.length; i++)
        if(mySuperscript[i].associatedXMLElements[0].markupTag.name != "Superscript")
            app.activeDocument.xmlElements[0].xmlElements.add({markupTag:"Superscript", xmlContent:mySuperscript[i]}); 
    app.findTextPreferences=app.changeTextPreferences=null; 
    Vandy

  • How can I get the Attribute Value in the existing XML Elements-Reg.

    Dear All,<br /><br />  I have the InDesign Document with xml Based, now I want to get the XML Elements name and XML Attributes for each Elements, using SDK Concepts. <br /><br />Example:<br /><br /> <chapter>  chapter1 </chapter> id = "ch001"<br /> <sec> Section ....</sec> id ="se001"<br /> <para> para ....</para> id="pa001"<br /><br />How can I get the XMLElements & XML Attributes in the InDesign-XML Structure.<br /><br />Please  any one can suggest me....<br /><br />Thanks & Regards<br />T.R.Harihara SudhaN

    Dear Dirk
    Many Thanks for the Suggestions, Now I search and study the XML concepts. Meanwhile, I need your suggestions for further Development in SDK -XML concepts.
    I am using the SnippetRunner -SDK file, their given some XML based programmes. [Create XML Elements, Elements + Attributes, XML Comments] and etc...
    Hope U will help me to Develop the SDK- XML Concepts.
    Thanks & Regards
    T.R.Harihara SuduhaN

  • How to parse whole xml elements into a java String

    hello everybody,
    I am trying to parse whole xml into a string for example
    my xml file is as below:
    <root>
        <element>
           <data id="1">1</data>
        </element>
        <element>
           <data id="2">2</data>
        </element>
    </root>
    in java whole data should be transfered as
    String xmlString ="<root><element><data id=\"1\">1</data></element><element><data id=\"2\">2</data></element></root>";or in a simple way can xml be copied into a string? any assistance ...
    thanQ in Advance.
    Han.

    This code is to convert xml document to a string.
                             try {
                                  javax.xml.transform.TransformerFactory tfactory = TransformerFactory.newInstance();
                                  javax.xml.transform.Transformer xform = tfactory.newTransformer();
                                  javax.xml.transform.Source src = new DOMSource(xmlString);
                                  java.io.StringWriter writer = new StringWriter();
                                  StreamResult result = new javax.xml.transform.stream.StreamResult(writer);
                                  xform.transform(src, result);
                                  //System.out.println(writer.toString());          
                             } catch (TransformerConfigurationException e) {
                                  e.printStackTrace();
                             }catch(Exception ex )
                                  ex.printStackTrace();
                             }

  • Trying to Insert an XML Element into XML data stored in CLOB column

    Hi all,
    My ORACLE DB version is:
    ('Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production');
    ('PL/SQL Release 11.2.0.2.0 - Production');
    ('CORE 11.2.0.2.0 Production');
    ('TNS for Linux: Version 11.2.0.2.0 - Production');
    ('NLSRTL Version 11.2.0.2.0 - Production');
    I have this XML data stored in a CLOB column:
    <Activity>
         <Changes>     
         </Changes>
         <Inserts>     
         </Inserts>
         <Definition>     
         </Definition>
         <Assignment TYPE="Apply">     
         </Assignment>
         <Spawned>
              <Activity>576D8CD9-57A1-8608-1563-8F6DC74BDF3C</Activity>
              <Activity>11226E79-5D24-02EB-A950-D34A9CCFB3FF</Activity>
              <Activity>DAA68DC0-CA9A-BB15-DE31-9596E19513EE</Activity>
              <Activity>93F667D6-966A-7EAD-9B70-630D9BEFDDD2</Activity>
              <Activity>FA63D9D3-86BB-3FF0-BE69-17EAA7581637</Activity>
         </Spawned>
         <SpawnedBy>AFC49BD4-5AA7-38C0-AE27-F59D16EE1B1C</SpawnedBy>
    </Activity>
    I am in need of some assistance in creating an update that will insert another <Activity>SomeGUID</Activity> into the <Spawned> parent.
    Any help is greatly appreciated.
    Thanks.
    Edited by: 943783 on Dec 14, 2012 12:58 PM

    See XML updating functions : http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb04cre.htm#i1032611
    For example :
    UPDATE my_table t
    SET t.my_clob =
          XMLSerialize(document
            insertChildXML(
              XMLParse(document t.my_clob)
            , '/Activity/Spawned'
            , 'Activity'
            , XMLElement("Activity", 'Some GUID')
    WHERE ...
    ;Although it works, there's overhead introduced by parsing the CLOB, then serializing again.
    Is there any chance you can change the CLOB to SECUREFILE binary XMLType storage instead?
    You would then be able to benefit from optimized piecewise update of the XML and improved storage.

  • How to import an XML element into a loop parameter is XSL

    Hi,
    We are using XSL template to generate output in a pdf format. The input in an XML file. In the XSL we have a loop. Currently the initial and final value of the loop counter is hardcoded in the xsl file.
    <xsl:call-template name="forloop">
         <xsl:with-param name="i">1</xsl:with-param>
         <xsl:with-param name="count">6</xsl:with-param>
    </xsl:call-template>
    Down below we are using
         <xsl:template name="forloop">
              <xsl:param name="i"/>
              <xsl:param name="count"/>
              <xsl:if test="$i &lt;=$count">
                   <fo:table-row>
                   <xsl:call-template name="forloop">
                        <xsl:with-param name="i">
                             <xsl:value-of select="$i + 1"/>
                        </xsl:with-param>
    etc, etc.
    Query :
    Currently the final value of the loop is hardcoded to 6. I want to set its value based of an element BAR_CODE_PRINT_NUM value (which can be either 0 or 6) of the XML File.
    <LIST_G_BAR_CODE_PRINT>
    <G_BAR_CODE_PRINT>
    <BAR_CODE_PRINT>Y</BAR_CODE_PRINT>
    <BAR_CODE_PRINT_NUM>6</BAR_CODE_PRINT_NUM>
    </G_BAR_CODE_PRINT>
    </LIST_G_BAR_CODE_PRINT>
    Can anyone please tell me how this is to be done. I have tried the following but it did not work.
    Approach 1 :
    <xsl:if test="LIST_G_BAR_CODE_PRINT/G_BAR_CODE_PRINT/BAR_CODE_PRINT_NUM &gt; 3">
         <xsl:with-param name="count">6</xsl:with-param>
    </xsl:if>
    <xsl:if test="LIST_G_BAR_CODE_PRINT/G_BAR_CODE_PRINT/BAR_CODE_PRINT_NUM &lt; 3">
         <xsl:with-param name="count">0</xsl:with-param>
    </xsl:if>
    Approach 2 :
    <xsl:with-param name="count"><xsl:value-of disable-output-escaping="no" select="LIST_G_BAR_CODE_PRINT/G_BAR_CODE_PRINT/BAR_CODE_PRINT_NUM"/>
    </xsl:with-param>
    Thanks

    I have managed to resolve it. It was a problem with the nesting of the attribute. The following worked
    <xsl:with-param name="count"><xsl:value-of disable-output-escaping="no" select="/NUMNEWJOBCARD/LIST_G_BAR_CODE_PRINT/G_BAR_CODE_PRINT/BAR_CODE_PRINT_NUM"/></xsl:with-param>
    Thanks

  • Possible to Convert XML element into XML comments?

    Dear All,
    I need to automate perticular elements to be convertToXMLComments in InDesign using XML rule processer.
    It's Possible in InDesign Javascript (CS3 5.0.4 - windows)? else to help me any alternative ways?
    Thanks,
    Nagaraj

    You have to Imagine using conversion of comments

  • Adding text to parentStory destroys XML element / JavaScript, InD CS4

    Dear scripters,
    I'm currently stuck with this problem:
    - I'm writing text to text frames on a layout page
    - while writing some characters/strings are XML tagged (I'm creating an element)
    - I can do this only once, because adding more text after I have created an XML element destroys the link to the element
    Here's my sample:
    var MyBox = app.activeDocument.textFrames.add();
    MyBox.geometricBounds = ["0pt","0pt", "200pt", "200pt"];
    //Fill some content into the text frame
    MyBox.parentStory.contents = "bla";
    //create a xml element for some of the text
    app.activeDocument.xmlElements.item(0).xmlElements.add("test1", MyBox.parentStory.characters.itemByRange(1, 2));
    //so far so good...
    //now some calculating
    var result = "456";
    //add result to the text frame
    //doing this destroys the link to the existing xml element
    MyBox.parentStory.contents += result;
    //doing this creates a new xml element with the wrong characters selected and linked
    app.activeDocument.xmlElements.item(0).xmlElements.add("test2" , MyBox.parentStory.characters.itemByRange(4, 2));
    Can someone please help on?
    Best regards,
    TYPO

    Hello Harbs,
    thank you, it almost works now; the xml element brackets are not destroyed anymore.
    The only problem I have now is that the second element becomes a  child of the first one.
    How can I force each element to  be "independent"?
    Here's the code:
    var MyBox = app.activeDocument.textFrames.add();
    MyBox.geometricBounds = ["0pt","0pt", "200pt", "200pt"];
    var MyContent = "bla";
    MyBox.parentStory.insertionPoints[-1].contents = MyContent;
    MyBox.parentStory.characters.itemByRange(-1, -MyContent.length).select();
    app.activeDocument.xmlElements.item(0).xmlElements.add("test1" ,app.activeDocument.selection[0]);
    MyContent = "456";
    MyBox.parentStory.insertionPoints[-1].contents = MyContent;
    MyBox.parentStory.characters.itemByRange(-1, -MyContent.length).select();
    app.activeDocument.xmlElements.item(0).xmlElements.add("test2" ,app.activeDocument.selection[0]);
    Best regards,
    TYPO

  • Load XML content into HTML enabled TextField

    I'm trying to figure out how to use html such as <br />
    loaded from an XML element into a TextField.. if I use something
    like
    <desc>my description<br />line 2</desc> I
    get 3 nodes instead of one when loading the XML file. If I use
    something like <desc>my description&lt;br /&gt;line
    2</desc> then I get <br /> in the actual text.
    Can anyone clue me in as to how to store HTML in an XML
    element so I can load the content into a Dynamic TextField with
    HTML enabled?
    Thanks much!

    use the latter in your xml and use the htmlText property of
    your html-enabled textfield to display your text.

  • Inserting an element into an XML document

    I am simply looking insert a new element into an existing XML Document using JDOM. Here is my code so far:
    public class UserDocumentWriter {
         private SAXBuilder builder;
         private Document document;
         private File file = new File("/path/to/file/users.xml");
         private Element rootElement;
         public UserDocumentWriter() {
              builder = new SAXBuilder();
              try {
                   document = builder.build(file);
                   rootElement = document.getRootElement();
              } catch (IOException ioe) {
                   System.err.println("ERROR: Could not build the XML file.");
              } catch (JDOMException jde) {
                   System.err.println("ERROR: " + file.toString() + " is not well-formed.");
         public void addContact(String address, String contact) {
              List contactList = null;
              Element contactListElement;
              Element newContactElement = new Element("contact");
              newContactElement.setText(contact);
              List rootsChildren = rootElement.getChildren();
              Iterator iterator = rootsChildren.iterator();
              while (iterator.hasNext()) {
                   Element e = (Element) iterator.next();
                   if (e.getAttributeValue("address").equals(address)) {
                        contactListElement = e.getChild("contactlist");
                        contactListElement.addContent(newContactElement);
                        writeDocument(document);
         public void writeDocument(Document doc) {
              try {
                   XMLOutputter output = new XMLOutputter();
                   OutputStream out = new FileOutputStream(file);
                   output.output(doc, out);
              } catch (FileNotFoundException ntfe) {
                   System.err.println("ERROR: Output file not found.");
              } catch (IOException ioe) {
                   System.err.println("Could not output document changes.");
         }However, the problem is, the newly added element will always be appended to the end of the last line, resulting in the following:
    <contactlist>
                <contact>[email protected]</contact><contact>[email protected]</contact></contactlist>Is there anyway in which I can have the newly added element create it's own line for the purpose of tidy XML? Alternatively is there a better methodology to do the above entirely?

    Your question is not very clear.
    Do you want to know How to insert an element into an XML document?
    Answer: I can see you already know how to do it. You have added the element using addContent()
    or do you want to know How to display the XML in a tidy format?
    Answer: to view the XML in a properly formatted style you can you the Format class. A very basic way of viewing the XML would be:
       * Prints the Document to the specified file.
       * @param doc
       * @param filename
       * @param formatting
      public static void printDocToFile(Document doc, String strFileName,
          boolean formatting)
        XMLOutputter xmlOut = null;
        if (!formatting)
          xmlOut = new XMLOutputter();
        } else
          Format prettyFormat = Format.getPrettyFormat();
          prettyFormat.setOmitEncoding(false);
          prettyFormat.setOmitDeclaration(false);
          xmlOut = new XMLOutputter(prettyFormat);
        try
          if (doc != null)
            FileWriter writer = new java.io.FileWriter(strFileName, true);
            xmlOut.output(doc, writer);
            writer.flush();
            writer.close();
          } else
            System.out.println("Document is null.");
        catch (Exception ex)
          System.out.println(ex);
      }

  • Placing a PDF graphic into an existing XML hierarchy?

    I have an existing XML hierarchy that has a picture element that looks like this:
    <picture href=""></picture>
    which is already placed in a TextFrame.
    I'd like to place a PDF graphic at the location of this element, in essence updating it.
    I'm able to update the href attribute with the correct filename, but this doesn't create a placed graphic AFAICT.
    I can place a graphic in my TextFrame, but don't understand how to specify this <picture> element as its location.
    Any pointers to example code, or hints/tips?
    Greatly appreciated!
    Charles

    Oh, right. Did we forget to tell you that trying to use XML in InDesign is usually a bad idea and that you could do much better without it?
    Anywhohowwhichwhywhere...
    In keeping with that theme, XML doesn't really come into play. If you have a rectangular frame rect and a filename filename and you want to place  filename in the rect then you just use: rect.place(filename);
    So in your case, it's just about defining the two. I guess:
    var rect, filename;
    rect = app.documents[0].selection[ROW].associatedXMLElement.
        xmlElements[COL].xmlElements[0].xmlElements[0];
    filename = new File(rect.xmlAttributes[0].value);
    rect.place(filename);
    Of course, if your filename is really a URL you'll have a spot of trouble there, maybe.
    And you might be better off using XPath, i.e. .evaluteXPathExpression("//picture") to get your rectangle.
    And what if href= isn't the first attribute of the <picture/> tag?
    I suppose that perhaps you should consider using the .placeIntoFrame() and .placeXML() methods of the XMLElement class. I suspect you'll be sorry if you try, but go ahead :-).

  • XML tag markers moved: Find and Replace causing problem in xml elements

    Hi All,
    I am doing find and replace using GREP. While using the expression like $1, $2 (Found Items) in the change to field it changes the placement of tag marker. If the found item is a part of two of more xml elements, I am getting a serious problem while replacing it. (ie. The xml tag markers are moved.)
    See the screen shot below, then you may get better idea. And help me to overcome this issue.
    This is just an example to show you what i'm trying to say, there are so many cases like this.
    Original text/ Before doing find replace
    After replacing
    Green4ever

    Hi Peter and John,
    but it seems to me that the example is looking for any space that
    follows a semi-colon and has two word characters following it, and
    repalce that with an em space. I think you could do the same using look
    behind and look ahead and not need to replace the found text.
    Yes you are right about the look behind and look ahead. I'd like to show some more examples to show what the actual problem is,
    Original/Before Replacing,
    (Consider there is another case here, instead of em-space some times normal word space will also be there)
    Using the Grep:
    Find What---------> ^(\d+\.(?:\d+)?)~m
    Change To------------->$1\t
    After Replace:
    Did I make any sense? Eventhough this will not make any changes in the layout, my requirement is to insert the tab out-side the tag marker not indise.
    Green4ever

  • How to update Elements value inside existing xml file

    Hi Gurus,
    Am somehow new to java and working on xml with java, i have a scenario where i want to update the elements of my existing xml file, i know its possible as i have posted one code on this forum which updates the values of the arrtibutes of existing xml file. Ref :
    http://forum.java.sun.com/thread.jsp?forum=34&thread=186091&start=15&range=15&hilite=false&q=
    But am not able to use the same code to update the vlaues of the attribute.
    if i have this xml file :
    <?xml version="1.0"?>
    <RootElement>
    <Transaction>
    <Task9>
    <TaskID>Task9</TaskID>
    <Description>My Test Case</Description>
    <Time>12/12/2004</Time>
    </Task9>
    </Transaction>
    <Transaction>
    <Task2>
    <TaskID>Task2</TaskID>
    <Description>Testing my xml</Description>
    <Time>12/12/2004</Time>
    </Task2>
    </Transaction>
    </RootElemen>
    Now i want to update teh </Description> and </Time> field using the code that i have given above in the link.
    If any one can help me ill really appreciate.

    The value of an element is stored in a child node of that element. For example, let's say that "e" references the node <Description> then:
    e.getFirstChild().getNodeValue() => "My Test Case"

  • When Editing A Web Page In Edge Animate, How Can I Embed Edge Elements Into Pre-Existing DIV's?

    I created a basic layout with some boxes in Dreamweaver. I set the Overflow property on them to "Hidden". I then opened the page in Edge Animate. However I noticed that when I import stuff, such as an image, then try to drag it into one of the existing DIV's, it won't work. It stays on top of all the other DIV's. However if I create a box or some other sort of DIV directly in Edge Animate, I can drag the Image element into that, so it's enclosed within that DIV.
    I guess the workaround appears to be to embed the image into the DIV in Dreamweaver first, then open the page in Edge. However it would be nice to not have to keep jumping back and forth like that. Is there a way to do this in Edge Animate?
    Also, I noticed when I select one of the DIVs I made in Dreamweaver, many of the Properties such as Corners, Shadow, and Filters are missing. Can these only be used on DIV's created directly in Edge Animate?

    Hi, neohtom-
    What you're seeing is the difference between what we define as a static div (one that is defined outside of Animate) and a managed div (one that is defined inside of Animate).  Due to the fact that we expect other products to change a static div, we limit the amount of changes you can make to a static div.  Because we "manage" a div that is created inside of Animate, we allow a lot more changes to be made to a div.  Hope that answers your question!  I'd suggest creating divs within Animate if you want to eventually change them to have corners, etc.
    Cheers,
    -Elaine

Maybe you are looking for

  • How can i send a MESSAGE from an object to another object?

    i've following code: class Receiver {      private String str = "Your message is recieved to me.";      String sendBack() {           return str; class Sender {      public static void main(String[] args) {           Receiver r = new Receiver();     

  • How to get JMS through a firewall from a protected zone to DMZ?

    Hi,           We are going to access a server running WL6.1 from a java VM in the DMZ. The           access methods are JMS and RMI.           The IT staff say that we only need to specify what ip's, ports and protocols           to use, and they wil

  • How do I increase the length of text shown in a message?

    Alarm messages only show two lines of what you've written in an event. I want to see everything. How can I do this, is it possible?

  • IBooks Author Crashing

    I have almost completed an iBook using iBooks Author.  However in the final stages it keeps crashing.  It is quite a big file - around 1.5 GB and full of multimedia.  Any ideas on how to overcome this issue.  Many thanks.

  • APO -DP and BW linking

    Hi 1) Is it mandatory to do some setting in BW for data upload by APO consultant. 2) If a orgnaisation is using  manual forcasting by taking inputs frm sale team , sales data  than how to convenced client that he will get benifited from APO DP. Thank