Read in xml special characters

Hi,
I have PL/SQL block to read in a xml file from a URL. I manage to store it perfectly fine. The problem is that I have problems reading in special characters when selecting the view. Any help please? Here is my code:
DECLARE
req utl_http.req;
resp utl_http.resp;
myvalue blob;
myclob blob;
feedtype number;
BEGIN
Select id into feedtype
from feednames
where name = 'EA';
req := utl_http.begin_request('http://cput-ep ap04.work.com:8852/test/gne.xml');
resp := utl_http.get_response(req);
LOOP
utl_http.read_line(resp, myvalue, TRUE);
myclob := myclob || convert(myvalue, 'UTF8', 'WE8ISO8859P1');
END LOOP;
utl_http.end_response(resp);
commit;
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
Delete from feeds where id = feedtype;
insert into feeds values (feedtype,xmltype(myclob));
commit;
END;
The view that I have created is:
create or replace view GM as
select
extractvalue(value(d), '/article/@article_id') id,
extract(value(d), '/article/@article_title').getclobval() title,
extractvalue(value(d), '/article/@article_descrip') description
from feeds x,
table(xmlsequence(extract(x.DATA_XML, '/article_elements/article'))) d where x.ID = 7

How about some sample data? The Url you gave has a space in it and is not public available. What's the error message you got?

