XML data and "invalid characters"

Hello everyone,
I'm developing a custom XML report for TestStand and I'm a bit confused about how to handle certain characters. For example, lets say I have a test step titled "Check that current is < 50mA". Now, when this data is written into the XML report it can be found between the Step Name tags, like this
<Step Name>Check that current is <50mA</Step Name>
Now the character causing the problem is "<" as XML presumes it indicates a new tag. Looking through XML resources it seems one way to escape these characters is to use the CDATA tags like this:
<Step Name><![CDATA[Check that current is <50mA]]></Step Name>
or to specify in the .xsl file "disable-output-escaping="yes" in the for these affected fields, like step name. However I'm concerned that by using the "disable-output-escaping" method I will encounter problems when feeding the XML file into a parser.
Now I'm a bit curious about how different parsers act with the CDATA tag, if I parse the step name fields will I get "Check that current is <50mA" or will I get ><![CDATA[Check that.....]]>. Any ideas?
Currently I'm using a function from the modelsupport.dll to replace these invalid characters with entity references, for example "<" is replaced with &lt; but this is not a good solution from the parser point of view.
Best regards and thanks in advance for any advice,
Aleksi

Hi,
>>>
Now I'm a bit curious about how different parsers act with the CDATA tag, if I parse the step name fields will I get "Check that current is <50mA" or will I get ><![CDATA[Check that.....]]>. Any ideas?
>>>
Is it easy just to try it and see what happens?
Regards
Ray Farmer
Regards
Ray Farmer

