Generate XML with tag names generated dynamically.

Hi Mark,
I want to generate xml in the following way using SQLXoperators.
But only problem is when i use the operator, the tag name should be supplied before in hand as parameter.
So it works well when the data for the tags are stored in seperate columns then its pretty simple.
But lets say the whole hierarchy of the nodes is stored in one table with ID-->PARENTID relationship and the text is stored in a column called description.
Now using CONNECT BY PRIOR i get the hierarchy and now based on the description value i have to generate the tags and then fill in the other details.
This is just a summary of what i want. the below sample has much more than that and actual data comes from more than one table.
But if i get the solution for what i asked before i think i can build the test of the thing.
<?xml version="1.0" encoding="UTF-8"?>
<SequenceData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SequenceData.xsd">
     <Header>
          <TemplateName>Template(XML)</TemplateName>
          <TemplateVersion>1.1</TemplateVersion>
          <CreatedUser>rsh2kor</CreatedUser>
          <CreatedDate>17-06-2005 12.12.22</CreatedDate>
     </Header>
     <List>
          <LoadPoints>
               <LoadPoint description="Loadpoint1_in_list(level one)">
                    <SetPhase>
                         <SetPhaseVariables>
                              <SetPhaseVariable>
                                   <Name>pRail</Name>
                                   <Unit>bar</Unit>
                                   <Value>100</Value>
                                   <SettlingTime>0.0</SettlingTime>
                              </SetPhaseVariable>
                         </SetPhaseVariables>
                         <MonitoredVariables>
                              <MonitoredVariable>
                                   <ID>12344<ID>
                                   <Name>MeasPoint</Name>
                                   <Unit>pascal</Unit>
                                   <Limit>10</Limit>
                                   <Tolerance>0.0</Tolerance>
                                   <Operator>&gt;</Operator>
                                   <AlertType>STOP</AlertType>
                              </MonitoredVariable>
                         </MonitoredVariables>
                    </SetPhase>
                    <WaitPhase>
                         <WaitingTime>10</WaitingTime>
                         <MonitoredVariables>
                              <MonitoredVariable>
                                   <Name>MeasPoint</Name>
                                   <Unit>pascal</Unit>
                                   <Limit>10</Limit>
                                   <Tolerance>0.0</Tolerance>
                                   <Operator>&gt;</Operator>
                                   <AlertType>STOP</AlertType>
                              </MonitoredVariable>
                         </MonitoredVariables>
                    </WaitPhase>
                    <MeasPhase>
                         <MeasPhaseVariables>
                              <MeasPhaseVariable>
                                   <Name>MeasPoint</Name>
                                   <Unit>pascal</Unit>
                                   <Result>0</Result>
                              </MeasPhaseVariable>
                         </MeasPhaseVariables>
                    </MeasPhase>
               </LoadPoint>
          </LoadPoints>
     </List>
     <Loop Iteration="5">
          <LoadPoints>
               <LoadPoint description="Loadpoint2_in_Loop">
                    <SetPhase>
                         <SetPhaseVariables>
                              <SetPhaseVariable LoopCount="1">
                                   <Name>pRail</Name>
                                   <Unit>bar</Unit>
                                   <Value>10</Value>
                                   <SettlingTime>0.0</SettlingTime>
                              </SetPhaseVariable>
                              <SetPhaseVariable LoopCount="2">
                                   <Name>pRail</Name>
                                   <Unit>bar</Unit>
                                   <Value>20</Value>
                                   <SettlingTime>0.0</SettlingTime>
                              </SetPhaseVariable>
                              <SetPhaseVariable LoopCount="3">
                                   <Name>pRail</Name>
                                   <Unit>bar</Unit>
                                   <Value>30</Value>
                                   <SettlingTime>0.0</SettlingTime>
                              </SetPhaseVariable>
                              <SetPhaseVariable LoopCount="4">
                                   <Name>pRail</Name>
                                   <Unit>bar</Unit>
                                   <Value>40</Value>
                                   <SettlingTime>0.0</SettlingTime>
                              </SetPhaseVariable>
                              <SetPhaseVariable LoopCount="5">
                                   <Name>pRail</Name>
                                   <Unit>bar</Unit>
                                   <Value>50</Value>
                                   <SettlingTime>0.0</SettlingTime>
                              </SetPhaseVariable>
                         </SetPhaseVariables>
                         <MonitoredVariables>
                              <MonitoredVariable>
                                   <Name>MeasPoint</Name>
                                   <Unit>pascal</Unit>
                                   <Limit>10</Limit>
                                   <Tolerance>0.0</Tolerance>
                                   <Operator>&gt;</Operator>
                                   <AlertType>STOP</AlertType>
                              </MonitoredVariable>
                         </MonitoredVariables>
                    </SetPhase>
                    <WaitPhase>
                         <WaitingTime>10</WaitingTime>
                         <MonitoredVariables>
                              <MonitoredVariable>
                                   <Name>MeasPoint</Name>
                                   <Unit>pascal</Unit>
                                   <Limit>10</Limit>
                                   <Tolerance>0.0</Tolerance>
                                   <Operator>&gt;</Operator>
                                   <AlertType>STOP</AlertType>
                              </MonitoredVariable>
                         </MonitoredVariables>
                    </WaitPhase>
                    <MeasPhase>
                         <MeasPhaseVariables>
                              <MeasPhaseVariable>
                                   <Name>MeasPoint</Name>
                                   <Unit>pascal</Unit>
                                   <Result>0</Result>
                              </MeasPhaseVariable>
                         </MeasPhaseVariables>
                    </MeasPhase>
               </LoadPoint>
          </LoadPoints>
          <List>
               <LoadPoints>
                    <LoadPoint description="Loadpoint3_in_list(level two)">
                         <MonitoredVariables/>
                         <SetPhase>
                              <SetPhaseVariables>
                                   <SetPhaseVariable>
                                        <Name>pRail</Name>
                                        <Unit>bar</Unit>
                                        <Value>100</Value>
                                        <SettlingTime>0.0</SettlingTime>
                                   </SetPhaseVariable>
                              </SetPhaseVariables>
                              <MonitoredVariables>
                                   <MonitoredVariable>
                                        <Name>MeasPoint</Name>
                                        <Unit>pascal</Unit>
                                        <Limit>10</Limit>
                                        <Tolerance>0.0</Tolerance>
                                        <Operator>&gt;</Operator>
                                        <AlertType>STOP</AlertType>
                                   </MonitoredVariable>
                              </MonitoredVariables>
                         </SetPhase>
                         <WaitPhase>
                              <WaitingTime>10</WaitingTime>
                              <MonitoredVariables>
                                   <MonitoredVariable>
                                        <Name>MeasPoint</Name>
                                        <Unit>pascal</Unit>
                                        <Limit>10</Limit>
                                        <Tolerance>0.0</Tolerance>
                                        <Operator>&gt;</Operator>
                                        <AlertType>STOP</AlertType>
                                   </MonitoredVariable>
                              </MonitoredVariables>
                         </WaitPhase>
                         <MeasPhase>
                              <MeasPhaseVariables>
                                   <MeasPhaseVariable>
                                        <Name>MeasPoint</Name>
                                        <Unit>pascal</Unit>
                                        <Result>0</Result>
                                   </MeasPhaseVariable>
                              </MeasPhaseVariables>
                         </MeasPhase>
                    </LoadPoint>
               </LoadPoints>
          </List>
     </Loop>
