Special characters in a href
Hi,I generate a html using JAXPs xslt transformer.
One of the consists of Western european special characters(where pHREF is a xsl variable/param).
while text printing, the special characters(�) are printed as they are, but are distorted when I want to generate a .
Do you set the top element and its encoding attribute ?
E.g.
<xsl:output encoding="iso-8859-1">
Similar Messages
-
Dealing with special characters in PHP part deux
Something else is confusing me about special characters. I am doing some troubleshooting/maintenaince on my files. On one files I have my navigation bar on a separte file and use the include function to use it.
For the other file, I took the include out and just copy and pasted what was in the inculde file directly on to the file.
The words that contain special characters in the include appear funny in the browser. However the menu that is not included (but copied from the include) appears normal.
Any thoughts?
One is copied and pasted from the other, yet the look differentSorry, my head's been swimming today:
Here is the include file (minus much of the list)
The Beers
Recent Additions
Recommended
Hybrid
06 Light Hybrid
06a Cream Style
06b Blonde Ale
06c Kölsch
06d American Wheat/Rye
07 Amber Hybrid
07a Northern German Altbier
07b California Common
07c Düsseldorf Altbier
And the above include is put in here:
This is all the code north of the content.
Also, all I did to copy and paste this was hit ctrl A and crtl C on the sidebar include page, and ctrl V on the file below.
<?php require_once('Includes/connection.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
?>
<?php require_once('Includes/mysql_prep.php'); ?>
<?php
$colname_DetailRS1 = "-1";
if (isset($_GET['listID'])) {
$colname_DetailRS1 = $_GET['listID'];
mysql_select_db($database_beer_diary, $beer_diary);
$query_list_beer = sprintf("SELECT * FROM beer ORDER BY date_tasted_01 DESC LIMIT 15", GetSQLValueString($colname_DetailRS1, "text"));
$list_beer = mysql_query($query_list_beer, $beer_diary) or die(mysql_error());
$row_list_beer = mysql_fetch_assoc($list_beer);
$total_rows = mysql_num_rows($list_beer);
?>
<html>
<head>
<title>Recent Additions</title>
<link href="stylesheets/style.css" rel="stylesheet" type="text/css" />
<link href="stylesheets/table_and_forms.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/beer.jpg">
</head>
<body>
<div id="container">
<div id="header">
<?php include('Includes/header.php');?>
</div>
<div id="sidebar">
<!----------------SPRY NAVIGATION MENU CODE FOR FORMS-------------------------------------------------------------->
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">
<ul id="Beer_Navi" class="MenuBarVertical">
<h1>The Beers</h1>
<li><a href="recent_list.php">Recent Additions</a></li>
<li><a href="recommend_list.php">Recommended</a></li>
<li><a class="MenuBarItemSubmenu" href="#">Beer by Country</a>
<ul>
<li><a href="country_list.php?listID=USA">America</a></li>
<li><a href="country_list.php?listID=BEL">Belgium</a></li>
<li><a href="country_list.php?listID=DEU">Germany</a></li>
<li><a href="country_list.php?listID=GBR">Great Britain</a></li>
<li><a href="country_list.php?listID=JPN">Japan</a></li>
<li><a href="oth_list">Other Countries</a></li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Lager</a>
<ul>
<li><a href="style_list.php?listID=01">01 Light Lager</a>
<ul>
<li><a href="substyle_list.php?listID=01a">01a Lite American Lager</a></li>
<li><a href="substyle_list.php?listID=01b">01b Standard American Lager</a></li>
<li><a href="substyle_list.php?listID=01c">01c Premium American Lager</a></li>
<li><a href="substyle_list.php?listID=01d">01d Munich Helles</a></li>
<li><a href="substyle_list.php?listID=01e">01e Dortmunder Export</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=02">02 Pilsner</a>
<ul>
<li><a href="substyle_list.php?listID=02a">02a German Pilsner (Pils)</a></li>
<li><a href="substyle_list.php?listID=02b">02b Bohemian Pilsner</a></li>
<li><a href="substyle_list.php?listID=02c">02c Classic American Pilsner</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=03">03 European Amber Larger</a>
<ul>
<li><a href="substyle_list.php?listID=03a">03a Vienna Lager</a></li>
<li><a href="substyle_list.php?listID=03b">03b Oktoberfest/Märzen</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=04">04 Dark Lager</a>
<ul>
<li><a href="substyle_list.php?listID=04a">04a Dark American Lager</a></li>
<li><a href="substyle_list.php?listID=04b">04b Munich Dunkel</a></li>
<li><a href="substyle_list.php?listID=04c">04c Schwarzbier</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=05">05 Bock</a>
<ul>
<li><a href="substyle_list.php?listID=05a">05a Maibock/Helles Bock</a></li>
<li><a href="substyle_list.php?listID=05b">05b Traditional Bock</a></li>
<li><a href="substyle_list.php?listID=05c">05c Doppelbock</a></li>
<li><a href="substyle_list.php?listID=05d">05d Eisbock</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Hybrid</a>
<ul>
<li><a href="style_list.php?listID=06">06 Light Hybrid</a>
<ul>
<li><a href="substyle_list.php?listID=06a">06a Cream Style</a></li>
<li><a href="substyle_list.php?listID=06b">06b Blonde Ale</a></li>
<li><a href="substyle_list.php?listID=06c">06c Kölsch</a></li>
<li><a href="substyle_list.php?listID=06d">06d American Wheat/Rye</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=07">07 Amber Hybrid</a>
<ul>
<li><a href="substyle_list.php?listID=07a">07a Northern German Altbier</a></li>
<li><a href="substyle_list.php?listID=07b">07b California Common</a></li>
<li><a href="substyle_list.php?listID=07c">07c Düsseldorf Altbier</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Ales</a>
<ul>
<li><a href="style_list.php?listID=08">08 English Pale Ale</a>
<ul>
<li><a href="substyle_list.php?listID=08a">08a Standard/Ordinary Bitter</a></li>
<li><a href="substyle_list.php?listID=08b">08b Special/Best/Premium</a></li>
<li><a href="substyle_list.php?listID=08c">08c Extra Special/Strong</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=09">09 Scottish & Irish Ale</a>
<ul>
<li><a href="substyle_list.php?listID=09a">09a Scottish Light 60/-</a></li>
<li><a href="substyle_list.php?listID=09b">09b Scottish Heavy 70/-</a></li>
<li><a href="substyle_list.php?listID=09c">09c Scottish Export 80/-</a></li>
<li><a href="substyle_list.php?listID=09d">09d Irish Red Ale</a></li>
<li><a href="substyle_list.php?listID=09e">09e Strong Scotch Ale</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=10">10 American Ale</a>
<ul>
<li><a href="substyle_list.php?listID=10a">10a American Pale Ale</a></li>
<li><a href="substyle_list.php?listID=10b">10b American Amber Ale</a></li>
<li><a href="substyle_list.php?listID=10c">10c American Brown Ale</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=11">11 English Brown Ale</a>
<ul>
<li><a href="substyle_list.php?listID=11a">11a Mild</a></li>
<li><a href="substyle_list.php?listID=11b">11b Southern English Brown</a></li>
<li><a href="substyle_list.php?listID=11c">11c Northern English Brown</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=12">12 Porter</a>
<ul>
<li><a href="substyle_list.php?listID=12a">12a Brown Porter</a></li>
<li><a href="substyle_list.php?listID=12b">12b Robust Porter</a></li>
<li><a href="substyle_list.php?listID=12c">12c Baltic Porter</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=13">13 Stout</a>
<ul>
<li><a href="substyle_list.php?listID=13a">13a Dry Stout</a></li>
<li><a href="substyle_list.php?listID=13b">13b Sweet Stout</a></li>
<li><a href="substyle_list.php?listID=13c">13c Oatmeal Stout</a></li>
<li><a href="substyle_list.php?listID=13d">13d Foreign Extra Stout</a></li>
<li><a href="substyle_list.php?listID=13e">13e American Stout</a></li>
<li><a href="substyle_list.php?listID=13f">13f Russian Imperial Stout</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=14">14 India Pale Ale</a>
<ul>
<li><a href="substyle_list.php?listID=14a">14a English IPA</a></li>
<li><a href="substyle_list.php?listID=14b">14b American IPA</a></li>
<li><a href="substyle_list.php?listID=14c">14c Imperial IPA</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=15">15 German Wheat & Rye</a>
<ul>
<li><a href="substyle_list.php?listID=15a">15a Weizen/Weissbiet</a></li>
<li><a href="substyle_list.php?listID=15b">15b Dunkelweizen</a></li>
<li><a href="substyle_list.php?listID=15c">15c Weizenbock</a></li>
<li><a href="substyle_list.php?listID=15d">15d Roggenbeir (Rye)</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=16">16 Belgian & French Ale</a>
<ul>
<li><a href="substyle_list.php?listID=16a">16a Witbier</a></li>
<li><a href="substyle_list.php?listID=16b">16b Belgian Pale Ale</a></li>
<li><a href="substyle_list.php?listID=16c">16c Saison</a></li>
<li><a href="substyle_list.php?listID=16d">16d Bière de Garde</a></li>
<li><a href="substyle_list.php?listID=16e">16e Belgian Specialty Ale</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=17">17 Sour Ale</a>
<ul>
<li><a href="substyle_list.php?listID=17a">17a Berliner Weisse</a></li>
<li><a href="substyle_list.php?listID=17b">17b Flanders Red Ale</a></li>
<li><a href="substyle_list.php?listID=17c">17c Flanders Brown Ale</a></li>
<li><a href="substyle_list.php?listID=17d">17d Straight Lambic</a></li>
<li><a href="substyle_list.php?listID=17e">17e Gueuze</a></li>
<li><a href="substyle_list.php?listID=17f">17f Fruit Lambic</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=18">18 Belgian Strong Ale</a>
<ul>
<li><a href="substyle_list.php?listID=18a">18a Belgian Blond Ale</a></li>
<li><a href="substyle_list.php?listID=18b">18b Belgian Dubbel</a></li>
<li><a href="substyle_list.php?listID=18c">18c Belgian Tripel</a></li>
<li><a href="substyle_list.php?listID=18d">18d Belgian Golden Strong Ale</a></li>
<li><a href="substyle_list.php?listID=18e">18e Belgian Dark Strong Ale</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=19">19 Strong Ale</a>
<ul>
<li><a href="substyle_list.php?listID=19a">19a Old Ale</a></li>
<li><a href="substyle_list.php?listID=19b">19b English Barleywine</a></li>
<li><a href="substyle_list.php?listID=19c">19c American Barleywine</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Specialty Beers</a>
<ul>
<li><a href="style_list.php?listID=20">20 Fruit Beer</a></li>
<li><a href="style_list.php?listID=21">21 Spice/Herb/Vegetable Beer</a>
<ul>
<li><a href="substyle_list.php?listID=21a">21a Spice, Herb, or Vegetable</a></li>
<li><a href="substyle_list.php?listID=21b">21b Christmas/Winter Specialty</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=22">22 Smoked/Wood-aged Beer</a>
<ul>
<li><a href="substyle_list.php?listID=22a">22a Classic Rauchbeir</a></li>
<li><a href="substyle_list.php?listID=22b">22b Other Smoked Beer</a></li>
<li><a href="substyle_list.php?listID=22c">22c Wood-Aged Beer</a></li>
</ul>
</li>
<li><a href="style_list.php?listID=23">23 Specialty Beer</a></li>
</ul>
</li>
</ul>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("Beer_Navi", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</div><!-- end #sidebar -->
<div id="content"> -
I am with error of special characters in the hour to matter given in BI 7
Good afternoon, I am with error of special characters in the hour to matter given in BI 7
<a href="http://img234.imageshack.us/my.php?image=erroau3.jpg" target="_blank"><img src="http://img234.imageshack.us/img234/4083/erroau3.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>OK....!!!!!
just download the Excel file (*.xls) and try open with Word-MS. In the document search by the string that you have mentioned in the question. (Use Ctrl +F).
If you see something like "ABC bla bla ba & instead of & , then you have to pass the data through the code I've mentioned.
You can get more details on encoding special characters UTF-8 in Google.com or Sun Websites etc.
You can also encode the & in hexadecimal format to get the desired output. -
Sapscript - error in special characters
I have a workflow task with the description which ends up getting sent out via email.
I am entering the following in the description line.
<a href=http://www.msn.com> MSN </a>
What is occurring in the output is that the < is being translated to <:
According to what I can find the < and the & are special characters. We are able to get around the & by doing the following <(>&<)>, but I cannot seem to figure out what the trick is for the <.Hi !
You could trie to mark this line as a "raw line" / marked as ( . Then SapScript does no formating in this line.
Here's some of the SAP-Help infomtation:
( Raw line
The subsequent editor line is not interpreted by the SAPscript
composer during output formatting. This means that character
formats, symbols, tab characters, masking characters, or
hypertext links which may be contained in this line are not
evaluated and are therefore passed unchanged to the output
device. The text contained in this line is also appended
directly to the character of the preceding text line which was
output last. If this is not required, there must be at least one
blank at the beginning of the extended line.
/( Like raw line
But the subsequent text is placed in a new line during output
formatting.
Regards
Rainer
Some points would be nice if that helped a bit. -
Special Characters not presenting properly
All of a sudden my (not so) Special Characters are not being rendered properly. Much of the website is in German, hence a lot of umlauts.
With yesterday's upload the umlauts now look like this:
Zurück, instead of Zurück,
für, instead of für,
Schömberg, instead of Schömberg, etc.
Ignore the Link highlighting.
Here is a Link to a sample:
http://www.schembs.com/TEST_jds_4.html
Thanks for your help.
jdsHave a look at the following
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="Microsoft FrontPage 4.0" />
<title>DIE HERRNSHEIMER #1 SCHEMBS</title>
</head>
<body link="blue" vlink="purple">
<div id="content-box-900px">
<div id="main_paragraph">
<dl>
<dt><a href="../und_1/2_3_j_heinrich.htm#Joh. Heinrich Schämbs (1675-1743)"> Zurück zu den Eltern von Joh. Heinrich Schämberg (*1713)</a></dt>
</dl>
<h1 align="center">Kapitel C</h1>
<h2 style='font-weight: bold' align="center">DIE HERRNSHEIMER SCHNEIDER</h2>
<dl>
<dt class="type_16">Vorbemerkung:<br /><br />
Heinrich Schämberg (*30.03.1729 Monzernheim, +11.07.1809 Brooklyn, NY<br />
<br />
Heinrich heiratete im 1774 in New York City Crescentia "Mary" Kämmerer (06.1829)<br />
<br /></dt>
</dt>
<dd style="font-weight: bold"><u>LINKS:</u></dd>
<dd class="col_0">Klick Hier für <a href="herrnsl_1b.htm">Die HERRNSHEIMER #1 SCHNEIDER - weiter</a><br /><br /></dd>
<dd class="col_0">Klick Hier für <a href="../einl/0_vorwort.htm">VORWORT und INHALTSVERZEICHNIS</a><br /><br /></dd>
<dd class="col_0">Klick Hier für <a href="../../index.htm">Zacharias Schämberg WELTSEITE</a><br /><br /></dd>
<dd class="col_0">Klick Hier für <a href="http://familytreemaker.genealogy.com/users/s/c/h/James-D/index.html"> Zacharias Schämberg STAMMBAUM</a><br />
<br /><br /><br /><br /><br /></dd>
<!-- THIS IS /dl TURNING OFF THE DEFINITION LISTS -->
</dl>
<!-- THIS IS /div TURNING OFF THE MAIN PARAGRAPH CALLOUT "main-paragraph" -->
</div>
<!-- THIS IS /div TURNING OFF THE MAIN CONTENT CONTAINER "content-box-900px" -->
</div>
</body>
</html>
We need to use escape characters for HTML to interpret special characters. These can be easily found in the insert bar under text as follows
Gramps -
hi friends......
I'm using following packages...........
When I store special characters....like < , > or &......DomHandle can not fetch the values from xml file......why so??? Anybody faced same problem??????
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
import javax.xml.parsers.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import org.w3c.dom.*;
import java.io.*;
import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;it actually converts < & > to < & > and so
on.......but still when it again tries to read
it....it fails & throws exceptionDepending on what is to be accomplished, I had an issue earlier today and this is how I solved it:
I needed to put a url with post data:
Something
Now to do this we can split this up in parts, tried writing out everything using CDATA and a few other things. But the Damn <'s and >'s would get converted into < and >
So I did this:
<a>
<xsl:attribute name="href">
<![CDATA[bob.jsp?something="]]><xsl:value-of select="@SomeAttrib"/><![CDATA["]]>
</xsl:attribute>
Something</a>
Hope this helps -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M -
How to print Special Characters in Sap-Scripts
How to print Special Characters in Sap-Scripts
Thanks,
RaviHi
if u want print special characters we can use hot codes i.e ' ' (single inverted commas). in between these hot codes insert u r special characters.
write ' !@#$%^&*( ) '.
for the above write statement output is
output is !@#$%^&*( ) -
Special characters into datagrid through the use of buttons
Hi!
I have a datagrid for word input, I'm trying to create a "special characters" panel, kind of like google's new "virtual keyboard" thing on google.com, so that the user can enter data into the datagrid cells using characters that aren't on their keyboards.
I manage to do this just fine, using the solution below. I know this is probably not the best/most effective way to do this, so any suggestions for making the code better will be appreciated. I only started using Flex a month ago.
grid.addEventListener(DataGridEvent.ITEM_EDIT_BEGIN, selectColumn)
function selectColumn(event:DataGridEvent):void
var selectedColumn:DataGridColumn = grid.columns[event.columnIndex];
selCol = selectedColumn.dataField;
//The function for adding a special character to the selected datagrid column by clicking a button:
//(inputWordArray is the dataprovider for the grid called "grid" )
protected function clickSomeButton(event:MouseEvent):void
var colIndex:int = new int;
if (selCol == "from"){
inputWordArray[grid.selectedIndex].from = inputWordArray[grid.selectedIndex].from + "æ";
colIndex = 0;
else if (selCol == "to"){
colIndex = 1;
inputWordArray[grid.selectedIndex].to = inputWordArray[grid.selectedIndex].to + "æ";
inputWordArray.refresh();
grid.dispatchEvent(new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, false, false, colIndex, null, grid.selectedIndex));
The problem is that this only adds a letter at the end of the selected item's value, not at a specific position within the word specified by the position of the cursor. This is what I need to achieve. I have no idea even what to search for, if anyone could please give me a hint that'd be great.You will probably need to capture the editor's selectionBeginIndex and
selectionEndIndex -
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>
TIAFirst 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. -
How do I use a font variation in a pages document? or other app for that matter? I no longer have the "viewer" - glyph option in the special characters pane (under edit in toolbar). I know the varaition ia available because I can see it in my font book. I depended on that alot so I need to find a way to still use character and embellishments. I don't want to have to go back to my od computer (from2007) Please Help!
I really don't understand.
The menu item is available :
Maybe, you didn't activate the tool :
Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 23:10:17
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
Fields in Flat File are separated by special characters
hello every one,
fIf fields in Flat File are separated by special characters
and If Flat File is given in Excel sheet , how to handle this kind of issues.
to Upload data into R/3 system, in BDC.
If u have sample program ,please send it ot me and explain ?
others give me hints...Hi,
you can use the function module ALSM_EXCEL_TO_INTERNAL_TABLE .
Check this sample code.
hi,
use the FM ALSM_EXCEL_TO_INTERNAL_TABLE.
PARAMETERS:
P_INFL like RLGRAP-FILENAME.
DATA:
BEGIN OF T_DATA1 OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION TYPE P DECIMALS 2,
ACTIVITY(25) TYPE C,
B_NBILL(1) TYPE C,
END OF T_DATA1,
T_DATA TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE,
BEGIN OF T_FINAL OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION(15) TYPE C,
ACTIVITY(25) TYPE C,
B_NBILL(10) TYPE C,
END OF T_FINAL.
DATA : HEADER TYPE XSTRING.
Work Variables Declaration.
CONSTANTS:
W_Y TYPE C VALUE 'Y',
W_N TYPE C VALUE 'N'.
Work area.
DATA:
WA_DATA LIKE T_FINAL.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_INFL.
PERFORM GET_FILENAME CHANGING P_INFL.
START-OF-SELECTION.
PERFORM UPLOAD_DATA_FROMEXCEL.
FORM UPLOAD_DATA_FROMEXCEL.
Downloading the data from presentation server
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_infl
I_BEGIN_COL = 1
I_BEGIN_ROW = 2
I_END_COL = 8
I_END_ROW = 1000
TABLES
INTERN = T_DATA
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " upload_data_fromexcel
*& Form process_data
text
FORM PROCESS_DATA .
T_FINAL-RESOURCE = 'Resource'.
T_FINAL-DATE = 'Date'.
T_FINAL-DURATION = 'Duration'.
T_FINAL-ACTIVITY = 'Activity'.
T_FINAL-B_NBILL = 'Billable'.
APPEND T_FINAL.
SORT T_DATA BY ROW COL.
LOOP AT T_DATA.
CASE T_DATA-COL.
WHEN 3.
T_DATA1-RESOURCE = T_DATA-VALUE.
WHEN 4.
T_DATA1-DATE = T_DATA-VALUE.
WHEN 5.
T_DATA1-DURATION = T_DATA-VALUE.
WHEN 6.
t_data1-activity = t_data-value.
WHEN 7.
T_DATA1-B_NBILL = T_DATA-VALUE.
ENDCASE.
AT END OF ROW.
COLLECT T_DATA1.
ENDAT.
ENDLOOP.
LOOP AT T_DATA1.
T_FINAL-RESOURCE = T_DATA1-RESOURCE.
T_FINAL-DATE = T_DATA1-DATE.
T_FINAL-DURATION = T_DATA1-DURATION.
T_FINAL-ACTIVITY = T_DATA1-ACTIVITY.
T_FINAL-B_NBILL = T_DATA1-B_NBILL.
APPEND T_FINAL.
ENDLOOP.
ENDFORM. " process_data
*& Form get_filename
FORM GET_FILENAME CHANGING P_FILENAME.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = SPACE
DEF_PATH = P_FILENAME
MASK = ',. ,..'
MODE = 'O' " O = Open, S = Save
TITLE = BOX_TITLE
IMPORTING
FILENAME = P_FILENAME
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
CASE SY-SUBRC.
WHEN 1.
MESSAGE I999 WITH
'File selector not available on this windows system'(046).
WHEN 2.
MESSAGE E999 WITH
'Frontend function cannot be executed in background'(047).
WHEN 3.
MESSAGE I999 WITH 'Selection was cancelled'(048).
WHEN 4.
MESSAGE E999 WITH 'Communication error'(049).
WHEN 5.
MESSAGE E999 WITH 'Other error'(050).
ENDCASE.
ENDFORM. " get_filename
<b>Kindly Reward points if you found the reply helpful.</b>
Cheers,
CHAITANYA. -
Need help in using replace function with special characters
I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
The data looks like this:
CREEK'S LANE
ie for a street named CREEK'S LANE.
I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
When I try the query below I get prompted for substitution variable value.
I don't seem to be able to find the right syntax to make this query work.
SELECT REPLACE (street_name, ''', '''')
FROM
streets WHERE street_id = 1
Does anybody know how to do this?
Any help would be much appreciated.
Thanks.
Georgegeorge91 wrote:
I have a column in a table where the data can contain ascii code for special characters such as an apostrophe.
The data looks like this:
CREEK'S LANE
ie for a street named CREEK'S LANE.
I want to replace the ascii representation with the apostrophe and have the returned data show up as: CREEK's LANE
When I try the query below I get prompted for substitution variable value.
I don't seem to be able to find the right syntax to make this query work.
SELECT REPLACE (street_name, ''', '''')
FROM
streets WHERE street_id = 1
Does anybody know how to do this?
Any help would be much appreciated.
Thanks.
GeorgeHa! The codes you specified rendered in the HTML, but showed properly when I listed your original posting above. I didn't understand what you meant initially because the 5-character string represenation got rendered as the quote that you said you weren't able to get - a display problem.
You're getting prompted for the substituon variable because of the ampersand; you appear to be doing this in SQL*PLUS. The first thing I would try is to SET DEFINE OFF when using the ampersands to see if that works. If That doesn't work check the docs to delmit the ampersand (I think its a backslash before it but can't remember offhand). Another, harder option might be to use the TRANSLATE function replacing the literal character instead of using REPLACE (though replacing a quote will be a little tricky). If you're on 10g also consider using the advanced quoting
Good luck!
Edited by: riedelme on May 22, 2009 12:45 PM -
Displaying special characters in ALV report.
Hi Experts,
Can we display special characters in ALV reports? Special characters such as tick mark.(Like in character map(Font Bookshelf Symbol 7) of windows ).
I tried with icons in ALV report, I was able to display tick icon in the ALV report, but when we export the report in to a excel, the icons comes in as Hexadecimal code.
Can any we display special characters like tick in ALV report or display the icons in excel aswell?
I will be gratefull for the <urgency reduced by moderator> response.
Regards,
Sharath.
Edited by: Thomas Zloch on May 10, 2011 10:26 AMSharath,
I think it is possible to do so.
Please check this link.
http://www.sapfans.com/forums/viewtopic.php?f=13&t=322569
Thanks,
Guru. -
Time-dependent Vendor Master & Handling Special Characters
Hi,
I need to extract time-dependent Vendor Master.
1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
2. Does the Master data in R/3 for Vendors will hold the valid date range?
3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
Handling Special Characters:
We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
Please help me getting the 2 issues resolved.
Thanks in advance.
Regards,
Sudhakar.Hi Everyone,
Thanks for inputs on Special characters issue...
Finally resolved with below piece of code in the start routine:
DATA: FLAG,
OFF TYPE I,
LEN TYPE I VALUE 1,
ALLOWED_CHAR(95) VALUE
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
CONSTANTS: C_CHAR VALUE '-'.
LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
DO.
IF DATA_PACKAGE-/BIC/ZI_DESC CN ALLOWED_CHAR.
REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
FLAG = SPACE.
ELSE.
FLAG = 'X'.
ENDIF.
IF FLAG = 'X'.
EXIT.
ENDIF.
ENDDO.
MODIFY DATA_PACKAGE.
ENDLOOP.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
Regards,
Sudhakar.
Maybe you are looking for
-
Master data is not getting enabled in the InfoSet.
Hi Experts, I have 3 DSOs in an InfoSet and I have also brought 2 Master data infoobjects in this infoset. The master data check box in the infoset is not enabled and also not getting displayed in the Query Designer. Can anyone please let me know how
-
Itunes won't start up, missing folder.
The folder "iTunes" cannot be found or created, and is required. The default location for this folder is inside the "My Music" folder. Above is the error message I get whenever I try to open iTunes. I've tried re-installing, I've tried manually creat
-
How can i get audiobooks in french from a US account?
I speak both French and English and would really like to be able to access the French versions of iTunes to discover music, podcasts and audiobooks. How can I do this? Thanks!
-
Wife Getting Iphone, how should I set it up?
I currently have an Iphone, Ipad, Ipod touch, Apple TV, and MBP. all of these are utilizing the same apple ID for itunes, homesharing, etc... My wife is now getting an iphone and i need to know how i should set that up. She does not have an apple I
-
Hi all! Has anyone tried packaging a vb application (using the Packaging and Deployment Wizard) with an activex control derived from a java bean using the bridge? What are the files that need to be included along with the ones packed by default by th