Similar Messages

  • How to replace XML special characters using Xpress e.g. ' = '

    Hellos
    I need to write some XML built from resource data.
    The resource data strings can contain anything e.g. & ' " < and > characters.
    How do I replace these characters with the strings & &apos; " etc.... from within Xpress?
    I try something like:-
    <set name='testchar'>
    <switch>
    <ref>thisLetter</ref>
    <case>
    <s>'</s>
    <s>&apos;</s>
    </case>
    <case>
    <s>"</s>
    <s>"</s>
    </case>
    <case default='true'>
    <ref>thisLetter</ref>
    </case>
    </switch>
    </set>
    But when saved the <s>&apos;</s> gets saved as <s>'</s>
    Is this impossible with Xpress forcing me to invoke my own Java class? (which is a pain to do because of internal politics re restarting of App Server).

    Hmmmm seems there is transformation in this set up too.
    What I am trying to do is to parse a string which may or may not contain XML special characters into an XML acceptable string.
    e.g. transform the surname O'Connor into O&apos ;Connor (with no embedded blank)
    I wish to write a rule which uses XPress language to achieve this.
    I want to convert the character ' into the string &apos ; (with no blank between apos and ;) and similar for the other XML specials.
    Is this possible?

  • Reading and writing Special Characters to Oracle DB

    Hi All,
    I need to insert data from CSV to Oracle DB and then use the same data for creating XML file in UTF-8 format.
    I have few fields in the CSV file which has � and � special characters. I'm able to read � and write in UTF-8 , but the same procedure is resulting in some other ascii character for �.
    While reading data from CSV file :
    Reader l_fileReader = new InputStreamReader(p_in,"ISO-8859-1");
    Can anyone help me.
    Thanks,
    Ramki.

    Does anyone has some pointers or clues?

  • Preserving XML "special" characters in output

    I've got a valid XML document that may contain special characters, such as ampersands. These characters are properly escaped in the document (i.e., + is represented as amp; ). When I parse this document (using either the Java V2 parser or the PL/SQL parser) and then retrieve the values from a DOM using getNodeValue, I get the un-escaped version () and I need the escaped version (+amp;) so that I can store it in a database and load it back into a DOM at a later date.
    What am I missing here? Is there a property on the parser/DOM that I can set so that the characters are not translated on output.
    Thanks
    mark
    Note: I've used + in the above example instead of the ampersand character because of the vagaries of my browser, but the character in the XML document is a proper ampersand!

    The DOM is not required to escape the characters, so it is correct that you get the literal ampersand characters when you ask the DOM for a getNodeValue().
    When an XML document is serialized -- using, for example, the XMLDocument.print() method -- it is when this external form of the document is produced that escaping occurs.
    You can always call XMLNode.print() to serialize the value of a node and it's children into a PrintWriter that wraps a StringWriter to get the string equivalent of the properly escaped values.

  • Cannot read out loud special characters when text is french

    Hi everyone,
    First of all, I hope my english is on par for your understanding. I speak french as first language and we use the French installation of our Adobe products.
    Working in the IT department, our clients working in the communications department currently use Acrobat pro X on Mac 10.8 to make accessible PDFs. Before I reinstalled their iMacs with a fresh copy of 10.8, they were working on OSX 10.6, also with Acrobat Pro X. They didn't have the following issue.
    Since the fresh 10.8 install, they cannot use the read out loud function properly. As you may know, with french language comes the use of special characters. Lots of them. But Acrobat will not read out loud any sentence or paragraph having special characters like " é, à, ù, è" and such.
    I first contacted Adobe, a few weeks ago, through their Live chat function, about this problem. They addressed the issue by stating that they do not support Acrobat X on 10.8. I had to reinstall Acrobat using version XI in order to receive support. Fortunately, I was able to download the correct version and use it in trial mode. Unfortunatly though, I still had the same issue. It seems that I no longer have access to Live chat, so I turn to you all for help.
    Also, I have a French voice pack in OSX and when I use the Voiceover function in OSX, outside of Acrobat, the system reads out loud any accents or special characters like it should. This is mainly why I associated the issue with Acrobat and not OSX.
    If you need clarifications, ask away and I will get back as soon as possible.
    Thank you for your time.

    Used your sentence "TTS is closed October 9th." in a Word file and output a tagged PDF via PDFMaker.
    Added Alt Text for the tag that was the parent for the container holding the text string.
    ROL with Acrobat 9 Pro and Acrobat X Pro spoke the entered Alt Text.
    In short, could not duplicate what you've described.
    Perhaps an Acrobat repair or processing any outstanding updates could resolve things.
    Or a return to the structure tree may be in order. Look for what is amiss there.
    Be well...

  • JDOM + READING HINDI XML  + JUNK CHARACTERS + NEED HELP

    MY QUESTION :
    The Junk characters you see in below xml are hindi characters. When I change font to DVBW-TTYogesh in notepad I am able to see Hindi text.
    When I retreive element's content using getText() of JDOM's Element class I am getting junk characters but not hindi text.
    How to retrieve Hindi Text ?
    <?xml version="1.0" encoding="UTF-8"?>
    <content id="v1_t1_st1">
         <name><![CDATA[������� ���������� �������������� ���� ����������� ����� ��������� ������]]></name>
         <step id="1" loadFullPage="true">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_01.mp3"/>
              <graphic src="02_10_01_001_01.swf"/>
              <transcriptText><![CDATA[������������, ������� ��� �������� ���������� ��� ��� ��� ��� ������������ �������� ��� ����� ����� ��� ������ ��������� ��� (������) �������� ��������� ��� ������������ ��� ���� ������ ��������������� �������� ��� ������ ��� ����������]]></transcriptText>
         </step>
         <step id="2" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_02.mp3"/>
              <graphic src="02_10_01_001_02.swf"/>
              <text>
                   <point><![CDATA[������ �������������� ��������]]></point>
                   <point><![CDATA[������ ��� ������������]]></point>
              </text>
              <transcriptText><![CDATA[������ �������������� ������� ���� ��������� ������������ ��� ���� ������ ������� ������� �� ���� ��� ������ ��� ������ ������� ��� ������ ��� ��� ������ ��� ��� �������� ��� ���� ��� ����� ������� ���� ���� ������� ��� ����� ����� ������������ ���� ������������ ������� ���, ������ ���� ������ ������ ����� ��� ��������� ���� ������ ��� � ���� ��� ����� ��� ������������ ���� ������]]></transcriptText>
         </step>
         <step id="3" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_03.mp3"/>
              <graphic src="02_10_01_001_03.swf"/>
              <text>
                   <point><![CDATA[�������� �������]]></point>
              </text>
              <transcriptText><![CDATA[������� ������� ������� ���������� ��� �������� ���, ����� ����� ������� ���������� ��� ����� ��� �������� ������� ����� ���������, ������ ������� ��� ������ ������� ��� ������� ���� ��������� ��� ������]]></transcriptText>
         </step>
         <step id="4" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_04.mp3"/>
              <graphic src="02_10_01_001_04.swf"/>
              <text>
                   <point><![CDATA[����� ������� �����]]></point>
                   <point><![CDATA[������]]></point>
              </text>
              <transcriptText><![CDATA[����� ������� ��� ��� �������� �������� ������ ��� ����� ������� ������ ����� ������� ����� ��� �������� ����  ���� ���� ������� ��, �������� ��������� ������ ���������� ���� ������� ��� ������ ��� ����� ��������� ��� ������ ������ ������ ����]]></transcriptText>
         </step>
         <step id="5" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_05.mp3"/>
              <graphic src="02_10_01_001_05.swf"/>
              <text>
                   <point><![CDATA[������� ������]]></point>
                   <point><![CDATA[���������]]></point>
                   <point><![CDATA[U ������]]></point>
              </text>
              <transcriptText><![CDATA[������ ����� ������ ������ ���� ������� ������� ����� ��������� ��� ����� ������� ����� ��� ����� ������� ������ ���� ��������� ������ ������� ���������� ���� ��� ����� �������� ������� ����<br/>������ ���������� U ��������� ��� ������ ��� ������ ��� ����� ������� ������ ����� ������� ����]]></transcriptText>
         </step>
         <step id="6" loadFullPage="true" templateType="TemplateBullet">
         <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_06.mp3"/>
              <graphic src="02_10_01_001_06.swf"/>
              <text>
                   <point><![CDATA[��������]]></point>
                   <point><![CDATA[������� �����]]></point>
                   <point><![CDATA[��������� �����]]></point>
                   <point><![CDATA[�������� ���� ]]></point>
              </text>
              <transcriptText><![CDATA[������� ��� ������ ���� ������� ����� ������� ��������� ��� ����� ��� ���������� ���� �������� ������� ����<br/>�������, ������� ����� ������� ��������� ������ ��� ������� ����� ����� ��������� ����� ��� ������ ��� ������ ������� ����<br/>���� ������, ������� ����� ��� ������ ���� ������ ������� ���<br />������ ����� ������ ��������������� ����� ������� ���������� ��� ������� ������ ������� ���]]></transcriptText>
              <Practice>
                   <Question audio="02_10_01_001_06_q.mp3"><![CDATA[�������, ������� ����� ������� ��������� ������ ��� �������������� ��� ���������� ��� ������� ������� �� -]]></Question>
                   <Answers>
                        <Option answer="1"><![CDATA[������� ����� ����� ��������� �����]]></Option>
                        <Option><![CDATA[����� ������]]></Option>
                   </Answers>
                   <CorrectFeedback audio="02_10_01_001_06_fb1.mp3"><![CDATA[���� ����� ���! �������, ������� ����� ������� ��������� ������ ��� ������� ����� ����� ��������� ����� ��� ���������� ��� ������� ������� ����]]></CorrectFeedback>
                   <IncorrectFeedback audio="02_10_01_001_06_fb2.mp3"><![CDATA[���� ����� ����� ���! �������, ������� ����� ������� ��������� ������ ��� ������� ����� ����� ��������� ����� ��� ���������� ��� ������� ������� ����]]></IncorrectFeedback>
                   <Alert></Alert>
              </Practice>
         </step>
         </content>
    MY QUESTION :
    The Junk characters are hindi characters. When I change font to DVBW-TTYogesh I am able to see Hindi text.
    When I retreive element's content using getText() I am getting junk characters but not hindi text.
    How to retrieve Hindi Text ?
    2nd question :
    When I store Hindi language in xml I am not able to see hindi characters.

    MY QUESTION :
    The Junk characters you see in below xml are hindi characters. When I change font to DVBW-TTYogesh in notepad I am able to see Hindi text.
    When I retreive element's content using getText() of JDOM's Element class I am getting junk characters but not hindi text.
    How to retrieve Hindi Text ?
    <?xml version="1.0" encoding="UTF-8"?>
    <content id="v1_t1_st1">
         <name><![CDATA[������� ���������� �������������� ���� ����������� ����� ��������� ������]]></name>
         <step id="1" loadFullPage="true">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_01.mp3"/>
              <graphic src="02_10_01_001_01.swf"/>
              <transcriptText><![CDATA[������������, ������� ��� �������� ���������� ��� ��� ��� ��� ������������ �������� ��� ����� ����� ��� ������ ��������� ��� (������) �������� ��������� ��� ������������ ��� ���� ������ ��������������� �������� ��� ������ ��� ����������]]></transcriptText>
         </step>
         <step id="2" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_02.mp3"/>
              <graphic src="02_10_01_001_02.swf"/>
              <text>
                   <point><![CDATA[������ �������������� ��������]]></point>
                   <point><![CDATA[������ ��� ������������]]></point>
              </text>
              <transcriptText><![CDATA[������ �������������� ������� ���� ��������� ������������ ��� ���� ������ ������� ������� �� ���� ��� ������ ��� ������ ������� ��� ������ ��� ��� ������ ��� ��� �������� ��� ���� ��� ����� ������� ���� ���� ������� ��� ����� ����� ������������ ���� ������������ ������� ���, ������ ���� ������ ������ ����� ��� ��������� ���� ������ ��� � ���� ��� ����� ��� ������������ ���� ������]]></transcriptText>
         </step>
         <step id="3" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_03.mp3"/>
              <graphic src="02_10_01_001_03.swf"/>
              <text>
                   <point><![CDATA[�������� �������]]></point>
              </text>
              <transcriptText><![CDATA[������� ������� ������� ���������� ��� �������� ���, ����� ����� ������� ���������� ��� ����� ��� �������� ������� ����� ���������, ������ ������� ��� ������ ������� ��� ������� ���� ��������� ��� ������]]></transcriptText>
         </step>
         <step id="4" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_04.mp3"/>
              <graphic src="02_10_01_001_04.swf"/>
              <text>
                   <point><![CDATA[����� ������� �����]]></point>
                   <point><![CDATA[������]]></point>
              </text>
              <transcriptText><![CDATA[����� ������� ��� ��� �������� �������� ������ ��� ����� ������� ������ ����� ������� ����� ��� �������� ����  ���� ���� ������� ��, �������� ��������� ������ ���������� ���� ������� ��� ������ ��� ����� ��������� ��� ������ ������ ������ ����]]></transcriptText>
         </step>
         <step id="5" loadFullPage="true" templateType="TemplateBullet">
              <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_05.mp3"/>
              <graphic src="02_10_01_001_05.swf"/>
              <text>
                   <point><![CDATA[������� ������]]></point>
                   <point><![CDATA[���������]]></point>
                   <point><![CDATA[U ������]]></point>
              </text>
              <transcriptText><![CDATA[������ ����� ������ ������ ���� ������� ������� ����� ��������� ��� ����� ������� ����� ��� ����� ������� ������ ���� ��������� ������ ������� ���������� ���� ��� ����� �������� ������� ����<br/>������ ���������� U ��������� ��� ������ ��� ������ ��� ����� ������� ������ ����� ������� ����]]></transcriptText>
         </step>
         <step id="6" loadFullPage="true" templateType="TemplateBullet">
         <title><![CDATA[������ - ��������������� ����� ������� ����������]]></title>
              <audio src="02_10_01_001_06.mp3"/>
              <graphic src="02_10_01_001_06.swf"/>
              <text>
                   <point><![CDATA[��������]]></point>
                   <point><![CDATA[������� �����]]></point>
                   <point><![CDATA[��������� �����]]></point>
                   <point><![CDATA[�������� ���� ]]></point>
              </text>
              <transcriptText><![CDATA[������� ��� ������ ���� ������� ����� ������� ��������� ��� ����� ��� ���������� ���� �������� ������� ����<br/>�������, ������� ����� ������� ��������� ������ ��� ������� ����� ����� ��������� ����� ��� ������ ��� ������ ������� ����<br/>���� ������, ������� ����� ��� ������ ���� ������ ������� ���<br />������ ����� ������ ��������������� ����� ������� ���������� ��� ������� ������ ������� ���]]></transcriptText>
              <Practice>
                   <Question audio="02_10_01_001_06_q.mp3"><![CDATA[�������, ������� ����� ������� ��������� ������ ��� �������������� ��� ���������� ��� ������� ������� �� -]]></Question>
                   <Answers>
                        <Option answer="1"><![CDATA[������� ����� ����� ��������� �����]]></Option>
                        <Option><![CDATA[����� ������]]></Option>
                   </Answers>
                   <CorrectFeedback audio="02_10_01_001_06_fb1.mp3"><![CDATA[���� ����� ���! �������, ������� ����� ������� ��������� ������ ��� ������� ����� ����� ��������� ����� ��� ���������� ��� ������� ������� ����]]></CorrectFeedback>
                   <IncorrectFeedback audio="02_10_01_001_06_fb2.mp3"><![CDATA[���� ����� ����� ���! �������, ������� ����� ������� ��������� ������ ��� ������� ����� ����� ��������� ����� ��� ���������� ��� ������� ������� ����]]></IncorrectFeedback>
                   <Alert></Alert>
              </Practice>
         </step>
         </content>
    MY QUESTION :
    The Junk characters are hindi characters. When I change font to DVBW-TTYogesh I am able to see Hindi text.
    When I retreive element's content using getText() I am getting junk characters but not hindi text.
    How to retrieve Hindi Text ?
    2nd question :
    When I store Hindi language in xml I am not able to see hindi characters.

  • Reading special characters from a flat file and inserting into DB

    I'm reading data with special characters like . etc from a flat file , assigning the data to variable in my anonymous block and inserting into my DB. But the show up as inverted ? s. Any clues about how to do this?
    If i try to do the insert directly it works. It seems like the error occurs when reading this data into a variable
    thanks for the help
    Lalit Bhatia

    lalit, this is probably an character set problem, the default on Database creation tends to be 7bit Ascii which does not support special characters, it's been a while since I set up a db in this way, but you need to change settings in oracle.ini. The db will need to be restarted for this. Also, to check current settings try:
    select * from NLS_DATABASE_PARAMETERS
    You want an 8bit, unicode or multibyte character set. Sorry I cannot remember moer off the top of my head, try searching on NLS or character set

  • PDS - XML format, unable to read special characters in a string.

    Hi All,
    I've been using XML files to create my report with Oracle9i's new featue of PDS.
    Now, I'm unable to read a file if it contains '&' or '<' in the string. In fact, the xml file itself not able to crate a xml page in the browser, if these special characters are present.
    Is there any way to solve this problem ?
    I can't tell the users to remove &, < from the description data. Is there any way to workaround for this ?
    Thanks in advance,
    Satya.

    Hi Rohit and Rajesh
    Thanks for your reply.
    In fact, my problem is like this:
    I'll get data in .txt file and save that as a .xml file in the network before calling Oracle report ,which gets data from the .xml.
    The contents are like this:
    <Comapy name> Ford Motors UK & Europe</Company name>
    <Department> HR & Pensions</Depatrment>
    <Salary>Grad4 < 25000 </Salary>
    As per XML entity character representation, I need to replace '&' with '&amp;' and '<' with '<lt;'
    I'm wondering is there any other way to solve this problem as it is difficult to replace '<' and '>' generically.
    Honestly, I couldn't understand what Mr. Rajesh was trying to tell.
    'for & use & ( with semicolon at the end)'
    'for < use <'
    'for > use >'
    Can you shed some light on this ?
    Many thanks
    Satya.

  • XSL-FO unable to read special characters from the XML file

    Team,
    please help on issue, when trying to read the text from XML file (Special characters like bullet). It is displaying as Question mark(?) in output in place of bullet..please proved any soultion.

    The "?" signals a character set mismatch issue - http://www.oracle.com/technetwork/database/globalization/nls-lang-099431.html - between client and database software

  • FindNode returning Null And XML Not Accepting Special Characters

    Hi All,
    i am trying the get the attribute value in the element "ns4:InfoCFDi" using FindNode method, but the method is returning NULL. I used the same code for other sample as well and was successfull. but for this specific XML file(which is below) I am getting a Null.
    i can get till S:Body, but when i try to use FindNode for ":Body/s4:ResponseGeneraCFDi" I get Null value.
    And I used "S:Body/*[local-name()=" | "ns4:ResponseGeneraCFDi" | "]";
    as mentioned in other post but still no success.
    ==>I Have one more question relating to special characters. I need to use characters such as - ó in my XML to read as well as write. When I try to read i am getting XML parse error and when writing, i cannot open the file properly.
    Your help is much appreciated.
    My code is here:
    Local XmlDoc &inXMLDoc, &reqxmldoc;
    Local XmlNode &RecordNode;
    &inXMLDoc = CreateXmlDoc();
    &ret = &inXMLDoc.ParseXmlFromURL("D:\Agnel\Mexico Debit Memo\REALRESPONSE.xml");
    If &ret Then
    &RecordNode = &inXMLDoc.DocumentElement.FindNode("" );
    If &RecordNode.IsNull Then
    Warning MsgGet(0, 0, "Agnel FindNode not found.");
    rem MessageBox(0, "", 0, 0, "FindNode not found");
    Else
    &qrValue = &RecordNode.GetAttributeValue("asignaFolio ");
    Warning MsgGet(0, 0, "asignaFolio." | &qrValue);
    End-If;
    Else
    Warning MsgGet(0, 0, "Error. ParseXmlString");
    End-If;
    XML File:
    - <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    - <S:Body>
    - <ns4:ResponseGeneraCFDi xmlns="http://www.xxl.com/ns/xsd/bf/rxx/52" xmlns:ns2="http://www.sat.gob.mx/cfd/3" xmlns:ns3="http://www.xx/ns/bf/conector/1&quo t; xmlns:ns4="http://www.xx/ns/xsd/bfxx/xx/32&qu ot; xmlns:ns5="http://www.xxcom/ns/xsd/bf/xxxxx&q uot; xmlns:ns6="http://wwwxx.com/ns/referenceID/v1">
    - <ns3:Result version="1">
    <ns3:Message message="Proceso realizado con exito." code="0" />
    </ns3:Result>
    - <ns4:InfoCFDi noCertificadoSAT="20001000000100003992" refId="STORFAC20121022085611" fechaTimbrado="2012-10-22T08:56:45" qr=" "
    uuid="a37a7d92-a17e-49f4-8e4d-51c983587acb" version="3.2" tipo="XML" archivo="xxx" sello="B8WjuhYLouSZJ6LU2EjxZ0a4IKyIENZNBx4Lb4 jkcAk6wA+EM477yz91/iDdsON0jm8xibBfom5hvHsH7ZK1ps3NnAXWr1LW 7ctmGsvYKAMvkCx/yOVzJTKFM2hN+OqCTE0WVfgv690vVy2CDQWKlMxbK+3idwG4t OKCMelrN9c=" fecha="2012-10-22T08:56:44" folio="281" serie="IICC">
    <InfoEspecial valor="Este documento es una representacin impresa de un CFDI." atributo="leyendaImpresion" />
    <InfoEspecial valor="||1.0|a37a7d92-a17e-49f4-8e4d-51c983587acb|2012-10-22T08:56:45|B8WjuhYLouSZJ6LU2EjxZ0a4IKyIENZNBx4Lb4 jkcAk6wA+EM477yz91/iDdsON0jm8xibBfom5hvHsH7ZK1ps3NnAXWr1LW 7ctmGsvYKAMvkCx/yOVzJTKFM2hN+OqCTE0WVfgv690vVy2CDQWKlMxbK+3idwG4t OKCMelrN9c=|20001000000100003992||" atributo="cadenaOriginal" />
    <InfoEspecial valor="Doscientos dieciocho mil cuatrocientos setenta y cinco pesos 00/100 M.N." atributo="totalConLetra" />
    </ns4:InfoCFDi>
    </ns4:ResponseGeneraCFDi>
    </S:Body>
    </S:Envelope>
    TIA

    First of all you have to supply a value you want to search for and this has to be the complete path to the value. You're saying you already tried that, but can you paste the code which you used for that? I don't see the path mentioned in the code you posted.
    *FindNode*
    Syntax
    FindNode(Path)
    Description
    Use the FindNode method to return a reference to an XmlNode.
    The path is specified as the list of tag names, to the node that you want to find, each separated by a slash (/).
    Parameters
    Path
    Specify the tag names up to and including the name of the node that you want returned, starting with a slash and each separated by a slash (/). This is known as the XPath query language.>
    Another option would be this snippet of code:
    &InfoCFDiArray = GetElementsByTagName("ns4:InfoCFDi");
    &InfoCFDiNode = &InfoCFDiArray [1];
    &attValue = &InfoCFDiNode.GetAttributeValue("noCertificadoSAT")
    Warning(&attValue);
    It creates an array of XML Nodes which match the name "ns4:InfoCFDi". Since there's only one in the XML it's safe to assume it will be the one and only node in the array. I've assigned that node to the variable &InfoCFDiNode and use that to retrieve the attribute "noCertificadoSAT" value. The warning message should display the value supplied there.
    Concering the special characters; you will have to change the encoding of the XML. Peoplecode sets this to UTF-8 by default, but doesn't include this in the header. There's a little hack for that somewhere on the web, I'll see if I can find it.

  • Special characters in XML structure when prepared using String

    Hi,
       I am preparing an XML structure using 'String'. I print the prepared XML structure in the server log. Issue is that I am seeing extra characters([[ and ]]) that I am not printing.
    Please let me know how to get rid of those.
    Code Excerpt
            String xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
            String lsb_xmlcon = xmlHeader;
            logger.info("ReqXMLString Process  1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("<REQUEST>");
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.2  --->" + lsb_xmlcon);
    Log
    ReqXMLString Process  1  ---><?xml version="1.0" encoding="utf-8" ?>
    ReqXMLString Process  1.1  ---><?xml version="1.0" encoding="utf-8" ?>[[
    ReqXMLString Process  1.2  ---><?xml version="1.0" encoding="utf-8" ?>[[
    <REQUEST>
    Thanks,
    Message was edited by: 996913
    This issue is observed only while running the code in server, not from Jdev.
    When we append the additional tags without new line character, "\n", there are no extra characters being added. Also, in other case also. where we used "Marshaller" to prepare the XML, we have seen this issue.
    After we set the below property to false, we got rid of the extra characters.
                            jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
    Apparently the insertion of new line when the code runs on server(Weblogic 10.3.6.0) is creating the issue.
    Please let me know if anyone has come across a similar scenario.
    Thanks,

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

  • Special Characters in XML Publisher PDF Output

    Hi,
    I'm printing "Long Text" in report output in every line based on tab.
    Report output is having special characters like \n.
    I was using below to print in next line, any suggestions for removing \n.
    Below is what was happening:
    ===================
    RDF:
    =====
    lv_notes := replace(:CF_LONG_TEXT_DESC, chr(9), ' ') ;
    lv_notes1 := replace(lv_notes, chr(10), ' ') ;
    lv_notes2 := replace(lv_notes1, chr(13), ' ') ;
    XML
    ===
    <CF_LONG_TEXT_desc>
    Initial Billing Amount: $549,180.00 \n \n Computation: \n a) Estimated Number of Full-Time Students: 12,000 \n
    b) Estimated Number of Calendar Days: 113 \n
    c) Calendar Date (From - To): 1/18/2011 - 5/10/2011 \n
    d) Multiply by: $0.81 \n
    e) Estimated Total Costs: $1,098,360.00 \n
    f) Initial Billing Amount represents 50% of Estimated Total Costs. \n
    \n \n
    If you have questions about your invoice please contact Darud Akbar at (312) 681-2724.
    </CF_LONG_TEXT_desc>
    PDF Output
    ==========
    Initial Billing Amount: $549,180.00 \n \n Computation: \n a) Estimated Number of Full-Time Students: 12,000 \n
    b) Estimated Number of Calendar Days: 113 \n
    c) Calendar Date (From - To): 1/18/2011 - 5/10/2011 \n
    d) Multiply by: $0.81 \n
    e) Estimated Total Costs: $1,098,360.00 \n
    f) Initial Billing Amount represents 50% of Estimated Total Costs. \n
    \n \n
    If you have questions about your invoice please contact Darud Akbar at (312) 681-2724.
    Thanks.

    >
    Initial Value
    =======
    <?CF_LONG_TEXT_desc?>
    Changed to (Below gives me error)
    ========
    <?<xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>?>
    Changed to (Below doesn't fetch data)
    ========
    <xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>
    >
    must be in field as
    <xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>

  • How to convert special characters in ABAP to XML?

    Hi All.
    We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated.
    Now, if the XML contains any special characters, it will fail.
    So if any CHinese char or >, # etc signs are there, it fails.
    Can you please tell me how to convert my string in ABAP to a proper XML?
    I am new to it and I was trying the following code
    DATA: today TYPE string,
          result TYPE string.
    today = 'This is testing'.
    CALL TRANSFORMATION ID
         SOURCE today = today
         RESULT XML result.
    IF sy-subrc = 0.
      WRITE result.
    ENDIF.
    But it does not return me anything.
    Thanks in adv.

    hi
    good
    go through these links,hope these would help you to solve your problem
    http://www.sap-press.de/download/dateien/792/sappress_abapreference_2edition.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    thanks
    mrutyun^

  • How to export special characters into an XML file?

    Dear experts,
    We read files from our customers and save data into our customized table without any character changed, including some address fields. In those address fields, some special characters (not in our code page) are also kept. When we want to write these address fields into an XML file or flat file, the special charcters become "##" or not readable, can anyone help us to solve this issue?
    Question1: How to write special code to an external file?
    Question2: how to use 'CALL TRANSFORMATION' from an internal table to an XML file?
    Your answer is highly appreciated!
    Joanne

    Hi Joanne.
    Please check the below link.
    CALL TRANSFORMATION
    Before that u have to create one transformation program in STRANS tcode for using it in call transformation statement.
    Hope it will be useful.
    Regards,
    Lakshman

  • Special characters in XML document

    I have a Flash file saved as version 8 with the following script calling an xml file:
    //init TextArea component
    myText.html = true;
    myText.wordWrap = false;
    myText.multiline = false;
    myText.label.condenseWhite=true;
    //load in XML
    xml = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function(success){
        if(success){
            myText.text = xml;
    xml.load("titletext.xml");
    My xml file contains the following:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <![CDATA[Smith's dog & cat are "crazy"]]>
    When posted online my flash file displays the encoding tag in the xml file.
    AND the apostrophe, ampersand and quote marks display as html code instead of the actual character.
    I can take the encoding tag out of the xml file but my characters still don't display correctly.
    My dynamic text field in flash (myText) does have special characters embedded, plus I have them entered manually in the field for 'include these characters'.
    Does anyone have suggestions for me?
    You can view this test file at http://wilddezign.com/preshomes_name2.html
    TIA

    Perhaps you need a slightly different approach to loading the XML. Instead of loading the entire XML file, what if you loaded only the child you were looking for? This is what I usually do:
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.load("some.xml");
    xml.onLoad = parse;
    function parse(success){
    if (success){
      root = xml.firstChild;
      _global.numberItems = root.attributes.items;
      itemNode = root.firstChild;
      var i:Number = 0;
      while(itemNode != null){
         myText.text = itemNode.attributes.description;
         itemNode = itemNode.nextSibling;
         i++;
      else {
      trace("XML Bad!!");
    And your XML would be structured like this:
    <?xml version="1.0" encoding="utf-8"?>
    <sample>
    <item description="This is the text that I want to appear on this MC!" />
    </sample>

Maybe you are looking for

  • Creation of triger for Concurrent   manger

    Dear All, On our production server the concurrent manger gets down automatically because of workload can we create any kind of trigger for concurrent manager so we can monitor audit the concurrent manager please suggest.

  • Multiple values in Presentation Variable

    Hi All, I have a requirement like this. I have a report that report is Direct Database request. I want to pass the multiple values from the prompt in to the Direct database request report. The single values is already passed in the direct database re

  • Video issues on ipad

    When I try to watch videos in safari most of the time it only buffers a little in the beginning and then pretty much stops or goes so slow it's basically useless. I know this is not a wifi or slow connection problem because apps like "ABC" play HD vi

  • Cannot Schedule report in WEBI

    I've built a report in Crystal XI Release 2 and brought it into WEBI, however, I cannot schedule the report to run (even immediately).  When I try to schdule the report, I get a request for Database Logon information for every query in the report, ev

  • ALE Distribution Model Guide

    Dear experts In BD64,I have created a distribution view and add a message type. But there is no data under the message type, how can i to add the data filter? TKS! Best Regards!