</SequenceData>
Pls help as soon as possible.
Thanks.

I'm not Mark, but check out this article it may be helpful.
http://www.oracle.com/technology/oramag/oracle/05-may/o35asktom.html
In 10g there are other SQL statements besides connect by prior for parent child relationships.
such as:
CONNECT_BY_ROOT—returns the root of the hierarchy for the current row; this greatly simplifies our query. (See below for an example).
CONNECT_BY_ISLEAF—is a flag to tell you if the current row has child rows.
CONNECT_BY_ISCYCLE—is a flag to tell you if the current row is the beginning of an infinite loop in your hierarchy. For example, if A is the parent of B, B is the parent of C, and C is the parent of A, you would have an infinite loop. You can use this flag to see which row or rows are the beginning of an infinite loop in your data.
NOCYCLE—lets the CONNECT BY query recognize that an infinite loop is occurring and stop without error (instead of returning a CONNECT BY loop error).

Similar Messages

  • EBS-R12 Generate XML (with data) from Embedded Data Definition

    Hi
    I'm new to running XMLP/BIP in EBS.
    I have found the extensive set of data definitions and templates in EBS and they work great out of the box.
    I, however, need to make template modifications.
    To this end, a correctly structured XML data template - containing all the data fields - is needed for loading into the template-builder in Word.
    If for example I take the embedded R12 data definition - XLAJELINESRPT.xml - for Posted Payable Invoices, and load it into the template builder, it provides the structure of the data template and not the structure of the output XML data.
    I have tried several ways to run the Data definition through XMLP using the concurrent manager attempting to intercept the generated XML (with data) but it either completes the process and uses the linked output template - producing the PDF - or other output - or if I remove the (output template altogether) it fails with an error.
    Maybe I'm missing an obvious step, but there has to be a way of taking the very comprehensive Data Definitions embedded in R12 EBS and using them in custom report templates.
    If I've totally missed the point, please give me the steps to follow.
    Many thaks in anticipation.
    Mike MacMurray

    HI Mike,
    You cannot load your Data Template into the MS Word Template Builder plugin, as it cannot be run to generate XML this way.
    You have two options to get the data from an XML Publisher Report run as a concurrent program in EBS.
    1) Using the XML Publisher Administrator responsibility, set an end date for both the Data Defintion and Template Definitions associated with the XLAJELINESRPT report.
    2) Leave the concurrent program, Data Defintions and Template Definitions exactly as they are and run the report. Once the report has completed, select the Concurrent Request, click "Diagnostics" then click "View XML". This will open the XML in a new browser window. You can then right click, View Source and then save this document locally.
    You can then load this XML into the MS Word Template Builder and start building your template.
    I hope this helps.
    Regards,
    Cj

  • Flex tree displaying raw XML with tags

    For some reason, after I setup a tree control and set its
    dataprovider to an XML that a coldfusion component is returning,
    the tree will display the raw XML in one node (including tags and
    everything) instead of formatting it into folders and files. At
    first I thought the coldfusion component was formatting the XML
    incorrectly but after I used one of the example XML's in the adobe
    docs, it will still display the RAW xml. This is the code where I
    define the tree control:
    <mx:Tree x="0" y="10" width="266" height="223"
    id="courseTree" dataProvider="{myxml}"/>
    and even using this example XML from the livedocs it still
    doesnt format it and display folders and entries, it will display
    the raw XML with tags:
    <mx:XML id="myxml">
    <Company label="Macromedia">
    <Branch label="Newton">
    <Department label="Flex Doc">
    <Title label="Intern">
    <Name label="Kapil Virdi"></Name>
    </Title>
    </Department>
    </Branch>
    </Company>
    </mx:XML>

    I also tried the following format for the XML as the
    datasource, and it still only displays the raw XML and not format
    it into folders
    <node>
    <node label="Finance" dept="200">
    <node label="John H" />
    <node label="Sam K" />
    </node>
    <node label="Engineering" dept="300">
    <node label="Erin M" />
    <node label="Ann B" />
    </node>
    <node label="Operations" dept="400" isBranch="true" />
    </node>

  • Generating XML with attributes using XSU

    Oracle document claims if the sql is:
    select empno as @empno from employee
    Using XSU to generate XML will produce and XML document with EMPNO as an attribute instead of element name. But this does not seem to work. There is an exception:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '&' is not allowed in an XML tag name.</ERROR
    Is there anything wrong or is there a work around

    Oracle document claims if the sql is:
    select empno as @empno from employee
    Using XSU to generate XML will produce and XML document with EMPNO as an attribute instead of element name. But this does not seem to work. There is an exception:
    <ERROR>oracle.xml.sql.OracleXMLSQLException: Character '&' is not allowed in an XML tag name.</ERROR
    Is there anything wrong or is there a work around

  • How to? regarding adding xml parent tag in generated xml script using C# scripting

    Hi All,
    I have a set of transformations, which will generate xml data by reading rows from database
    here is my data flow https://social.msdn.microsoft.com/Forums/getfile/606619
    <Customer> 
    <CustomerId>1</CustomerId> 
    <Name></Name> 
    <Title></Title> 
    <Phone>1 (11) 500 555-0162</Phone> 
    <Gender>F</Gender> 
    <MaritalStatus>S</MaritalStatus> 
    <YearlyIncome>70000</YearlyIncome> 
    <BirthDate>15-02-1968 12:00:00</BirthDate> 
    <EmailAddress>[email protected]</EmailAddress> 
    <CustomerKey>11003</CustomerKey> 
    </Customer> 
    <Customer> 
    <CustomerId>2</CustomerId> 
    <Name></Name> 
    <Title></Title> 
    <Phone>1 (11) 500 555-0131</Phone> 
    <Gender>F</Gender> 
    <MaritalStatus>S</MaritalStatus> 
    <YearlyIncome>80000</YearlyIncome> 
    <BirthDate>08-08-1968 12:00:00</BirthDate> 
    <EmailAddress>[email protected]</EmailAddress> 
    <CustomerKey>11004</CustomerKey> 
    </Customer> 
    my problem is I am not able to add <?xml version="1.0" encoding="UTF-8"?> (xml tag) to output folder, which should be just at the beginning of xml file. 
    I am a beginner in SSIS, any help/hints will be appreciated.
    Regards,
    Mateen

    Why not do it in t-sql?
    http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
    http://visakhm.blogspot.in/2013/12/generating-nested-xml-structures-with.html
    If you want to do it in SSIS use this
    http://bicortex.com/how-to-create-an-xml-file-using-ssis-and-ms-sql-server/
    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

  • Generate XML with SAX (OutputFormat/XMLSerializer deprecated)

    Hi,
    I'm working on a project using an old code, written by don't-know-who, which generates XML code from data obtained at the moment, at run-time, and then returns it as a String.
    Recently, my project included a new version (2.9) of the xercesImpl.jar library, and now classes OutputFormat and XMLSerializer have become deprecated.
    I'd like to update the old code. Do you know how to modify my code in order to do exactly the same things with a "new" approach which is not deprecated?
    I tried to search in the net and I found this FAQ <http://xerces.apache.org/xerces2-j/faq-general.html#faq-6>, but I didn't understand at all how to convert my code. :(
    Here's a "semplified" version of my method:
    public String generateDocument() {
        OutputFormat of = new OutputFormat("XML", "UTF-8", true);
        of.setIndent(1);
        of.setIndenting(true);
        StringWriter sw = new StringWriter();
        XMLSerializer xs = new XMLSerializer(sw, of);
        try {
            ContentHandler hd = xs.asContentHandler();
            hd.startDocument();
            AttributesImpl atts = new AttributesImpl();
            atts.addAttribute("", "", "id", "CDATA", "1");
            hd.startElement("", "", "addressBook", atts);
            atts.clear();
            hd.startElement("", "", "name", atts);
            String s = "John";
            hd.characters(s.toCharArray(), 0, s.length());
            hd.endElement("", "", "name");
            hd.startElement("", "", "surname", atts);
            s = "Smith";
            hd.characters(s.toCharArray(), 0, s.length());
            hd.endElement("", "", "surname");
            hd.endElement("", "", "addressBook");
            hd.endDocument();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        return sw.toString();
    }This code returns a String with this content:
    <addressBook id="1">
      <name>John</name>
      <surname>Smith</surname>
    </addressBook>Thanks a lot.

    This is easy. You have to somewhen learn the basics of the Java XML APIs, e.g. the DOM API. Or fight like a man through
    http://java.sun.com/webservices/reference/tutorials/jaxp/html/dom.html
    http://java.sun.com/webservices/reference/tutorials/jaxp/html/intro.html
    http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html.

  • Querying, then generating ArrayLists with variable names

    Hi, all:
    I have two problems: first, I want to run through an array list called nodeList containing Nodes, each of which possesses a 5-digit value called culture. I want each Node to try to find out whether or not there are any other Nodes that have the same culture value that it does, i.e. if Node i has culture value 74936 and there are 4 other Nodes with the same culture value, I need to find 5 total Nodes with culture value 74936.
      public void statistics(){
           for (int i = 0; i < nodeList.size (); i++) {
                Node node = (Node) nodeList.get (i);
                int cultSame = node.getCulture();
                boolean same = cultSame == next.cultSame;
                if (same == true){
                     arrayListCreator();
                     //generated Arraylist add.node;
      }I'm going astray at next.cultSame. I'm not sure how to structure the query to the ArrayList nodeList to find all the other Nodes with the same culture value.
    Second: I want to create a little method to generate ArrayLists with names based on the integers that will be stored in them. Here's the method so far:
      public void arrayListCreator () {
           String name = String.valueOf(cultSame);
           name = new Arraylist();
      }cultSame is a 5-digit integer. The ArrayLists will be used to store all the nodes with the same cultSame value, like 74936, or whatever. If the ArrayList is storing nodes with the cultSame value of 74936, I want the name of the ArrayList to be the string 74936. I want to call on this method (like you can see in the first method) to generate the ArrayList with its given name and then use it to store the nodes in it. Once I've done that, I can figure out the statistics stuff on my own, I think. I'm just not sure how to create the ArrayLists with a name that's a variable, i.e. "name" should be the string variable containing a 5-digit number.

    Nquirer101 wrote:
    I probably should have separated this out into two threads. First, I'd like to know what I'm doing wrong when I'm building that boolean query to find out in the nodeList if any of the other nodes have the same culture value as the node doing the querying.Then by all means do so, from the looks of it, the scope of the thngs that need to be discussed/addressed is too broad for one thread. First there's the issue of your erroneous understanding of variable, then there's the concept of the Map data structure, then the implementation of it in Java, along with the idea of interface

  • Generate DDL with schema name prefix

    Hi All
    We are trying to generate DDL with the schema prefix on all statements.
    eg. CREATE schema_name.table_name
    Is it possible to do this with Designer 6i/9i or even 10g? I guess it might a server generator preference setting.
    Thanks
    Kathy

    Well dbms_metadata.get_ddl will generate the ddl script with username by default if you dont want you can try your own script. Check the sample function which create to fix that.
    Hope this helps.
    SRI>set long 1000000
    SRI>create or replace function aaa(nstr varchar2,nuser varchar2) return varchar2 is
    2 begin
    3 return replace(nstr,chr(34)||nuser||chr(34)||'.','');
    4 end;
    5 /
    function created
    SRI>select dbms_metadata.get_ddl('TABLE','DEPT') from dual
    DBMS_METADATA.GET_DDL('TABLE','DEPT')
    CREATE TABLE "SCOTT"."DEPT"
    ( "DEPTNO" NUMBER(2,0),
    "DNAME" VARCHAR2(14),
    "LOC" VARCHAR2(13)
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TOOLS"
    SRI>select aaa(dbms_metadata.get_ddl('TABLE','DEPT'),'SCOTT') from dual;
    AAA(DBMS_METADATA.GET_DDL('TABLE','DEPT'),'SCOTT')
    CREATE TABLE "DEPT"
    ( "DEPTNO" NUMBER(2,0),
    "DNAME" VARCHAR2(14),
    "LOC" VARCHAR2(13)
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "TOOLS"
    -Sri

  • How to refer ?XML element tag name? in the RTF variable

    Hi All,
    I want to declare variable and assign the value of XML element tag to that variable.
    Following are the steps:
    <?xdoxslt:set_variable($_XDOCTX, MYCOUNT,1)?>
    <?xdoxslt:get_variable($_XDOCTX, MYCOUNT)?>
    <?if: xdoxslt:get_variable($_XDOCTX, MYCOUNT) =1?>xxx<?end if?>
    In the declaration part,I need to replace 1 with some of the xml element tag value(for example : <?vendor_name?>).
    But when I try to do so,I get some list of exceptions.
    Please suggest how to proceed.
    Thanks and Regards,
    Kaveri

    Hi Pradeep,
    Thanks for your response.Here my requirement goes:
    for -each:
    text(database value)
    end for-each
    This text value will continue from page 1 to N.
    So for page1 I want HEADER1 and from page2 onwards,I require different header HEADR2.
    By using your approach,my text which needs to be continued on different pages will not be acheived.
    One more thing I got from XMLP User guide:
    <xdofo:inline-total
    display-condition="exceptfirst"
    name="InvAmt">.
    SInce all my tags are generated from Oracel reports,I am unable to use the above xml line.Is there any way to use this by modifying the syntax..
    Please let me know your suggestions since this is show stopper for my report.
    Thanks and Regards,
    Kaveri

  • Generate XML report using MAX Generate report.vi

    Hi All,
    Caught in simple and wierd problem. I'm using a simle VI called MAX Generate Reoprt.vi to generate an XML report but getting error
    Error code -2147220553
     Error description :Incorrect report file extension provided.
    The image of the block diagram is attached. I'm able to generate HTML reoport from MAX(absolutely no probs).
    Thanks in advance
    Regards
    VDC
    Attachments:
    Error_in_MAX.JPG ‏7 KB

    You must have the correct file extention. Here's what is wirtten in the detailed help of the function:
    output filename specifies the filename of the generated report.
    You must have the correct extension for the type of report to generate (.xml, .htm, .html, or .zip).
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Save NI report generator files with new names

    I was trying to save labview library files under new names so that I could adapt the code but the 'Save As' option is greyed out. In certain cases, when I try to copy and paste the code, I get broken wires and cannot get the VI's to work.
    I have been using the report generator toolkit which is quite limited. I was trying to delete a row from an spreasheet but there is no function to do this. So, one workaround that was suggested to me was to use the 'Excel Insert Cells' VI and change the code to instruct it to 'clear' cells rather than 'insert' them. This works, but I wanted to save a copy of the amended file under a different name so that it was independent of the installed library files but I can't seem to do this. I tried to copy out the code but got broken wires even though I have been able to do this in other instances.
    Any suggestions?
    Thanks,
    Will

    Hi Will,
    I had the same problem with a project and found the following workaround:
    To ensure the original function of any library VI, it's not recommended to just change the VI to do something else.
    Therefore I expanded the VI to do both, the original functionality and the special function I needed.
    I made an extra Input to the VI, which is a boolean Input.
    With that extra optional Input I can now choose the function I want to do.
    I made the "False" case to be default. This case works like the original function.
    The "True" case is built to do my special function.
    This workaround is quite easy and not dangerous. For all projects, which would use the function in their normal use case it's working just as if the file was unchanged.
    And for projects using special functionality I can add a "True" constant to my VI Input and the function works as I want..
    Hope this workaround helps to fix your problem!
    Kind regards
    adigator

  • Generate XML with answer values

    Hi Forum,
    I wnat to know if there is any function or method to generate a xml, a string, with the answer values. I want to generate this string to attach this survey with the all fields completed in an activity.
    Regards and thanks in advance,
    Mon

    Hi,
    you can use one of the following Classes for XML conversion.
    CL_PROXY_XML
    CL_CRM_XML_PROVIDER
    CL_CXF_XML_TOOLS
    Also if none of the above is useful, you can search one in SE24 with XML.
    There are lots and one will be definitely useful.
    Please reward with points in case helpful.
    Sharif.

  • 10.4.8 Server Admin will not generate CSR with unit name containing "/"

    I work in a University and our Computer Store is a reseller for Thawte SSL certs. The "Organizational Unit" that my department was assigned is "Outreach Technology Services/World Campus", but when I try to generate a CSR for one of our Web sites, the Organizational Unit gets truncated to just "Outreach Technology Services" which my reseller won't accept as my Organizational Unit name.
    How can I get around this?
    I am running 10.4.8 Server.

    No the, the gui field is showing the full name "Outreach Technology Services/World Campus" but when I submit the CSR to the department that handles these, they use openssl req -noout -text -in test.csr to view the contents.
    Certificate Request:
    Data:
    Version: 0 (0x0)
    Subject: CN=secure.worldcampus.psu.edu, O=The Pennsylvania State University, OU=Outreach Technology Services/World Campus, C=US, ST=Pennsylvania, L=University Park
    Subject Public Key Info:
    Public Key Algorithm: rsaEncryption
    RSA Public Key: (1024 bit)
    Modulus (1024 bit):
    00:cf:f2:a7:e8:56:38:71:61:af:d1:29:1d:0d:37:
    a5:5f:18:be:01:99:37:0d:db:45:1e:20:89:9f:33:
    ff:be:fe:be:f0:25:b2:c0:44:08:56:d3:71:57:c1:
    1d:87:2d:5e:54:99:07:13:23:58:26:93:e7:06:d2:
    50:5f:b5:15:dc:69:76:09:62:02:39:e1:61:d2:9e:
    3e:a8:ea:20:7a:49:97:eb:a4:ed:80:24:2b:9f:4f:
    39:0e:40:cb:4c:46:0f:e3:5f:2f:73:d5:81:80:ed:
    fa:08:21:5f:c4:a8:84:b1:6a:d8:3e:6b:e3:a3:08:
    7c:77:b0:d0:82:c4:09:35:a7
    Exponent: 65537 (0x10001)
    Attributes:
    a0:00
    Signature Algorithm: sha1WithRSAEncryption
    af:bb:0b:42:43:b1:f0:82:e4:62:c7:f7:cc:eb:8b:1e:56:fa:
    1b:63:db:a4:2e:1c:07:b3:00:ff:fa:42:3b:4a:8c:7c:de:e0:
    1e:f1:87:d7:44:0f:99:99:b6:a1:89:77:93:a4:d0:48:2f:7e:
    d3:5d:95:e6:3e:4e:29:67:36:a4:60:00:17:a2:45:c5:28:87:
    aa:01:5c:bb:20:62:05:09:a5:e5:11:e0:10:b7:96:0e:c1:2e:
    bb:dd:7a:d6:4e:61:8d:d3:ae:41:54:27:8a:3f:d9:ab:bb:37:
    6e:5a:28:f0:7d:a7:ac:cd:37:4f:7c:57:97:14:7e:ad:c0:c7:
    e4:64
    But it looks like that /World Campus is there, so It must be their .cgi that is unable to handle the "/"
    So NEVER MIND. I should have checked the contents first.

  • Getting a complete portion of an XML String (With tag names)

    Im working on an application that processes a huge amount of xml strings. Im using xpath since it makes it much easier to select and navigate through the tags. The only thing I can't do is get a complete portion of an XML string, for example, if i have
    <article>
    <articlebody>
    </articlebody>
    <references>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    </references>
    </article>
    I need to get the complete <reference> portion to parse later, so i need the following string:
    <references>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    <reference id="1"> ... </reference>
    </references>
    How can i do this using xpath? is it even possible? if not how else can i do it? (don't want to use regular expressions and string manipulation)
    Thanks for you help

    Im not sure if this really qualifies as using DOM, but this is all i do to get the data i want from the files (when i only want to get the text value of an element:
    InputSource inputSource = new InputSource(new StringReader(metadata));
    return xpath.evluate(expression, inputSource, returnType);where metadata is a String containing meta data, and return type is usually string or number.
    Im using Java 5 and
    Could you please explain a little more how to do this?
    Thank you

  • Generate XML with multiple parent nodes

    I have the following test data
    CREATE TABLE #TEST1 (
    HS VARCHAR(20),
    HN VARCHAR(20),
    NC FLOAT
    INSERT INTO #TEST1
    VALUES ('COMPLETE','ABC123',1234.56789),
    ('REJECTED','ABC124',1234.56789),
    ('PLANNED','ABC125',1234.56789),
    ('COMPLETE','ABC126',1234.56789),
    ('COMPLETE','ABC127',1234.56789),
    ('REJECTED','ABC128',1234.56789),
    ('COMPLETE','ABC129',1234.56789),
    ('PLANNED','ABC130',1234.56789),
    ('COMPLETE','ABC131',1234.56789),
    ('COMPLETE','ABC132',1234.56789),
    ('REJECTED','ABC133',1234.56789),
    ('COMPLETE','ABC134',1234.56789),
    ('PLANNED','ABC135',1234.56789),
    ('COMPLETE','ABC136',1234.56789),
    ('REJECTED','ABC137',1234.56789),
    ('COMPLETE','ABC138',1234.56789),
    ('COMPLETE','ABC139',1234.56789),
    ('PLANNED','ABC140',1234.56789)
    SELECT ( SELECT *
    FROM #TEST1 T
    FOR XML PATH('STATUS'), TYPE
    FOR XML PATH('Document'), ROOT('kml')
    DROP TABLE #TEST1
    Which produces the following results.
    <kml>
    <Document>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC123</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>REJECTED</HS>
    <HN>ABC124</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>PLANNED</HS>
    <HN>ABC125</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC126</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC127</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>REJECTED</HS>
    <HN>ABC128</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC129</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>PLANNED</HS>
    <HN>ABC130</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC131</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC132</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>REJECTED</HS>
    <HN>ABC133</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC134</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>PLANNED</HS>
    <HN>ABC135</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC136</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>REJECTED</HS>
    <HN>ABC137</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC138</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>COMPLETE</HS>
    <HN>ABC139</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    <STATUS>
    <HS>PLANNED</HS>
    <HN>ABC140</HN>
    <NC>1.234567890000000e+003</NC>
    </STATUS>
    </Document>
    </kml>
    What I really want to produce is this
    <kml>
    <Document>
    <STATUS>
    <HS>
    COMPLETE
    <Data>
    <HN>ABC123</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC126</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC127</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC129</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC131</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC132</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC134</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC136</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC138</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC139</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    </HS>
    </STATUS>
    <STATUS>
    <HS>
    REJECTED
    <Data>
    <HN>ABC124</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC128</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC133</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC137</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    </HS>
    </STATUS>
    <STATUS>
    <HS>
    PLANNED
    <Data>
    <HN>ABC125</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC130</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC135</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    <Data>
    <HN>ABC140</HN>
    <NC>1.234567890000000e+003</NC>
    </Data>
    </HS>
    </STATUS>
    </Document>
    </kml>
    Is it possible to group header and then group data under those headers using one SQL statement?
    Thanks in advance
    Q

    E.g.
    DECLARE @TEST1 TABLE
    HS VARCHAR(20) ,
    HN VARCHAR(20) ,
    NC FLOAT
    INSERT INTO @TEST1
    VALUES ( 'COMPLETE', 'ABC123', 1234.56789 ),
    ( 'REJECTED', 'ABC124', 1234.56789 ),
    ( 'PLANNED', 'ABC125', 1234.56789 ),
    ( 'COMPLETE', 'ABC126', 1234.56789 ),
    ( 'COMPLETE', 'ABC127', 1234.56789 ),
    ( 'REJECTED', 'ABC128', 1234.56789 ),
    ( 'COMPLETE', 'ABC129', 1234.56789 ),
    ( 'PLANNED', 'ABC130', 1234.56789 ),
    ( 'COMPLETE', 'ABC131', 1234.56789 ),
    ( 'COMPLETE', 'ABC132', 1234.56789 ),
    ( 'REJECTED', 'ABC133', 1234.56789 ),
    ( 'COMPLETE', 'ABC134', 1234.56789 ),
    ( 'PLANNED', 'ABC135', 1234.56789 ),
    ( 'COMPLETE', 'ABC136', 1234.56789 ),
    ( 'REJECTED', 'ABC137', 1234.56789 ),
    ( 'COMPLETE', 'ABC138', 1234.56789 ),
    ( 'COMPLETE', 'ABC139', 1234.56789 ),
    ( 'PLANNED', 'ABC140', 1234.56789 )
    SELECT O.HS ,
    ( SELECT I.HN ,
    I.NC
    FROM @TEST1 I
    WHERE I.HS = O.HS
    FOR XML PATH('') ,ROOT('Data'), TYPE
    ) AS HS
    FROM @TEST1 O
    GROUP BY O.HS
    FOR XML PATH('Document') , ROOT('kml');
    Caveat: You're using mixed element name casing.

Maybe you are looking for

  • Subsequent delivery free of charge

    Dear Friends, I had processed subsequent delivery free of charge,with reference to a sale order. in the sale order the material  has the basic price. when i processed the subsequent delivery free of charge document,both item and header condition is b

  • I just downloaded the new version of iTunes 10 and now it won't let me drag and drop any files from my computer.

    I just downloaded the new version of iTunes 10 and now it won't let me drag and drop any files from my computer into my iTunes. It lets me play the song from the folder in my computer and then it opens with iTunes and plays the song all the way throu

  • Unbinding computers in 10.6...

    This is probably nothing more than an annoyance, but is there a way to manually unbind client computers in 10.6? In 10.5 you could "Force Unbind", but there isn't really that option in 10.6. I'm completely rebuilding my server (had some hold-over iss

  • Casting in forEach ?

    Hi guys, I have a UsersCatalog bean being set in a servlet, and this catalog contains lots of User objects. Servlet: Collection userslist = new ArrayList(); User user1 = new User("John"); User user2 = new User("Peter"); userslist.add(user1); userslis

  • Graphing change in resistance vs. change in current.

    I've been trying to run a simulation demonstrating change in current produced by change in a resistor in a simple circuit. I would like to generate a simple graph using one of the simulation analyses in Multisim 10 Student Edition. Presumably the Par