Similar Messages

  • Date   /  / contains invalid characters IN MODULE POOL

    Hi,
    I have a display field in infotype creation which will take always take current date.I have tried using the screen field as sy-datum and also tried using z-field with data type char or dats.but when ia am inserting values in  a  editable field on the screen and pressing enter ,it is giving the error: "Date   /  / contains invalid characters" .And afetr pressing cancel ,it goes back to the PBO and then pressing f8,it shows the infotype screen designed* but the other functionalities which have been coded in PAI of  screen like activating checkboxes,radiobuttons etc. are not there .Even i have tried passing sy-datum to the date field in PBO of the screen.Pls help.

    Hello Sir,
    Were you able to sort out this issue.
    Would appreciate if you can share the solution. One of our users have this issue in the ADOBE form.
    Let me know please.
    Thanks,
    Akshay...

  • How to convert a data set into a xml data and vice versa

    i am new to oracle with xml..
    my aim is to convert a data set into a xml data and vice versa..
    my work is as follows...
    my query:
    select rggpk,rggcode,rggname from ms_regiongeo
    to convert a data set into a xml*
    select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual;
    (this works fine and output of this query is as follows..)
    <ROWSET>
    <ROW>
      <RGGPK>201</RGGPK>
      <RGGCODE>Asia</RGGCODE>
      <RGGNAME>Asia</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>1</RGGPK>
      <RGGCODE>OTH</RGGCODE>
      <RGGNAME>Others</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>21</RGGPK>
      <RGGCODE>COB</RGGCODE>
      <RGGNAME>Africa and Yemen</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>2</RGGPK>
      <RGGCODE>AUS</RGGCODE>
      <RGGNAME>Australia</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>23</RGGPK>
      <RGGCODE>IND</RGGCODE>
      <RGGNAME>Indian Sub Continent</RGGNAME>
    </ROW>
    <ROW>
      <RGGPK>24</RGGPK>
      <RGGCODE>TVM</RGGCODE>
      <RGGNAME>North America</RGGNAME>
    </ROW>
    </ROWSET>
    and to reverse this process, I tried a query like this..*
    select EXTRACTVALUE (XML_DATA,'ROWSET/ROW/RGGPK') as EMP_ID
    from(
            select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual
    )tab1but failed.. and raised with an eror: ORA-19025
    help me..
    regards,
    john

    Hi-
    my aim is to convert a data set into a xml data  You can refer to the below posts
    Adding namespace to XML output
    Re: how to convert table data in xml format based on the xsd.

  • Arabic data shows Invalid characters

    Hi,
    Arabic data is stored in 9i database having US7ASCII character set. Our vendor application is displaying data in arabic correctly but when we try to query data then we are getting characters like
    mMml aaEa_JQfdmGJ
    Regards
    Ahmer

    I have tried to display data in ASP, SQLPLUS, SQL Developer & SQL Navigator. All of them are showing invalid except SQL Developer which is showing boxes.
    I am only querying the data that is already present in database and vendor's application displaying correctly.
    I tried with changed NLS_LANG but it did'nt works.
    When I ask the application vendor, they replied me:
    "Arabic Data can be viewed in Multibyte telnet clients like Putty, if UTF-8 text encoding is enabled, both in the client and Oracle. The character encoding should be set to UTF-8 only during download of data and then this can be viewed in the telnet client.
    Normal single byte telnet clients cannot encode the same, and the arabic data will be shown as Junk characters. Else, the same can be spooled into a text file, opened in MS-Word with the character encoding set as UTF-8 format."
    I have to generate report for wondows client.
    Regards

  • Loading master data : error invalid characters

    Hello,
    I load master data (example 0PROG_POS) into BW with InfoPackage and loading stops with error "invalid characters". In the logs, the error is due to a special character (in french Ä :  a special A).
    On BW side, is it possible to solve this problem (I don't understand the message in the help : "If this message appears during a data load, maintain the attribute in the PSA maintenance screens").
    My BW is 3.5 patch 7
    Thanks in advance for your help.
    Daniel.

    HI Daniel
    all characterstic & special characterstic
    goto TCODE: RSKC -> all_capital-> F8
    again : rskc-> !"%&'()*+,-./:;<=>?_0123456789ABCDEFGHIJKLMNOPQRSTUVWXY ->F8
    GOTO SE11: RSALLOWEDCHAR (maintain special characterstic)
    also u  can goto-> SE37->RSKC_ALLOWED_CHAR_GET
    -> F8
    THANKS & BEST REGARDS
    SANGRAM KESHARI SUTAR

  • Script for parsing xml data and inserting in DB

    Thank you for reading.
    I have the following example XML in an XML file. I need to write a script that can insert this data into an Oracle table. The table does not have primary keys. The data just needs to be inserted.
    I do not have xsd file in this scenario. Please suggest how to modify Method 1 https://community.oracle.com/thread/1115266?tstart=0 mentioned so that I can call the XML mentioned below and insert into a table
    Method 1
    Create or replace procedure parse_xml is 
      l_bfile   BFILE; 
      l_clob    CLOB; 
      l_parser  dbms_xmlparser.Parser; 
      l_doc     dbms_xmldom.DOMDocument; 
      l_nl      dbms_xmldom.DOMNodeList; 
      l_n       dbms_xmldom.DOMNode; 
      l_file      dbms_xmldom.DOMNodeList; 
      l_filen       dbms_xmldom.DOMNode; 
      lv_value VARCHAR2(1000); 
       l_ch      dbms_xmldom.DOMNode; 
    l_partname varchar2(100); 
    l_filename varchar2(1000); 
      l_temp    VARCHAR2(1000); 
      TYPE tab_type IS TABLE OF tab_software_parts%ROWTYPE; 
      t_tab  tab_type := tab_type(); 
    BEGIN 
      l_bfile := BFileName('DIR1', 'SoftwareParts.xml'); 
      dbms_lob.createtemporary(l_clob, cache=>FALSE); 
      dbms_lob.open(l_bfile, dbms_lob.lob_readonly); 
      dbms_lob.loadFromFile(dest_lob => l_clob,    src_lob  => l_bfile,    amount   => dbms_lob.getLength(l_bfile)); 
      dbms_lob.close(l_bfile);  
      dbms_session.set_nls('NLS_DATE_FORMAT','''DD-MON-YYYY'''); 
      l_parser := dbms_xmlparser.newParser; 
      dbms_xmlparser.parseClob(l_parser, l_clob); 
      l_doc := dbms_xmlparser.getDocument(l_parser); 
        dbms_lob.freetemporary(l_clob); 
      dbms_xmlparser.freeParser(l_parser); 
      l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc),'/PartDetails/Part'); 
        FOR cur_emp IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP 
        l_n := dbms_xmldom.item(l_nl, cur_emp); 
        t_tab.extend; 
        dbms_xslprocessor.valueOf(l_n,'Name/text()',l_partname); 
        t_tab(t_tab.last).partname := l_partname; 
        l_file := dbms_xslprocessor.selectNodes(l_n,'Files/FileName'); 
        FOR cur_ch IN 0 .. dbms_xmldom.getLength(l_file) - 1 LOOP 
          l_ch := dbms_xmldom.item(l_file, cur_ch); 
          lv_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_ch)); 
          if t_tab(t_tab.last).partname is null then t_tab(t_tab.last).partname := l_partname; end if; 
          t_tab(t_tab.last).filename := lv_value; 
        t_tab.extend; 
       END LOOP; 
       END LOOP; 
        t_tab.delete(t_tab.last); 
      FOR cur_emp IN t_tab.first .. t_tab.last LOOP 
      if t_tab(cur_emp).partname is not null and  t_tab(cur_emp).filename is not null then 
        INSERT INTO tab_software_parts 
        VALUES 
        (t_tab(cur_emp).partname, t_tab(cur_emp).filename); 
        end if; 
      END LOOP; 
      COMMIT; 
      dbms_xmldom.freeDocument(l_doc); 
    EXCEPTION 
      WHEN OTHERS THEN 
        dbms_lob.freetemporary(l_clob); 
        dbms_xmlparser.freeParser(l_parser); 
        dbms_xmldom.freeDocument(l_doc); 
    END; 
    <TWObject className="TWObject">
      <array size="240">
        <item>
          <variable type="QuestionDetail">
            <questionId type="String"><![CDATA[30]]></questionId>
            <questionType type="questionType"><![CDATA[COUNTRY]]></questionType>
            <country type="String"><![CDATA[GB]]></country>
            <questionText type="String"><![CDATA[Please indicate]]></questionText>
            <optionType type="String"><![CDATA[RadioButton]]></optionType>
            <answerOptions type="String[]">
              <item><![CDATA[Yes]]></item>
              <item><![CDATA[No]]></item>
            </answerOptions>
            <ruleId type="String"><![CDATA[CRP_GB001]]></ruleId>
            <parentQuestionId type="String"></parentQuestionId>
            <parentQuestionResp type="String"></parentQuestionResp>
          </variable>
        </item>
        <item>
          <variable type="QuestionDetail">
            <questionId type="String"><![CDATA[40]]></questionId>
            <questionType type="questionType"><![CDATA[COUNTRY]]></questionType>
            <country type="String"><![CDATA[DE]]></country>
            <questionText type="String"><![CDATA[Please indicate]]></questionText>
            <optionType type="String"><![CDATA[RadioButton]]></optionType>
            <answerOptions type="String[]">
              <item><![CDATA[Yes]]></item>
              <item><![CDATA[No]]></item>
            </answerOptions>
            <ruleId type="String"><![CDATA[CRP_Q0001]]></ruleId>
            <parentQuestionId type="String"></parentQuestionId>
            <parentQuestionResp type="String"></parentQuestionResp>
          </variable>
        </item>
      </array>
    </TWObject>

    Reposted as
    Script to parse XML data into Oracle DB

  • Read XML data and Insert into SQL Database

    Hi Everybody,
    i am new to Oracle SOA.
    Can anybody help me out to how to insert xml data into sql server using BPEL and JDeveloper (with clear steps).
    thanks in advance
    Vishnu Kumar

    Hi Peter,
    you are right,at high level i was able to figure at these things.
    But i don't know how to implement it using jdeveloper.
    It will be more helpful if you can give me detailed steps to do it.
    Thanks
    Vishnu Kumar

  • Form converts to XML data and I need the pdf form to be visable

    Hello all,
    I just created a form in pro 8 for our salesmen and it is a sales order form. I have sent it out to them to fill out and return it by pressing the email button in the form and some have come back as XML date stream and some came back as the original form with all fields filled in. I want to know how to get all of them to come back filled in instead of the XML Data. All salesmen have Reader 8 installed on the machines. Can anyone help me with this problem?
    Thanks in advance,
    Tony

    Hi there,  I'm myseld using the Application data-field in order to collect mobile forms OFFLINE.
    I can collect as many mobile form as i want BUT, of course, need to be online to sync the data from mobile to their cloud.
    Hope that helps.
    Otherwise, would probably need to plug ur idevice and look for the application database with such tool as iConnector.

  • Graphs: Is it possible to take XML Data and display it as a graph in a LC Form?

    I am currently using LC ES2 Designer 9 to create PDF reports from XML data. We would also like to incorporate graphs into the PDFs. Has anyone done this or know if it is possible using LiveCycle?
    Thanks

    What I've seen, is people using a component to render the graph (Flex Charting or something else) and then put that rendered graph in the form data before it's being merged with the template.
    Jasmin

  • XML data and duplicating MCs for gallery

    Ok big question...
    how would i go about loading XML data in this format ,
    <info>
    <category></category>
    <subcategory></subcategory>
    <picture>
    http://img.</picture>
    </info>
    <info>
    <category></category>
    <subcategory></subcategory>
    <picture>
    http://img.</picture>
    </info>
    Then About 20 additional Infos like that. Now the whole xml
    list has the same tags. How would i go about displaying them in
    flash? I wanted to use one MC and have it duplicate for each info
    category and place the MCs on the stage so it looks like a gallery.
    Each MC would have a picture with some info on it loaded form the
    XML.
    I think i would need to use the Dataset but im not even sure
    how i would go about doing this.

    Something like this
    http://www.adobe.com/products/flash/flashpro/video/gallery/
    But for pictures only i don't need something that complex
    also i don't need to sort anything. I was hoping to just use the
    components and bind them. Also the xml feed would be updated every
    couple of minutes with more content so i might need to list like 20
    thumbs then make a button to seperate the loaded content. So maybe
    like 20 thumbs showing then they click a page 2 button and it shows
    the next 20 thumbs. That layout out is perfect though.

  • Java input xml data and xsl template -output file excel

    i need help or same special link on web.
    i must develop code or use a special tool that make this.
    INPUT:
    xml that contain real data
    xsl that explain a report template
    OUTPUT:
    file excel that show the template xsl with xml data source
    thank for help me.

    Hi,
    Please refer to "Oracle XML Publisher User's Guide".
    Applications Releases 11i and 12
    http://www.oracle.com/technetwork/indexes/documentation/index.html
    This is also explained in the document attached in (Publishing Concurrent Requests with XML Publisher [ID 295409.1]).
    Thanks,
    Hussein

  • Trying to bind XML data and form fields

    I have a fairly simple PDF - and I am trying to bind XML data to he form fields.
    In the designer I can bring up the data connection and
    select Global - for the binding method - and as I understand it - this will link Form Fields and XML data fields with the same name - (sounds logical to me)
    but all that happens is :
    I see the name of the field in the form field rahter than seeing the actual data
    should I select : None as the binding or normal ....
    but Normal doesnt show Anything - even after i select it .
    I can't quite seem to make this work -
    Any help here would be appreciated
    Thanks :)

    This is on a stand - alone system
    Using Designer ES ......
    I saved the Form as an xdp form
    and it seems as if all goes well until
    View the data and nothing appears - or
    just the names of the fields appear

  • Submitting xml data and thereby kicking off LiveCycle Process

    I have a simple form where I collect the data and put it in a field which contains xml. I also have a process that should be started when I click a button on the form. Hence I have made the databinding for the process SOAP endpoint and have made the binding to the xml-text field in the form.
    However something is wrong, because nothing happens when I click the button.
    So how do I submit xml-data to a LiveCycle process to kick it off through the form.
    Sincerely
    Kim

    Dear Mr. Ram KM,
    The business mentioned above by you was absolutely perpect.
    Adobe LiveCycle® ES (Enterprise Suite) is an integrated server solution that blends data capture, information assurance, document output, process management, and content services.
    I may guess you have to install ADOBE LIVECYCLE WORKBENCH ES. The Adobe liveCycle Designer ES comes with Workbench ES once you installed. Please go through the below information, you may get some idea.
    1. Significance of folders in Documentum Repository (for all regions)
    WorkBench -> where all work in progress or finalized templates should reside. Designer must carry his/her development of Form/Template design in this folder.
    Schema -> where the XML Schema (Using which data needs to bound to the template) should reside. This schema should be the same across the entire region (dev, UAT, Prod).
    Templates -> This is the run time folder. CPR application points to this folder while searching for templates. Designer should never work on this folder or move/copy any template from WorkBench to this folder. This action will be taken care of by CPR application.
    Master Fragment Library -> All the fragments should reside inside this folder. Once one fragment is changed in this folder then change will be reflected immediately to all the templates that use this fragments.
    NEW TEMPLATE DESIGN
    2. Design approach through workbench ES.
    Designer selects UAT region through WorkBench ES to do the development of the Forms/Templates.
    Designer opens up an existing form/letter or creates a new form/letter through designer in Workbench ES
    He/She caries out the design (forms/letters) in Workbench folder.
    He/She carries out the design of fragments in Master Fragment Library folder.
    Once designer is satisfied with design he/she right clicks on the document and goes to the history popup.
    Select the latest document in the list and click on Save as button in the popup screen to save it to the local hard disk or any file system.
    Designer now goes to CPR Application and click on Add button.
    The Add popup opens up.
    Designer clicks on Browse button and adds the letter/forms she had downloaded to his/her disk and adds corresponding Meta data. He/She then hits Done. At this point behind the scene CPR application puts the corresponding letter/Form into Templates folder with all the meta data set.
    The UAT test on the newly uploaded templates then happens.
    Once the UAT is successful then the corresponding templates need to be promoted to Production.
    First Step: Promoting new Fragments to Production
    Administrator directly logs into Production fragment library folder and creates the fragments again in production. This needs to be done very carefully as this fragments will be available immediately for end users (on click of Save in the designer).
    Note: The downloaded fragments (from UAT region) can be moved to production directly using drag and drop feature of Workbench ES.
    Second Step: Promoting new templates to Production
    If UAT is successful Administrator then uploads the template file into production the way he/she did in UAT region. He/she needs to put appropriate meta data in production also.
    EXISTING TEMPLATE MODIFICATION
    3. Design approach through workbench ES.
    Designer selects UAT region through WorkBench ES to do the change of the existing Forms/Templates.
    Designer opens up an existing form/letter or creates a new form/letter through designer in Workbench ES
    He/She caries out the design (forms/letters) in Workbench folder.
    He/She carries out the design of fragments in Master Fragment Library folder.
    Once designer is satisfied with design he/she right clicks on the document and goes to the history popup..
    Select the latest document in the list and click on Save as button in the popup screen to save it to the local hard disk or any file system.
    Designer now goes to CPR Application and finds the templates he/she wants to modify.
    Designer highlights the corresponding row and hits on Modify.
    The Modify popup opens up.
    Designer clicks on Browse button and adds the letter/forms she had downloaded to his/her disk and edits corresponding Meta data (if needed). He/She then hits Done. At this point behind the scene CPR application puts the corresponding letter/Form into Templates folder with all the meta data set. Also it inactivates the older version if any.
    The UAT test on the newly uploaded templates then happens.
    Once the UAT is successful then the corresponding templates need to be promoted to Production.
    First Step: Promoting existing Fragments to Production
    Administrator directly logs into Production fragment library folder and updates the fragments again in production. This needs to be done very carefully as this fragments will be available immediately for end users (on click of Save in the designer).
    Note: The downloaded fragments (from UAT region) can be moved to production directly using drag and drop feature of Workbench ES.
    Second Step: Promoting existing templates to Production
    If UAT is successful Administrator then uploads the template file into production the way he/she did in UAT region. He/she needs to put appropriate meta data in production also.
    FormFragsRenderPdfServlet:
    import java.util.Properties;
    import java.io.*;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletOutputStream;
    import com.adobe.etech.FileUtils;
    import com.adobe.formServer.client.EJBClient;
    import com.adobe.formServer.interfaces.*;
    import com.adobe.pso.eforms.model.XDPWrapper;
    import com.adobe.pso.eforms.model.FragmentMetadata;
    import com.adobe.pso.eforms.model.TemplateMetadata;
    import com.adobe.pso.eforms.model.XSDReference;
    import com.adobe.pso.eforms.util.FormServerDefinition;
    import com.adobe.pso.eforms.util.RenderFormOptions;
    import com.adobe.pso.eforms.util.RenderUtils;
    import com.adobe.pso.eforms.util.XDPUtils;
    * @version 1.0
    * @author
    public class FormFragsRenderPDFServlet extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    System.err.println("RenderPdfServletScott - doGet");
    try {
    ServletContext context = this.getServletContext();
    // 1. Construct the web app's context url
    String contextURL = request.getScheme()
    + "://"
    + request.getServerName()
    + ":"
    + request.getServerPort()
    + request.getContextPath();
    // 1a. If making an EJB remote call to FS, construct the JNDI properties object.
    Properties jndiProps = new Properties();
    jndiProps.setProperty("java.naming.factory.initial","com.ibm.websphere.naming.WsnInitialC ontextFactory");
    jndiProps.setProperty("java.naming.factory.url.pkgs","com.ibm.ws.naming");
    jndiProps.setProperty("java.naming.provider.url","corbaloc:iiop:127.0.0.1:2809");
    // 2. Create FormServerDefinition object to define the form server invocation method
    FormServerDefinition fServDef = new FormServerDefinition();
    fServDef.setInvocationMethod(FormServerDefinition.EJB_REMOTE);
    fServDef.setJndiProperties(jndiProps);
    //Specify the path to load the data from
    byte[] cXMLData = getBytesFromFile(new File (context.getRealPath("/data/data.xml")));
    // 3. Set the various options for rendering the form. The setFormQuery() method establishes the name
    // of the temporary file created on the filesystem to hold the "pre-rend

  • Auto Lexer on XML Data and Exadata (11.2.0.2.0)

    I am trying to migrate to Auto Lexer from World Lexer. We have a table with a CLOB Column where we store some data in XML format and we search via INPATH
    WHERE CONTAINS (XML,'(( (2005) INPATH(/record/extend/identifier) ))' ) > 0
    Index create scripts are
    WORLD_LEXER
    CREATE INDEX TEST_XML ON TEST(XML)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS
    filter GTP_FILTER_NULL
    section group GTP_SECTION_GROUP_PATH
    lexer GTP_LEXER_WORLD
    wordlist GTP_WORDLIST_BASIC
    stoplist GTP_STOPLIST_NULL
    storage GTP_STORAGE_BASIC
    For the AUTO LEXER => Lexer GTP_LEXER_AUTO
    For the World Lexer Index I get results but the Auto Lexer returns zero rows.
    I am running on ExaData as well. (11.2.0.2)
    Edited by: amin_adatia on 16-Aug-2011 11:31 AM

    Can you put together a reasonably complete test script that has some sample data and shows the problem occurring? I'm using 11.2.0.2 (not Exadata), and I haven't had any issues.

  • How to Allow Reader Users to Save XML Data and Send?

    A huge problem w/ LiveCycle Designer is (this is what I found), by clicking the "Submit via Email" button, the Adobe Reader is trying to connect to the local default email program, like outlook express.
    However, public computers are usually banned the users to launch an email program, and users are more likely to check email within a webpage. I noticed a number of students close the Reader after filling out the form but failing to send back the data.
    Anyway that I can allow a Reader user to be able to save .xml data file so he/she can attach to web-based email?
    Thanks Everybody!

    If you have Acrobat there is a subset of Reader Extensions functionality available in there that will allow you to Reader Extend the form to do local saves. The license agreement limits you to 500 uses. If you need more than that there is a server option that is more expensive but has no limits on users.

Maybe you are looking for