Export XML with HEX Entities

Hi Folks,
I have many InDesign Documents based on XML importing...
Now, i have to export the XML from the InDesign file.
I have tried mySelf and got the XML.
But it shows some error like 'Some characters cannot be translated to Shift_JIS' when export using Shift_JIS encoding.
Also i'm getting UTF-8 characters like '–,
,‘,’' while export using UTF-8.
I'm unable to use them for my further process (CleanUp).
Can any one help me to export the XML with HEXA Decimal Entity for these UTF-8 Characters?
Thanks in advance...
SARAVANAN.N

H Saravanan,
After exporting we can control these characters.
We have to use xslt flattern for this, it will convert as decimal character, after your wish.
Arivu

Similar Messages

  • EXPORT XML with XMLCONCAT

    Good Morning,
    I have a package that I use to export an XML file created by taking data from 2 tables and I was thinking of splitting used in two procedures, one procedure for each table.
    But the select that goes to compose the XML file is FROM dual.
    I was advised to use the function XMLCONCAT, someone knows how to use it in my case?
    Thank you very much

    Hi,
    Thanks for your interest.
    Here's the code for my package just to clarify things:
    create or replace PACKAGE BODY INDICATORI_TEST AS
    PROCEDURE EXPORT_XLS_TEST_PART1 IS
    xml_1 xmltype;
    begin
    select(
    xmlelement("ss:Workbook", XMLAttributes('urn:schemas-microsoft-com:office:spreadsheet' as "xmlns:ss"),
    xmlelement("ss:Worksheet", XMLAttributes('Sheet1' as "ss:Name"),
    xmlelement("ss:Table",
    --1
    xmlelement("ss:Column", XMLAttributes('50' as "ss:Width"), null),
    --2
    xmlelement("ss:Column", XMLAttributes('80' as "ss:Width"), null),
    xmlelement("ss:Row",
    --1
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), 'N.Progr.')),
    --2
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), 'Tipologia prestazione')),
    null
    (select
    xmlagg( xmlelement("ss:Row",
    --1
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), rownum)),
    --2
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), IC_LAVORI.TIPOLAGIA_PRESTAZIONE))
    from IC_LAVORI
    null
    null
    null
    into xml1
    from dual;
    htp_xml.HTP_XML(xml);
    end EXPORT_XLS_TEST_PART1
    PROCEDURE EXPORT_XLS_TEST_PART2 IS
    xml_2 xmltype;
    begin
    select(
    xmlelement("ss:Workbook", XMLAttributes('urn:schemas-microsoft-com:office:spreadsheet' as "xmlns:ss"),
    xmlelement("ss:Worksheet", XMLAttributes('Sheet1' as "ss:Name"),
    xmlelement("ss:Table",
    --15
    xmlelement("ss:Column", XMLAttributes('80' as "ss:Width"), null),
    --16
    xmlelement("ss:Column", XMLAttributes('80' as "ss:Width"), null),
    xmlelement("ss:Row",
              --15
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), 'Codice app.')),
    --16
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), 'Data proposta dall¿esercente per lappuntamento con il cliente')),
    null
    (select
    xmlagg( xmlelement("ss:Row",
    --15
    --replace(
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), indicatori.getAppointmentInfo(IC_LAVORI.ID_LAVORO))),
    --16
    xmlelement("ss:Cell",
    xmlelement("ss:Data", XMLAttributes('String' as "ss:Type"), A134_APPUNTAMENTI.A134_DATA_PROPOSTA_AEM))
    from A134_APPUNTAMENTI
    null
    null
    null
    into xml_2
    from dual;
    htp_xml.HTP_XML(xml);
    end EXPORT_XLS_TEST_PART2;
    SELECT XMLCONCAT(XMLELEMENT("Lavori", d.xml1),
                        XMLELEMENT("Appunamenti", d.xml2)) AS "OUTPUT"
         FROM dual d
    -- Function to retrieve the appointment. 15
    function getAppointmentInfo(id_lavoro A134_APPUNTAMENTI.A134_ID_LAVORO%type) RETURN VARCHAR2 IS
    v_result VARCHAR2(32676);
    CURSOR APPOINTMENTS IS
    select A134_ID_APPUNTAMENTO
    from A134_APPUNTAMENTI
    where A134_ID_LAVORO=id_lavoro ORDER BY A134_DATA_APPUNTAMENTO;
    begin
    FOR APP IN APPOINTMENTS LOOP
    v_result := v_result || APP.A134_ID_APPUNTAMENTO || '
';
    END LOOP;
    return v_result;
    end getAppointmentInfo;
    END INDICATORI_TEST;
    The part you recommended the intact before reporting function instead of the SELECT statement that I made to create precisely the concatenation?
    Thank you soon
    Have a nice day

  • Can not export XML with CC 2014. What can I do?

    Every time that I try to export a Final Cut XML, to go to Resolve, the program freezes and I have to force quit it. Any Ideas?

    We too are having this issue. On not one but several machines in our office, so definitely a Premiere issue.  This is crippling my workflow as I need to send offlines to redcineX to recreate the online and then to resolve.  Very annoying. I'm downloading the latest update now in the hope that fixes it. Otherwise it's bug report time methinks

  • TextFlow XML export issue with missing whitespaces

    If I export a TextFlow into XML (with either TextFlowUtil or TextConverter) it will lose white spaces where they occur between elements, so that a subsequence import will yield different content from the original. A simple example being:
    "Where is my white space". Will export and re-import to give: "Whereismywhitespace".
    This happens in the XML build process because when a text node is programatically appended (with appendChild()) white spaces are stripped from the start and end. For example, if you do xml.appendChild("     hello    ") you actually get an XML element containing just "hello".
    Now I understand there is a directive (XML.ignoreWhiteSpace) to ignore or keep white space when parsing nodes already set in the XML, but I cannot see how to do this when you are building the XML from some data structure (like a TextFlow), or indeed when creating an XML object from a String that contains XML notation.
    I am unaware how you can include surrounding whitespace in an XML node (short of CDATA). And the fact that the TextFlow XML import/export loses information seems to make it, well, pretty pointless.
    So, how do I retain these white spaces in a TextFlow in an exported XML?

    The solution for this problem consists of two parts.
    First part is exporting the xml from the textflow, you want no formatted XML (with breaks, tabs, ...), but one long string with the spaces left like there were entered between the tags, this can be done with:
    _textXML = TextConverter.export(EditorID.textFlow,TextConverter.TEXT_LAYOUT_FORMAT,ConversionType.STRING_TYPE) as String;
    Use the TextConverter in stead of the TextFlowUtil.
    Second part is back importing to textFlow:
    There the solution mentioned above was correct.
    XML.ignoreWhitespace = false;
    var flowXML:XML = new XML(_textXML);
    contentTLF = TextFlowUtil.importFromXML(flowXML,WhiteSpaceCollapse.PRESERVE);

  • FCPX XML not exporting audio with project...

    FCPX XML not exporting audio with any project.
    I have tried with several different projects to no avail.
    Any thoughts or suggestions?
    Thanks

    I used no special setting. I even tried to just export audio. Still no audio. I checked the file with GSpot, it shows that it has audio.
    Then I though I just went ahead an encode this and output to DVD as a test. It is indeed still no audio when playback on home dvd player.

  • Export xml in Batch with CS3

    Hi All
    Anybody have any script batch export in indesign cs3 which export the xml with using the option of "Remap, Break, Special character"
    Thanks in Advance
    Pramod Pant

    I am not a Resolve user, but could it be that Resolve has been set up for a 25fps project? And maybe the lite version restricts your frame size?
    Just curious.

  • Export only specific data in XML with Submit by Email button

    I have created a form with multiple subforms that includes user input and calculations. One of these subforms contains fields that are bound to a MS Access database to retrieve data for calculations. All of the fields on this subform are bound to the data connection. The data connection, calculations, and submit by email button all work perfectly. My only problem is that the XML data that is being exported includes the data I bound to the MS Access database. I only want the data that the user inputs. I have changed the binding to "none" on all of the calculated fields to restrict them from exporting.
    I have attached a copy of the XML file that is generated when the "Submit by Email" button is clicked. I only want the data from the "YTDIncStmt" subform to be included in this file. The "MasterData10K1", "MasterData10K2", and "MasterData10K3" are the actual data connections to the MS Access database.
    How do I limit the export to only the data the user input?

    I have the very same problem! I am importing data from MS Access and trying to export XML data that I can sync with Quickbooks. But the XML file contains some of my binded MS Access fields, which Quickbooks doesn't know what to do with, and rejects my xml files. I am also looking for a way to submit only selected XML data.  You ever find a solution/work around?

  • Health App: How to work with exported xml?

    Hello,
    is there a simple way to process exported (xml) data from health app?
    I've tried it in Excel, but some of the collected data, like heartbeat rate, is strangely formatted. It’s a real pain to reformat and process that data in Excel, and it accelerates my heartbeat too ;-) .
    If someone knows a more simple way it would be nice if you can share it?
    Thanks a lot.

    You might have to tweak this code some to get it to work, but it should at least lay the groundwork for solving your problem:
    Code Snippet
    /* Declare an XmlNode object and initialize it with the XML response from the GetListItems method. The last parameter specifies the GUID of the Web site containing the list. Setting it to null causes the Web site specified by the Url property to be used.*/
                System.Xml.XmlNode nodeListItems =
                    MyListsService.GetListItems
                    (listName, viewName, query, viewFields, rowLimit, queryOptions, null);
    System.Xml.XmlDocument xd = new System.Xml.XmlDocument();
    xd.LoadXml(nodeListItems.OuterXml);
    System.Xml.XmlNamespaceManager nm = new System.Xml.XmlNamespaceManager(xd.NameTable);
    nm.AddNamespace("rs", "urn:schemas-microsoft-com:rowset");
    nm.AddNamespace("z", "#RowsetSchema");
    nm.AddNamespace("rootNS", "http://schemas.microsoft.com/sharepoint/soap");
    System.Xml.XmlNodeList nl = xd.SelectNodes("/rootNS:listitems/rs:data/z:row", nm);
    foreach(System.Xml.XmlNode listItem in nl)
      listBoxProsjekter.Items.Add(listItem.OuterXml);
    I hope this helps!
    Please look into the following site for more info:
    http://msdn2.microsoft.com/en-us/library/4bektfx9(vs.80).aspx

  • How to export pdf as xml with scripting?

    I would like to convert many PDF files to XML format, using Acrobat's File -> Export -> XML 1.0 feature.  It looks like the scripting API is what I need, but I'm having trouble pulling all the pieces together.
    It looks like the Export feature is a plug-in and therefore does not have an explicit method in PDDoc or AVDoc or App.  I guess I need to call the plug-in through some generic mechanism.
    I probably need to
    Understand how to call a plug-in and
    Find the api for the Export plugin.
    Can someone point me to examples or other docs?  I'm not having any success with Google or forum searches.
    I'm new to Acrobat scripting, but not to programming in general.
    Thanks in advance for any help.
    Rob

    PNG doesn't support layers, so no you can't do it.

  • CS2/MAC/Applescript: XML Export problem with Special Character (thin space).

    Hi,
    I just have noticed that the base XML export of Indesign doesnt encode/keep the unicode value of Thin Space in the exported XML. Strangely, a non-breaking space is encoded ( ) and a few other higher range unicode values (well not encoded, it's in the text data just like any other character).
    The thin space is converted to a char 63 (?). I have tried utf8 and utf16.
    Is this behavior documented somewhere? There is no option in the export window.
    Does it mean that the only complete and reliable way to export text data is to have another script to export the tagged page item text content? (i definitively can do this, but it's remove alot of the simplicity of using the base XML export) [and make any simple xml/text roundtrip unfunctionnal]
    Anyone having experience with XML workflow can confirm if i have just met a known limitation of Indesign??
    Thanks,
    Eric

    Oups! I was able to find something here on the same subject:
    http://www.adobeforums.com/webx/.59b561c7/0

  • ORA-31020 when using XML with external DTD or entities

    I'd like to parse XML documents against a modular DTD that references other DTDs. This works fine with Oracle 9i. But after upgrading to 11g, the parsing of XML-instances fails and DBMS_XMLPARSER.parseClob produces ORA-31020.
    The same error occurs even if I simply try to store XML with a reference to an external DTD as xmltype:
    SQL> select xmltype('<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE ewl-artikel SYSTEM "http://www.foo.com/example.dtd"><test>123</test>') from dual;
    ERROR:
    ORA-31020: Der Vorgang ist nicht zulässig, Ursache: For security reasons, ftp
    and http access over XDB repository is not allowed on server side
    ORA-06512: in "SYS.XMLTYPE", Zeile 310
    ORA-06512: in Zeile 1
    How can I use external DTDs on remote servers in order to parse XML in an 11g database??? Any ideas for a workaround? Thanks in advance!

    This is my PL/SQL validation procedure:
    procedure validatexml (v_id in number default 0) is
    PARSER DBMS_XMLPARSER.parser;
    DTD_SOURCE clob;
    DTD_DOCUMENT xmldom.DOMDocumentType;
    XML_INSTANCE xmltype;
    BEGIN
    -- load DTD from XDB repository
    SELECT httpuritype('http://example.foo.de/app1/DTD1.dtd').getclob() into DTD_SOURCE from dual;
    -- load XML instance
    select co_xml into XML_INSTANCE from tb_xmltab where co_id=v_id;
    -- parse XML instance
    PARSER := DBMS_XMLPARSER.newParser;
    xmlparser.setValidationMode( PARSER , false);
    xmlparser.parseDTDClob( PARSER , DTD_SOURCE , 'myfirstnode' );
    DTD_DOCUMENT := xmlparser.getDoctype( PARSER );
    xmlparser.setValidationMode( PARSER , true );
    xmlparser.setDoctype( PARSER , DTD_DOCUMENT );
    DBMS_XMLPARSER.parseClob( PARSER , v_xml );
    DBMS_XMLPARSER.freeParser(PARSER);
    htp.print('<P>XML instance succesfully validated!<P>');
    end validatexml;

  • XML tags in an "export : XML" Report Template

    Hi All,
    I'm using the export XML report template to produce XML from a query. One of the column contains XML tags and the template is translating eg: if the column is "Groups" then I get:
    <Groups>& lt ;Group& gt ;Sales & lt ;/Group & gt ; & lt ;Group& gt ;IT& lt ;/Group& gt ;</Groups>(ignoring all the spaces - OTN is translating the & gt 's :)
    instead of:
    <Groups><Group>Sales<Group><Group>IT</Group></Groups>Is there an easy way to stop this ?
    Thanks,
    Steve
    Edited by: spilgrim on Mar 6, 2009 12:14 PM
    Edited by: spilgrim on Mar 6, 2009 12:14 PM

    Hi Steve,
    Did you ever solve this? I'm having a similar issue while trying to build a Report Query that I want to build with nested elements.
    &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
    - &lt;ROWSET&gt;
    - &lt;ROW&gt;
    &lt;EE_ID&gt;467&lt;/EE_ID&gt;
    &lt;EE_GRIDS&gt;
    &lt;EE_GRID INDEX="1"&gt;
    &lt;EE_INCENTIVE_CASH_PROGRAM&gt;MIP&lt;/EE_INCENTIVE_CASH_PROGRAM&gt;
    &lt;EE_BONUS&gt;20&lt;/EE_BONUS&gt;
    &lt;/EE_GRID&gt;
    &lt;EE_GRID INDEX="2"&gt;
    &lt;EE_INCENTIVE_CASH_PROGRAM&gt;VIP&lt;/EE_INCENTIVE_CASH_PROGRAM&gt;
    &lt;EE_BONUS&gt;30&lt;/EE_BONUS&gt;
    &lt;/EE_GRID&gt;
    &lt;/EE_GRIDS&gt;
    &lt;/ROW&gt;
    - &lt;ROW&gt;
    &lt;EE_ID&gt;468&lt;/EE_ID&gt;
    &lt;EE_GRIDS&gt;
    &lt;EE_GRID INDEX="1"&gt;
    &lt;EE_INCENTIVE_CASH_PROGRAM&gt;MIP&lt;/EE_INCENTIVE_CASH_PROGRAM&gt;
    &lt;EE_BONUS&gt;20&lt;/EE_BONUS&gt;
    &lt;/EE_GRID&gt;
    &lt;EE_GRID INDEX="2"&gt;
    &lt;EE_INCENTIVE_CASH_PROGRAM&gt;VIP&lt;/EE_INCENTIVE_CASH_PROGRAM&gt;
    &lt;EE_BONUS&gt;30&lt;/EE_BONUS&gt;
    &lt;/EE_GRID&gt;
    &lt;/EE_GRIDS&gt;
    &lt;/ROW&gt;
    &lt;/ROWSET&gt;
    Thanks
    Keith
    Edited by: kmatthew on Mar 17, 2009 2:44 PM

  • How to recover IN & OUT after exporting XML file from iMovie9 to FinalCut ?

    Here is my WorkFlow :
    - Log & Capture my HDV footage in FCP - ProRes422.
    - Move the captured ProRes 422 clips to a new EVENT in iMovie.
    - Roughcut my edits in iMovie with no effects, no audio goof offs, ... just straight cuts.
    - Share ( export ) XML FCP file >> import XML file to FCP >> create Archive of FCP project with MediaManager to gather used clips in a new project.
    Everything is great, BUT :
    clips that MediaManager gathers in the browser window do not have the In & Out points, although clips on the timeline representing frame accurate cuts from iMovie.
    Is there any way to do this and have the in & out points in browser clips matching to the cuts on the timeline ?

    Do what you want, I'm not trying to change your workflow, but you can do all you say you do in FCP. If you change the browser to icon view, you can place the icons in a storyboard sequence right in the browser, and the icons are scrubable as well. In FCP, you can export EDLs, which you can't do in iMovie. You can also set the timeline window to dislplay the clips in Filmstrip view, which gives you the same visual representation that you have in iMovie. If you zoom all the way into your timeline, you can see every single frames as a thumbnail.
    You already have the pro application. You're really only slowing yourself down by rough cutting in iMovie. But do as you will. In the end, it's really only about telling a story. I just prefer to have the least amount of obstacles while doing so.

  • Export XML in right frame rate  for resolve?

    Hi!
    I'm in serious need for some help! When I import my exported XML sequence from premiere in to DaVinci Resolve 10 lite, I get an error message saying "The imported sequence frame rate (25) must be the same as the project frame rate (23,976)." All of my settings in Premiere that I can think of is set to 23,976fps, but if I understand the error message right, DaVinci claims the XML is 25fps... doesn't make any sense at all. I've tried for several hours now getting this to work, but it won't.
    I would really appreciate some help with this one, I'm in a hurry (as always, we're behind schedule). Worked with Davinci many times before, never had any problem with it.
    Regards
    /Patrik

    I am not a Resolve user, but could it be that Resolve has been set up for a 25fps project? And maybe the lite version restricts your frame size?
    Just curious.

  • Change exported XML from a report

    Hello,
    I need to export a XML from a report button with this structure:
    <LOTE CONTABLE>
    <CONFIG />
    <LOTE>LOTE</LOTE>
    <LINEAS>
    <LINEA>
    <FAC_CODI>1</FAC_CODI>
    <EFDESC>F/pruebass N 1</EFDESC>
    <EFTYPENT>P</EFTYPENT>
    <EFCOMPTE>960</EFCOMPTE>
    </LINEA>
    </LINEAS>
    I have a report with all the columns that I need. I have created a Report Queries (from Shared Components) to generate a XML with the same sql as the report but the XML that APEX generates by default has this structure:
    <ROWSET>
    <ROW>
    <FAC_CODI>1</FAC_CODI>
    <EFDESC>F/pruebass N 1</EFDESC>
    <EFTYPENT>P</EFTYPENT>
    <EFCOMPTE>960</EFCOMPTE>
    </ROW>
    </ROWSET>
    How can I change this structure? I want to add a header and replace "rowset" and "row" to "lineas" and "linea". Is it possible?
    Thank you very much in advance.
    Kind regards,
    Amparo

    >
    The issue is that in the following code, I've replaced this line:
    qryCtx := dbms_xmlgen.newContext('select hash_value from hash');
    with this line:
    qryCtx := dbms_xmlgen.newContext(V_Return);
    I did this because the value that I want to be in XML is in the variable V_Return and not in a table. I get a compilation error:
    PLS-00382: expression is of wrong typeCompilation failed
    Is there a way to use newContext with a variable value rather than a select statement from a table?
    >
    It seems unlikely. The DBMS_XMLGEN documentation says:
    >
    The DBMS_XMLGEN package converts the results of a SQL query to a canonical XML format. The package takes an arbitrary SQL query as input, converts it to XML format, and returns the result as a CLOB.
    >
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/d_xmlgen.htm#i1012053
    If <tt>VReturn</tt> is not a SQL query then you will need to use one of the (many) other ways of generating XML. This question has nothing to do with APEX and would be better addressed to the XML DB.
    Additionally, the recommended methods for XML generation, encryption and hashing are heavily version-dependent and you should always quote the relevant DB version/edition information to ensure an appropriate answer. For example, DBMS_OBFUSCATION_TOOLKIT is deprecated as of Oracle 10g and replaced by DBMS_CRYPTO.

Maybe you are looking for

  • How do I change the order of blog entries?

    How can I change the order of my blog entries? I want to add some extra items with an earlier date but iWeb won't let me drag the entries around and insists they must stay in the order of the creation date. What do I do? Dual 2 GHz PowerPC G5   Mac O

  • Error while launching JDeveloper 10.1.3.5

    Hi, when I launch JDeveloper, it open the screen whith loadbar and close it immediatly. I have the following error : Product extension oracle.jdeveloper does not exist! Can someone help me? I have setup the zip install whith its own jdk Thanks, and s

  • Pics turn red when ken burns is turned on

    hi i was just editing a slideshow im making and when i added the ken burns effect all my photos turned red and stayed that way i was wondering how to get rid of this

  • Issue in reselecting an item In JCombo.

    Hi Wishing u a very happy new year..! I have 5 items in my JCombobox. It’s a customized combo box. When I select any item in the combo, it will paste command related to the selected item in a TextArea. But problem is when I selects any item (e.g. x i

  • Compressor output to FLV using Flash Pro Codec?

    I was told by an Apple Tech support person, after venting my frustrations over Apple's website promoting Compressor being able to output to FLV, that Compressor CAN output to FLV using the FLV codec that is available if you have Flash Pro Installed.