Avoid escaping & with & a m p; in xml assignments
Hi all,
we have a request to send german umlaut from MII to a production system. After some testing we found that using UTF8 entities like this are working:
ä for ä
The message is build as an XML string, and whenever the xml is changed in a BLT, MII replaces the "&" with "& a m p ;". Is there a possibility to avoid the automatic escaping?
A workaround would be to use stringreplace on the string representation of the XML, but maybe there is a chance to use another way.
Michael
Hi ,
i had the same problem. I just replaced all occurrences of '& amp;' " with '&'.
regards
Rajab
Edited by: Rajabali Keasalar on Nov 23, 2009 6:08 PM
Edited by: Rajabali Keasalar on Nov 23, 2009 6:10 PM
Similar Messages
-
Revision: 12883
Revision: 12883
Author: [email protected]
Date: 2009-12-12 15:53:50 -0800 (Sat, 12 Dec 2009)
Log Message:
Remove the skin classes from the halo theme project to avoid redundancy with the airframework/framework swcs.
QE notes: No
Doc notes: No
Bugs: SDK-24293
Reviewer: Glenn
Tests run: Checkintests, smattering of Halo and AIR mustella tests
Is noteworthy for integration: Yes
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24293
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
flex/sdk/trunk/frameworks/projects/halo/build.xml
Added Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/skins/halo/WindowBackground.as
Removed Paths:
flex/sdk/trunk/frameworks/projects/halo/assets/
flex/sdk/trunk/frameworks/projects/halo/src/HaloClasses.as
flex/sdk/trunk/frameworks/projects/halo/src/mx/skins/ -
How to create Matrix with Group report layout in xml
Hi,
i would be glad if anyone could tell me How to create Matrix with Group report layout in xml?
Here i am attaching the required design doc
below is the code
select COST_CMPNTCLS_CODE,
-- crd.RESOURCES,
NOMINAL_COST,
cmm.COST_MTHD_CODE,
-- crd.COST_TYPE_ID,
gps.period_code
-- ORGANIZATION_ID
from CM_RSRC_DTL crd,
gmf_period_statuses gps,
CM_MTHD_MST cmm,
CR_RSRC_MST crm,
CM_CMPT_MST ccm
where gps.period_id = crd.PERIOD_ID
and crd.cost_type_id = cmm.cost_type_id
and crd.RESOURCES = crm.RESOURCES
and crm.COST_CMPNTCLS_ID = ccm.COST_CMPNTCLS_ID
and gps.period_code in (:p_period1, :p_period2, :p_period3)
group by COST_CMPNTCLS_CODE, cmm.COST_MTHD_CODE, gps.period_code,NOMINAL_COST
order by 1,2,3,4.
The o/p of the report shoud be as given below
Period-1 Period-2 Period-3 Period-4
COMPONENT
LABOUR - DIRECT
Actual 1 2 3 4
Actual Rate 10 10 10 10
Standard Rate
Var%
DEPRICIATION-DIRECT
Actual
Actual Rate
Standard Rate
Var%
OVERHEAD - DIRECT
Actual
Actual Rate
Standard Rate
Var%
LABOUR - IN DIRECT
Actual
Actual Rate
Standard Rate
Var%
Thanks in advanceYour friend is obviously not a reliable source of HTML
information.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Mr.Ghost" <[email protected]> wrote in
message
news:f060vi$npp$[email protected]..
> One of my friends advised me to develop my whole site on
the layout mode
> as its
> better than the standard as he says
> but I couldnot make an ordinary table with rows and
columns in th layout
> mode
> is there any one who can tell me how to?
> thanx alot
> -
Issue with Date format - ABAP to XML
Dear Users,
We are currently facing an issue with the date formats in XML.
We have a system (.Net), which has a webservice that we are calling for information from SAP. We created a Proxy class in SAP from the WSDL file and have attempted to use the method that gets us required information based on the Timestamp passed from SAP. However, the timestamp that the INPUT structure uses has a data element XSDDATETIME_Z.
All we can send from SAP is a simple TIMESTAMP, but the .Net system doesn't accept it since it wants the timestamp in XML format i.e. <dd-mm-yyyy>T<hh:mm:ss>Z. SAP documentation says that the field should automatically do conversion from ABAP to XML format, but that doesn't happen. We don't want to build a string from Timestamp in the XML format and send it out since we might surely miss out on the different cases involved.
Can anyone please suggest a way for us to send the date out in the required XML format?
Many thanks!Hi Vijay,
Look at the below sample code and it works fine, i guess there is something wrong in your code or conversion, post the actual code if you are still not able figure it out with the below example.
DATA: l_xml_string TYPE string,
l_dat_time TYPE xsddatetime_z.
CALL FUNCTION 'CACS_DATE_GET_TIMESTAMP'
EXPORTING
I_DATE = sy-datum
I_TIME = sy-uzeit
IMPORTING
E_TIMESTAMP = l_dat_time
EXCEPTIONS
DATE_NOT_FILLED_BUT_TIME = 1
DATE_HAS_NO_VALID_FORMAT = 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.
CALL TRANSFORMATION id
SOURCE root = l_dat_time
RESULT XML l_xml_string.
IF sy-subrc EQ 0.
write: l_xml_string.
ENDIF.
Regards,
Chen -
Change a attribute value with XSLT before importing an XML
I need change the attribute value with XSLT before importing an XML
<table class="x" style="width="50pt">...
I have to divide by 200 the value of "width", and the result multiplied by 100:
(50/200) * 100
It's possible with a XLST?Hi,
Yes you can do this via XSLT.
You can try similar to the one below:
<table>
<xsl:attribute name="width">
<xsl:value-of select="((./width) div 200)*(100)" />
</xsl:attribute>
</table>
I have not tested yet... Try it....
Green4ever
(I am back after long time).... -
Problems with error-page in web.xml and page caching
Having a few problems with error pages and web.xml with browsers caching the error pages and strange errors coming out of weblogic.servlet.intenal.WebAppServletContext
I'm trying to set a web app up so that all http errors and all exceptions are routed thruogh predefined resources. For now, I'm simply send 400 errors to 400.html and the ServletException, IOException and RuntimeException to respective html pages.
What I'm finding is that the error codes work fine but the exceptions are only be routed to the correct error page for the first call to the servlet after server restart.
So for example, I have my servlet throwing a ServletException as a test case. The weblogic server log shows that ServletException is thrown, and the correct error page for ServletExceptions is shown.
If I change the Servlet code to throw IOException in place of SevletException, the weblogic.log shows that IOExceptyion is being thrown (so the servlet has deployed successfully), however the Servletxception error page is shown on the browser.
I'm using IE6 and I've changed the setting such that a new page is requested every time using the tools-internet options-temp internet files-settings option to "check for new versions of stored pages: Every visit to the page".
Despite this, the servlet exception error page still appears.
If you clear the cache from the temp intenet files->delete files IE option, the correct errror page will be shown so it appears that the browser cache is being used after all.
everytime I delete the temp intenet files I get the correct error page on the first request after but then not after that.
I have implemented the service method for this test to throw the exceptions - does this make a differecne?
As a test, I have moved the imlpementation to the doGet method instead bu I now get a strange eror from weblogic comlpaining about an arrayOutOfBoundsException because eror codes in the web.xml are not supported! - see error above.
Any help is appreciatedAfter further investigation: -
There are no problems with error pages based on error codes, only error exceptions.
As a test case, I have a service method in a servlet throwing either one of the three exception types that servlets can throw (Runtime, Servlet & IO) the following rules apply. The exception to be thrown is hardcoded and is changed and the web app rebuilt each time. The correct web.xml has been deployed to the app server (checked through console). the webapp is being redeployed correctly - this can be seen in the weblogic log, where the correct exception is reported.
I am using WLS 8.1, Servlet 2.3, JDK 1.4.1_02
In all cases, the weblogic log reports that the servlet is throwing the exception as expected.
Despite having set error-page for exception javax.servlet.ServletException, the exceptions are diverted to the error page that has been set up for http error code 500
The error page for ServletException is therefore never reached.
I have the browser set to request pages every time it is asked.
Once the servlet has thrown an IOException, the only way to get the browser to report an IO or Runtime exception error-page is to clear the browser cache. Restarting the server has no effect.
Once the servlet has responded with ANY exception, it is not possible to get it to report a ServletException (which is incorrectly reported as a 500 anyway) unless the cache is cleared. Restarting the server has no effect.
In the case where the servlet throws ServletException, it has no root exception. The servlet 2.3 spec states that if ServletException is thrown but cannot be found in the error pages, the root excpetion will be extracted and the error page list traversed again. Knowing that the RuntimeException error page is correct shown when RuntimeException is throwm, I have nested this inside the ServletException, however error page for http error 500 is still shown.
I don't believe this is a WLS 8.1 problem, as the console shows that the correct exception is thrown each time. this is backed up by the fact that the correct exception page is thrown when the cache is cleared regardless of what exception was previousdly thrown by the servlet. This excludes ServletException which is always incorrectly thrown as a 500. -
I want to upgrade from Tiger to Snow Leopard on my 2008 MacPro. How do I avoid problems with the upgrade process?
#1 Do a complete bootable backup of your drive before upgrading. That way should anything happen you can revert back to the start and try again.
Make sure you meet Snow Leopard 10.6 Technical Requirements - http://support.apple.com/kb/SP575
You might also want to make sure you don't have software issues with SL:
A Mac OS X 10.6 Snow Leopard Application Compatibility List - http://snowleopard.wikidot.com/ -
Avoid cubes with single dimension
When designing SSAS CUBE in SQL SERVER BIDS 2008R2 we get a message on the cube object stating "Avoid cubes with single dimension".
We are using just 1 dimension and 1 fact table .
Is there any specific reason for this issue ?
MudassarHi Mudassar,
This rule analyzes cube dimensions to determine whether a cube contains only one cube dimension. Generally, a cube that contains only one cube dimension should have that dimension split into multiple cube dimensions based on logical business entities. Splitting
a single cube dimension into multiple cube dimension will also improve usability in most user scenarios. This is the best practices recommendation from Microsoft when designing dimension. Because under most circumstances, if the cube only contains one dimension,
it means that all the attributes were put into this dimension.
In your scenario, you just use one dimension and one fact table. So you get this warning. And you needn't split the dimension into multiple dimension since there is only one dimension used in your cube.
For more information about how to define dimensions, see
Designing Dimensions in SQL Server Books Online.
Regards,
Charlie Liao
TechNet Community Support -
Microsoft !!! please remove stuff which your top specialists are incapable of deploying them so they avoid dealing with them !!!
have someone deploy SSTP VPN scenario completely ? have you encountered "revocation server offline" annoying error?
have you read microsoft defective chapters which are about PKI & ADCS in MCITP & MCSE books ?
have you read Brian comar books ? have you seen deficiencies in his book ?
we are network trainers. in all killing problem we encounter in PKI scenarios, you don't find any useful thing in MS books. seems they themselves avoid dealing with them because maybe they themselves know thay themselves are unable to deploy what themselves
have been created & delivered.
if you don't believe, begin to deploy the following simple scenario & lok how you will end in the damn error " revocation server offline...."
i have been working on this problem for months but still no result. start deploy it yourself to find what i say.
i have done any suggestion & workaround you may think, so please first deploy it yourself & then if you get result & deployed all steps & it worked, tell me.
before starting any task, first read my previous threat to find out more:
revocation server offlineThe way how you ask questions here, how do you expect to get any help here?
Vadims Podāns, aka PowerShell CryptoGuy
My weblog: en-us.sysadmins.lv
PowerShell PKI Module: pspki.codeplex.com
PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
Check out new: SSL Certificate Verifier
Check out new:
PowerShell File Checksum Integrity Verifier tool.
do you have dare to test it ? do you have dare to deploy such simple scenario & you will end up in damn " revocation function offline " message.
don't forget that i need to deploy that without deploying OCSP. i want to deploy that by configuring CDP extension of issued certificates.
i have tested any suggestion you may give me. i have spend months on this. damn with windows operation system , such a pure code ! -
Revision: 13383
Revision: 13383
Author: [email protected]
Date: 2010-01-08 12:04:00 -0800 (Fri, 08 Jan 2010)
Log Message:
Modify to include the xml header (with encoding) in the DITA xml files.
QE notes: None.
Doc notes: None
Reviewed By: Pete
Tests run: checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja vaThats good news.
-
I just updated my Firefox browser to Firefox 8. I am a college student and practice with HTML and CSS for class assignments. The fonts in all my html documents are being overwritten online by your script typeface. I did not have this issue in the older version. I use an iMAC running OS10.6.8. How do I resolve this issue?
Starting with this, you have errors in your CSS code.
body {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
color: 151515;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
background-color: EFF5F8;
body {
margin:0;
color: #151515;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
background-color: #EFF5F8;
font-size: 100%;
Related links:
Windows Chrome, why do my fonts look so bad? - Lee Green
css3 - Bad font rendering Chrome - Stack Overflow
Nancy O. -
How to avoid escaped XML in "Set Workflow Variable" | "By Composing"
Hi, I have a proplem building an XML document using the action : "Set
Workflow Variable" | "By Composing" dialog.
The value of an element on the left pane is a variable in the right pane.
This variable contains a snippet of XML.
The problem is that when I print out the newly created document the XML I
added to it from the variable has been escaped :
In the example below I created a new xml document called new XML in its
child_2 element I set its value to the XML String "xml".
As you can see, the value of child 2 has been escaped. Is there a way to
turn this feature off ??
<Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
<started>2002-01-30 10:02:35.009</started>
<requestor>wlpisystem</requestor>
<templateid>17</templateid>
<template-name>TEST ESCAPE XML</template-name>
<templatedefinitionid>17</templatedefinitionid>
<instanceid>10005</instanceid>
<actions>
<activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task 1"/>
<setvariable time="2002-01-30 10:02:35.009" variable="xml">
<StartActivity><businessRef>bus ref</businessRef><orderRef>order
ref</orderRef><activityId>Activity ID</activityId></StartActivity>
</setvariable>
<setvariable time="2002-01-30 10:02:35.011" variable="newXML">
<Root>
<Child_1>Child 1 data</Child_1>
<Child_2><StartActivity><businessRef>bus
ref</businessRef><orderRef>order
ref</orderRef><activityId>Activity
ID</activityId></StartActivity></Child_2>
</Root>
</setvariable>
<marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task 1"/>
<workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
</actions>
<completed>2002-01-30 10:02:35.037</completed>
</wlpirequest>
>Hi,
I also have this problem. It seems that a crude way around it, is to use a quick
fix via calling a business operation that performs string substitution to replace
the escaped entity references (<) and (>) with "<" ">". I have done this
and the approach works for me. Just be careful and make sure that the xml string
your are cleaning up doesn't contain any of these entity reference that you would
like to keep. Otherwise it will definitily break your xml. I hope you have that
luxury.
The easiest way to do is is to write a StringUtil class with a static replace
function, replace(source, old, new), expose this method as a business operation,
then call twice to convert your xml string.
I know this is pretty pathetic, but might help in the meanwhile until BEA provides
this functionality.
Lukas
"Smita Agarwal" <[email protected]> wrote:
>
Hi Paul,
I am getting the exact same problem , have you found a solution for
it??
It will be great to know if this problem is solved.
I am using WLI2.1 sp1 and WLS6.1 sp2, even with these two configuration
this problem
is occuring
cheers,
Smita
"Paul Rooney" <[email protected]> wrote:
Hi, I have a proplem building an XML document using the action : "Set
Workflow Variable" | "By Composing" dialog.
The value of an element on the left pane is a variable in the rightpane.
This variable contains a snippet of XML.
The problem is that when I print out the newly created document theXML
I
added to it from the variable has been escaped :
In the example below I created a new xml document called new XML inits
child_2 element I set its value to the XML String "xml".
As you can see, the value of child 2 has been escaped. Is there a way
to
turn this feature off ??
<Jan 30, 2002 10:02:35 AM GMT+10:00> <Info> <WLPI> <<wlpirequest>
<started>2002-01-30 10:02:35.009</started>
<requestor>wlpisystem</requestor>
<templateid>17</templateid>
<template-name>TEST ESCAPE XML</template-name>
<templatedefinitionid>17</templatedefinitionid>
<instanceid>10005</instanceid>
<actions>
<activatetask time="2002-01-30 10:02:35.009" taskid="2" name="Task
1"/>
<setvariable time="2002-01-30 10:02:35.009" variable="xml">
<StartActivity><businessRef>bus ref</businessRef><orderRef>order
ref</orderRef><activityId>Activity ID</activityId></StartActivity>
</setvariable>
<setvariable time="2002-01-30 10:02:35.011" variable="newXML">
<Root>
<Child_1>Child 1 data</Child_1>
<Child_2><StartActivity><businessRef>bus
ref</businessRef><orderRef>order
ref</orderRef><activityId>Activity
ID</activityId></StartActivity></Child_2>
</Root>
</setvariable>
<marktaskdone time="2002-01-30 10:02:35.011" taskid="2" name="Task
1"/>
<workflowdone time="2002-01-30 10:02:35.032" name="TEST ESCAPE XML"/>
</actions>
<completed>2002-01-30 10:02:35.037</completed>
</wlpirequest>
> -
-- How can I assign an xml typed variable and take advantage of the automatic escaping of invalid characters?
-- This query escapes the character fine in MSSQLMS
SELECT * FROM (SELECT CAST(0x1B00 AS NVARCHAR(128)) AS TestCharacter) MyTable FOR XML auto
<MyTable TestCharacter="" />
-- This fails in MSSQLMS and in a similar production procedure.
DECLARE @MyXml XML
SET @MyXML = (SELECT * FROM (SELECT CAST(0x1B00 AS NVARCHAR(128)) AS TestCharacter) MyTable FOR XML auto)
Msg 9420, Level 16, State 1, Line 2
XML parsing: line 1, character 30, illegal xml character
Scott MitchellThanks for the reply. I looked at casting to varbinary but didn't want to cast the large strings that have these characters in them. Sorry for not mentioning that. My example above is simplified. The text isn't only in an attribute and can be quite large.
I want to be able to read the text by just looking at the xml.
I really would like the escaped form:
 for all the invalid characters.
Scott Mitchell -
Validation with jaxp 1.3 and xml-schema
I'm totally green when it comes to xml&jaxp. Using jse 1.5 (jaxp 1.3), I'm trying
to have my app parse and validate an xml doc with xml schema. I want the validation to
happen using the schema specified in the xml doc. Also, I'd prefer if my application didn't have to set
the schema to use. As far as I can make out though, it appears that I need to parse the schemaLocation when
I want to validate using xml schema. Anyone know a way to avoid that step?
If not, then any idea why I'm getting the following err?
Error...
junit.framework.AssertionFailedError: null/null:4,9: Document is invalid: no grammar found.null/null:4,9: Document root element "catalog", must match DOCTYPE root "null".
at junit.framework.Assert.fail(Assert.java:47)
at com.rwd.toolbox.junit.AbstractRwdTestCase.printAndFail(AbstractRwdTestCase.java:229)
at com.rwd.util.xml.XmlUtilsTests.testXmlValidationUsingSchemaDefinedInXmlDoc(XmlUtilsTests.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Code... obviously taken from junit test case...
DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();
documentFactory.setNamespaceAware(true);
documentFactory.setValidating(true);
DocumentBuilder builder = documentFactory.newDocumentBuilder();
com.rwd.util.xml.Validator v = new com.rwd.util.xml.Validator(_validationStyle);
builder.setErrorHandler(v);
Document document = builder.parse(_document);
where com.rwd.util.xml.Validator extends DefaultHandler. Note that if I add following
code, then validation works as i expect it... but that's not really an option I care for (at least in this case).
I would anticipate being able to have the parser see the XSD reference in the XML and
apply it. Anyway, here's code to programmatically specify an XSD to use for validation....
documentFactory.setAttribute(
"http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
documentFactory.setAttribute(
"http://java.sun.com/xml/jaxp/properties/schemaSource",
"file:///C:/workspace31m4/LMSTester/testData/util/xml/o.xsd");
Finally, the XML file... (example from onJava site)... Note that I've tried changing the URI to file:///c:/..., same result:
<?xml version="1.0" encoding="UTF-8"?>
<!--A OnJava Journal Catalog-->
<catalog
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file://C:/workspace31m4/LMSTester/testData/util/xml/o.xsd"
title="OnJava.com" publisher="O'Reilly">
<journal date="April 2004">
<article>
<title>Declarative Programming in Java</title>
<author>Narayanan Jayaratchagan</author>
</article>
</journal>
<journal date="January 2004">
<article>
<title>Data Binding with XMLBeans</title>
<author>Daniel Steinberg</author>
</article>
</journal>
</catalog>
and its XSD file (also from onJava)...
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="catalog">
<xs:complexType>
<xs:sequence>
<xs:element ref="journal" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="title" type="xs:string"/>
<xs:attribute name="publisher" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="journal">
<xs:complexType>
<xs:sequence>
<xs:element ref="article" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="date" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="article">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element ref="author" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="author" type="xs:string"/>
</xs:schema>
Thanks,
-PaulThere are other applications using Xerces1.0 so the requirement is that I cannot replace the Xerces jar. Any suggestions.
-
Parsing errors with CDATA tags using oracle xml parser v2
I'm using the oracle.xml.parser.v2 parser to combine a
generated xml document from a database with a static
xsl file to produce html. Within the xml document, there
are fairly large CDATA sections (500 lines) which happen
to contain javaScript.
Occasionally, I'm getting xml tags in the final html
document! It seems that the oracle parser pukes
on a certain type of data within a CDATA tag, and then
replaces an angle bracket (<) of a tag with a #60. This
can cause html tags being viewed in the document. At
first, I thought the amount of JavaScript within the
CDATA tag was too large for the parser to handle,
because when I split it up into 2 or more parts the errors
went away. But, re-arranging the JavaScript (String in the CDATA tag)
can make the errors disappear. And, if I
use the Saxon parser to manually combine the xsl with
the xml, the output is fine. If anyone knows that this is
a confirmed bug by Oracle, or any other relevant info on
this, please let me know.Hi,
Your lucky, i've just finished a project that used the oracle parser extensively.
I think the problem may stem from your xsl. Although your cdata tags may be well formed, in the xsl you might need to escape the text again, this may mean that the xsl needs to print a further cdata tag around the data. This is because the parser (well the version I was using) strips the cdata tags before the transformation happens.
This is the probably the cause of the nasty html output.
Maybe you are looking for
-
Help needed using NiReport in MSVC (using C, not C++/MeasStudio)
Hi, folks! I develop my apps writing in C, using MSVC (not Measurement Studio/C++). I use LabWindows to design the UI and use the external compiler support to generate the UI's object file, which I link into my program. I've had great results doing t
-
I have 56 updates on my iphone 4. I have already downloaded the ios7, which I wish I didn't. whether I try downloading one or all and put in my password, it circles and then does nothing? I still have 56 updates? Heidi
-
Window 8.1 activation won't accept my product key
Window 8.1 64 but won't accept my product key. I know for a fact I didn't exceeded the amount of times of download. I want to use it for 64 bit. My old hardrive have it for 32 bit but I restored it to factory settings and install the 64 bit now that
-
SQL Injection and cfqueryparam
I was told to look into <cfqueryparam> to assist in fighting sql-injection and it makes perfect sense, up until I thought of a different scenario... This tag seems great when you are dealing with numbers or text that you can restrict the number of ch
-
On iMovie, when I add a new photo a then add another one, the newer photo is only the previous photo, only stretched out. What do I do!!?! (I'm new at this help communities thing)