Getting question marks in html output when xml file has an mdash or rsquo
I have a java servlet that gets an xml file out of ifs, applies
a style sheet to it, and sends it to the browser as html.
I have:
DOMparser parser = new DOMParser();
parser.parse(XmlUrl);
The characters ampersand, greater than, less than, and
apostrophe work fine.
HOWEVER, When the xml file has an mdash(—) or a rsquo
(’) in it, my html output in IE shows up with question
marks where these characters are supposed to be.
Does anyone know what I can do to fix this? I don't understand
why it would work with some special characters and not others?
UPDATE
Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
Thanks.
Fede.
Similar Messages
-
Getting question marks in html output when XML sourced from a CLOB...
I have noticed a number of other unanswered questions on the
same subject in this forum. Can someone at Oracle shed some
light on this problem?...
I store XML in CLOBS which contain a lot of é ö
characters. When using XSQL to select the XML from the CLOB I
have to apply a stylesheet to the XSQL (myFile.xsql) with
disable-output-escaping ="yes" in order to output well formed
XML.
I then call the XSQL file from inside another stylesheet i.e.
<xsl:variable name="sample" select="document(myFile.xsql)"/>
<xsl:template match="/">
<xsl:for-each select="$sample">
<html>
<body>
<title>
<xsl:value-of select="/page/title"/>
</title>
</body>
</html>
etc...
I use <xsl:for-each select="$sample"> to output the XML I need,
within the HTML. The problem is though if "é" appears in
the /page/title node the output in HTML appears as a question
mark.
Its important to note as well that the stylesheet I apply to
myFile.xsql starts with:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output doctype-system="/myFile.dtd" indent="yes"/>
etc..
and myFile.dtd has <!ENTITY eacute "é"> in order to
validate é in the CLOB.
I don't have this problem when the é character is stored
in a VARCHAR2 column and the VARCHAR2 column is in the same
select statement as the CLOB in the XSQL file. This outputs in
my HTML just fine. What am I missing here?
ShaunI parse the XML doc into a domdocument and then loop through using xpath.valueof to pull the individual values from the nodes and then build a generic insert. It works quite well with a small number of columns. I'm not sure how it would work with a lot of columns. You can get code examples from Steve Muench's book "Developing Oracle XML Applications".
-
Repeatedly getting question marks on my dock apps...
I'm not moving or deleting anything, but a bunch of my dock's apps keep getting question marks on 'em and I have to go find the app and make a new shortcut. This happens on both our MacBook (OS 10.5.6) and our old G4 running OS 10.4.11. Each computer just has one user account set up.
This is slowly driving us crazy. Help!!?? I've searched and search on the support pages and can't find anything on this except stuff that says I must have deleted the apps, etc.
Thanks in advance for any ideas.Howdy Ferd II,
Nope, not using anything to modify dock...and not using any non-apple maintenance or utilities. Not aware of any cache cleaning utilities either. I'm not savvy enough to have set up any of that.
The apps are usually MS Office apps and Adobe apps (InDesign, Illustrator, Photoshop, Acrobat). My Quicken app has done it too. Oh, and my Canon ImageBrowser. Those are all the apps I use the most, so pretty much everything.
Except, iTunes has never done it...I use that a lot. And Safari....Can't remember if Safari has ever done it.
All of the above is referring to the laptop, but the desktop computer is pretty bare bones, too. No mods other than basic system with a few apps installed. We mostly use Safari, an older Photoshop, and MS office on it. Same kind of behavior. Never with iTunes, though!
When I got the laptop a year ago, I thought I'd not have this issue that I'd been dealing with on the desktop machine. Then when it started happening on the laptop, I figured there'd be other people chiming in that this happens to THEM too, but so far none of that......! So it is a puzzlement.
E. -
What does a file folder with a question mark in it mean when the computer won't start?
What does a file folder with a question mark in it mean when the computer won't start?
There are four general causes of this issue:
1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from the hard drive's location.
(68976) -
Why do I get question marks on iphoto instead of the photos?
Why do I get question marks on iphoto instead of the photos?
Possibly because you have set iPhoto to refer to photos stored elsewhere rather than copying them into its own library; and you've moved the photos.
If you have it set this way, Preferences>Advanced - 'Copy items to the iPhoto Library' will be unchecked. -
Mac Mini Late 2013 .
2.6GHz ,Quad core I7.
1TB (5400-rpm) hard drive.
OSX Yosemite upgrade .
Now It's won't start .The screen shows " ? " ( Question Mark ).
I ran Hardware test :No trouble found .
Memory test : No trouble found .
Please Help !A flashing question mark or globe appears when you start your Mac - Apple Support
-
Regarding Excel output of XML file
When i am trying to open the output of XML file. I am getting the below dialogue boxes before report getting openend. Can any one help to resolve this issue.
Dailogue box 1
Open XML
Please select how you would like to open this file:
As a XML table
As a read-onlyworkbook
Use the XML Source task pane
Dialogue box 2
Microsoft office excel
The Specified XML Source does not refer to a schema. Excel will create a schemabased on the XML source data.plz see
How To View / Open Concurrent Requests With The Excel Application [ID 377424.1]
How to Control the Name and the Application that Opens the Concurrent Request Output File on the Client? [ID 316752.1]
How to Setup The Report Output to Different Viewer Types in Oracle Applications [ID 184375.1]
http://sairamgoudmalla.blogspot.com/2009/04/concurrent-program-output-in-ms-excel.html -
Hi ,
We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
Thanks
DevHi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
In my opinion the better way is the following:
starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
After that:
Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
Execute baseline index for both IOC (one by one)
Execute baseline for IOC 1
Execute baseline for IOC 2.
Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
Regards -
Anyone know how to output an XML file from ABAP to a non sapgui location?
I have a program that creates XML and then outputs a file via CALL METHOD cl_gui_frontend_services=>gui_download. But now I want to execute the program in background mode and therefore I need to be able to output that XML to a NON sapgui file location. Current code creates the XML to an internal table which is binary then the gui_download method converts that to output XML. . Does anyone know how I can change the code to either a) output the XML to an internal table which can be output via, say, a TRANSFER command..or, b) output the created binary table of XML to a NON sapgui file location?
Excerpts from current code are as follows:
first the XML is created (to the binary file)
Creating a ixml factory
l_ixml = cl_ixml=>create( ).
Creating the dom object model
l_document = l_ixml->create_document( ).
Fill root node with value XML
l_element_xml = l_document->create_simple_element(
name = 'XML'
parent = l_document ).
Create tag 'HEADER' as child of 'XML'
l_element_header = l_document->create_simple_element(
name = 'HEADER'
parent = l_element_xml ).
header information about the file and general data about the fleet follows
l_value = c_fleet_import.
l_element_dummy = l_document->create_simple_element(
name = 'TYPE'
value = l_value
parent = l_element_header ).
etc.......
then the xml is connected to the stream factory and rendered
Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
Connect internal XML table to stream factory
l_ostream = l_streamfactory->create_ostream_itable( table = l_xml_table ).
Rendering the document
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
Saving the XML document
l_xml_size = l_ostream->get_num_written_raw( ).
and then output to the file
IF sy-subrc = 0.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = l_xml_size
filename = 'g:\sapdms\BSCC-DEV\EFPAC XML Files\ALL.xml'
filename = '/TRICK/727/OUT/ZEFP/EFPAC.XML' "doesnt work with sap gui
filetype = 'BIN'
CHANGING
data_tab = l_xml_table
EXCEPTIONS
OTHERS = 24.
as implied by the comments the method above will successfully output the XML file to the g:drive but will not output to /TRICK/ location, which is where I need it to go in a background mode run.
This is a problem which has defeated all our local expertise and I would appreciate any help given... Barry JonesTry this code below:
data l_xml_table2 type table of xml_line with header line.
W_filename - This is a Path.
if w_filename(02) = '
open dataset w_filename for output in binary mode.
if sy-subrc = 0.
l_xml_table2[] = l_xml_table[].
loop at l_xml_table2.
transfer l_xml_table2 to w_filename.
endloop.
endif.
close dataset w_filename.
else.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = l_xml_size
filename = w_filename
filetype = 'BIN'
changing
data_tab = l_xml_table
exceptions
others = 24.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. -
How can I get the context-parm from a web.xml file using struts?
Hello:
I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
<context-param>
<param-name>datasource</param-name>
<param-value>jdbc/formacion</param-value>
<description>Jdbc datasource</description>
</context-param>
and then from any Action class get this parameter.
Similar using a simple server can be:
/** Initiates new XServlet */
public void init(ServletConfig config) throws ServletException {
for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
System.out.println(e.nextElement());
super.init(config);
String str = config.getInitParameter("datasource");
System.out.println(str);
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
// res.setContentType( );
System.out.println("Got post request in XServlet");
PrintWriter out = res.getWriter();
out.println("nada");
out.flush();
out.close();
but only this works for init-params, if I use
<servlet>
<servlet-name>MyServlet</servlet-name>
<display-name>MyServlet</display-name>
<servlet-class>myExamples.servlet.MyServlet</servlet-class>
<init-param>
<param-name>datasource</param-name>
<param-value>jdbc/formacion</param-value>
</init-param>
</servlet>
inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
Thank youTo get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
ServletContext context = getServlet().getServletContext();
String tempContextVar =
context.getInitParameter("<your context param >"); -
How to get nodes and its attributes of an XML file usiong DOM parsing?
how to get nodes and its attributes of an XML file usiong DOM parsing?
i am new to XML parsing.......
Thanking you........import org.w3c.dom.Document;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException; ...
//Setup the document
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
//get elemets by name
String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
//This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data. -
MasterThemeSchema.xml file has invalid data error when customizing layout
Whenever I try to customize my layout for Responsive HTML5 I get an error "MasterThemeSchema.xml file has invalid data". I've tried creating new layouts and editing existing layouts. The first time I click Customize Selected Layout it works. But any attempt after that produces the error. Anyone know what's going on? Thanks.
Has not working over the network fixed the problem? If it has, check both ways again to establish beyond doubt that it is a problem with working on the network. If it does prove to be that, please file a bug but also post back here.
Please follow this link to report a bug.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
I'm trying to download Premier pro and I'm getting an error message saying "Error when extracting files". I use a PC and have made the purchase of that service. What's the problem?
Hi ampsanru,
We would need some information regarding the error, could you please post a screenshot moreover your system information i.e. OS, RAM & Graphics card.
-Ankit -
Velocity Templates - output an XML File
Greetings,
I'm a bit stuck on finding a way to have a Servlet using Velocity Templates, output an XML file. I know how to set the mime type and all that jazz in the Velocity Template. My problem is that all templates seem to be wrapped with the .htm extension.
Program flow is basically calling the template from a servlet and displaying the XML in the template.
So, using Velocity templates is their a way to:
a. change the file extension that is served
b. any other way to accomplish having an XML file served from a template
Thank you in advance!
-peterTry this code below:
data l_xml_table2 type table of xml_line with header line.
W_filename - This is a Path.
if w_filename(02) = '
open dataset w_filename for output in binary mode.
if sy-subrc = 0.
l_xml_table2[] = l_xml_table[].
loop at l_xml_table2.
transfer l_xml_table2 to w_filename.
endloop.
endif.
close dataset w_filename.
else.
call method cl_gui_frontend_services=>gui_download
exporting
bin_filesize = l_xml_size
filename = w_filename
filetype = 'BIN'
changing
data_tab = l_xml_table
exceptions
others = 24.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. -
Hey, My mac book is giving me a flashing question mark on start up. When I hold down the command key to get to system preferences in order to help it find the system software it asks me for a firmware password, that I did not set! I also do not have the start up DVD/disk anymore. Any ideas on how to bypass this?
Contact Apple or an authorized Apple service provider.
(116347)
Maybe you are looking for
-
Sony Ericsson w300i and iSync 2.2
I am the owner or a brand new Sony Ericsson w300i. This is a clamshell model of the popular 'walkman' brand cell phones. Unfortunately, iSync does not recognize this phone. Does anyone have information on how to add support for this phone, or when an
-
Accessing Business Intelligence via Browser?
Hi all, we have a CA Clarity system which we will be using Business Objects with, rather than Actuate. Our Internal Systems team have installed the Business Objects server for use with publishing reports etc. They say that it is Business Intelligence
-
How can i firm the End User License Agreement
ich habe ein mac und kann seit neuestem PDF Dokumente auf von mir erlaubten Website nicht mehr lesen
-
Saving a Contact Sheet...
In iView I can make a contact sheet that I can save as a jpg. How can I do this in LR? Jeff
-
How to view Output Messages in the LabWindows UI?
In my LabWindows/CVI I would like to view the output messages that are sent from sequences: "RunState.Engine.NewOutputMessage(Parameters.Message).Post()" I thought there might be a TS UI Control like the one in the sequence editor called Output - bu