Methods in XML--pL help
I have string...as
String xstr="<?xml version=\"1.0\"?>\n"+
"<UserGroups>\n<u_bit><![CDATA[1]]></u_bit>\n"+
"<u_title><![CDATA[public]]></u_title>\n<u_description><![CDATA[Pages are available to all visitors - no restrictions are applied]]></u_description>\n"+
"<u_used><![CDATA[1]]></u_used>\n<u_fromname/>\n<u_fromemail/>\n<pw_email/>\n<u_user/>\n<u_password/>\n</UserGroups>"+
I am trying to form a xmlDoc using String Reader as follows..
java.io.Reader reader = new java.io.StringReader(xstr);
org.xml.sax.InputSource source = new org.xml.sax.InputSource(reader);
org.w3c.dom.Document xmlDoc=null;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
xmlDoc = builder.parse(source);
Element xmlRoot=xmlDoc.getDocumentElement();
Table_Name=xmlRoot.getNodeName();
NodeList oNodeList = xmlRoot.getChildNodes();
Node PNode=oNodeList.item(0);
But at the end...ONodeList.item(0)...does not give anything...Am I doing anything wrong...Pl help if possible soon
smita
since Value is within the CDATA tag...You see a "CDATA tag", as you call it, in your XML, but the parser strips that all off and normalizes it to an ordinary string. So writing
<![CDATA[public]]>
is exactly the same as writing
public
and the parser treats them identically. So identically, in fact, that there is no way for you to find out whether CDATA was used at all.
Sorry, that doesn't answer your actual question, but hopefully it prevents you looking in the wrong direction.
Similar Messages
-
Hi All,
I am working on Version 12.1.8 Build(20), I have referred SAP notes 1294013 and placed the following files
- serializer.jar
- xalan.jar
- xercesImpl.jar
- xml-apis.jar
- xsltc.jar
in the specified path.
now when i use XSLT transformation block using IllumRowsetTableWithPageBreaks.xsl i am getting an error
[ERROR] [XSL_Transformation_0]XSLTransform error: while trying to invoke the method javax.xml.transform.Transformer.transform(javax.xml.transform.Source, javax.xml.transform.Result) of an object loaded from local variable 'processor'
please guide me.Hi Alex,
No, the case you have explained is not applicable to me. Sharing the code snippet for your reference. This is the code due to which my XSLT gives an error, if I remove these lines of code then the XSLT works fine.
<xsl:variable name="ENERGY" select="translate(ENERGY,',','')">
<xsl:choose>
<xsl:when test="ENERGY= ''">
<xsl:value-of select="0.00"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ENERGY"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Also, the same XSLT works absolutely fine in 12.1 but gives error in 14.0 SP05.
Warm Regards,
Anuj -
During reviewing my apple id with bank details site showing that "the payment method is declined" pls help me what to do? my bank details are correct and that is i am sure
In countries where the iTunes Store only sells apps, the accepted payment methods are Visa, MasterCard, and American Express. Other payment types such as gift cards, store credit, monthly allowances, ClickandBuy, and PayPal are not accepted. Depending on your App Store country, prices may be listed in your local currency, US Dollars, or Euros. http://support.apple.com/kb/HT5552
Or
http://www.apple.com/support/itunes/contact/
https://getsupport.apple.com/Issues.action -
Guys I have a iPod Touch 4g with iOs 4.3.3... I want portrait orientation lock button back... I miss it a lot... A dumb mute button shows instead of it... I hate it... Is there anyway I can get d PO lock button back? Any method?? Pleaaaaaaase help me guys
You can inform Apple of your displeasure:
Apple - iPod touch - Feedback
That is all. -
I have ipod nano 6G.I was trying to restore it to clear all the data but it showed error 1439 and couldn't restore.I tried every method given in errors help page but nothing worked.What should i do?
Just in case (even though your symptoms aren't explicitly mentioned in the document), let's check to see if there's a LSP problem in play here:
Apple software on Windows: May see performance issues and blank iTunes Store -
XML Transformation help required
Hi,
I want to read the contents of XML file, so i want to use Transformation. I require your help in getting that.
XML File contents
- <SOAP_FAULT>
- <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
- <s:Header>
<a:Action s:mustUnderstand="1">http://www.aaaa/bbbb/ccccc/ServiceUnavailableFault</a:Action>
<a:RelatesTo>urn:uuid:18a90558-58e4-1ee0-b5b6-4406eadff48f</a:RelatesTo>
- <u:Timestamp u:Id="_0">
<u:Created>2011-09-02T22:23:11.917Z</u:Created>
<u:Expires>2011-09-02T22:28:11.917Z</u:Expires>
</u:Timestamp>
</s:Header>
- <s:Body>
- <s:Fault>
- <s:Code>
<s:Value>s:Sender</s:Value>
</s:Code>
- <s:Reason>
<s:Text xml:lang="en-US">No recipients found</s:Text>
</s:Reason>
+ <s:Detail>
- <ServiceUnavailableFault xmlns="http://www.aaabbbccc.com/AONI/2/0/messages/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<RequestId>18a90558-58e4-1ee0-acc4-b45d6629582d</RequestId>
</ServiceUnavailableFault>
</s:Detail>
</s:Fault>
</s:Body>
</s:Envelope>
</SOAP_FAULT>
Here i want to read the tag <Reason> which is currenlyt displaying as "No recipients found".
could you please help me in getting this..?
Thaks,
RaghuHi,
if you just need to extract one element (?), you could use iXML : interface if_ixml_document contains method find_from_path_ns , to which you may pass the path to your element (and pass the namespace prefix too), which is :
/SOAP_FAULT/s:Envelope/s:Body/s:Fault/s:Reason
Sandra -
Hi,
I have a probelm like how to get node vale from xml file if xml file contains html data.
I would appreciate your help.
I want retrive the value of node1 as
<html><body><h1>Hello</h1></body></html>
Example:
<static_info>
<node1>
<html><body><h1>Hello</h1></body></html>
</node1>
<node2>
some text
</node2>
</static_info>
Thank,
Ravityr to use a SAX Parser and methods of that.
I give u a small example
=====================================================
public static String getNodeValueByName(Node node, String name) {
// Node value
String value = null;
try {
if (node != null) {
// Get all the child nodes
NodeList children = node.getChildNodes();
// Number of child nodes
int childLen = children.getLength();
// Traverse the child nodes to get the required node
for (int ctr = 0; ctr < childLen; ctr++) {
Node child = children.item(ctr);
// If this node matches the given Node name
if ((child != null) && (child.getNodeName() != null)
&& child.getNodeName().equals(name)) {
// Get the Text node
Node grandChild = child.getFirstChild();
// Get the node value
if (grandChild.getNodeValue() != null) {
value = grandChild.getNodeValue();
break;
} catch (NullPointerException ne) { // No match found
value = null;
return value;
==========================================
thanks and regards,
Amanpreet
[email protected] -
Hello All,
I'm somewhat new to Java and XML and I'm having this problem:
I have an program that does an HTTP Post and gets back an XML response. I'm trying to parse the response. I'm completely lost I think, and I apologize for my utter stupidity or if I haven't provided enough information. What follows is a snippet of code and the error message I'm getting:
//conn is my Http connection
// get the results
conn.connect(); // throws IOException
int responseCode = conn.getResponseCode(); // 200, 404, etc
String responseMsg = conn.getResponseMessage(); // OK, Forbidden, etc
// Read the response XML document
XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
org.xml.sax.ContentHandler handler = new DefaultHandler();
parser.setContentHandler(handler);
InputStream in = conn.getInputStream();
InputSource source = new InputSource(in);
parser.parse(source);
in.close();
conn.disconnect();
Error Message:
org.xml.sax.SAXParseException: The root element is required in a well-formed document.
I think my problem is here but I'm not sure:
org.xml.sax.ContentHandler handler = new DefaultHandler();
Thanks for all of your help,
Lancehi
i think u should first read the file using JFlieChooseran d grt the file likr this:::::::
public File getXMLFileChooser()
//Create a file chooser
fc = new JFileChooser();
String type[] = new String[] {"xml"};
fc.addChoosableFileFilter(new MyFileFilter(type,"XML Files(*.xml)"));
fc.setMultiSelectionEnabled(false);
int returnVal = fc.showOpenDialog(XMLFileChooser.this);
if (returnVal == JFileChooser.APPROVE_OPTION)
file =fc.getSelectedFile();
return file;
///now this file is to be read using BufferedReader & FileInputStream
File file;
FileInputStream fis;
BufferedReader bdr=null;
String record=null;
FileInputStream fis = new FileInputStream(file);
bdr= new BufferedReader(new InputStreamReader(fis));
while ( (record=bdr.readLine()) != null )
ParseFile(record);//in this method u can parse the file
if it something u want i can help u more....
cheers|||| -
Binding ArrayCollection to HTTPService method="POST" xml result
Hi All,
Firstly apologies for posting all this code!
I have the following app that adds & displays in a
datagrid the data from a mysql db, works fine so far.
#########################<START
SNIP>##########################
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*" layout="absolute"
backgroundGradientColors="[#0080ff,#80ffff]"
creationComplete="send_data()">
<!-- This is the Script to SetUp Functions-->
<mx:Script>
<![CDATA[
private function youveClicked():void {
mx.controls.Alert.show('You Clicked!!!');
private function send_data():void {
staffcodeRequest.send();
]]>
</mx:Script>
<!-- This is the HTTPService-->
<mx:HTTPService id="staffcodeRequest" url="
http://192.168.0.84/amfphp/services/staffcode.php"
useProxy="false" method="POST">
<mx:request xmlns="">
<firstname>{firstname.text}</firstname><surname>{surname.text}</surname><staffcode>{staff code.text}</staffcode><emailaddress>{emailaddress.text}</emailaddress><department>{departm ent.text}</department>
</mx:request>
</mx:HTTPService>
###########################<END
SNIP>##########################
I'm thinking of Binding the the xml formated results into an
arrayCollection & then use the filterFunction to allow a user
to filter the data (is this possible?).
(Below is some code that I found in a thread & am using
to work from as an example)
#########################<START
SNIP>##########################
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" creationComplete="initData()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dataList:ArrayCollection ;
private function initData():void{
dataList= new ArrayCollection([
{name:"school A", city:"Dartford"},
{name:"school B", city:"Pomona "},
{name:"School C", city:"Phillipsburg"}
private function filterDemo():void{
dataList.filterFunction = searchDemo;
dataList.refresh();
private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false
if(item.name.toLowerCase().search(search.text.toLowerCase())
!= -1){
isMatch = true
return isMatch;
private function clearSearch():void{
dataList.filterFunction = null;
dataList.refresh();
search.text = '';
]]>
</mx:Script>
###########################<END
SNIP>##########################
If it is possible, I need some help in integrating the
following code, (I've tried but keep getting {1151: A conflict
exists with definition staffcodeRequest in namespace internal.})
#########################<START
SNIP>##########################
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*" layout="absolute"
backgroundGradientColors="[#0080ff,#80ffff]"
creationComplete="send_data()">
<!-- This is the Script to SetUp Functions-->
<mx:Script>
<![CDATA[
private function youveClicked():void {
mx.controls.Alert.show('You Clicked!!!');
private function send_data():void {
staffcodeRequest.send();
<!--Can I just Bind the arrayCollection here-->
import mx.collections.ArrayCollection;
[Bindable]
private var staffcodeRequest:ArrayCollection;
private function filterDemo():void{
staffcodeRequest.filterFunction = searchDemo;
staffcodeRequest.refresh();
private function searchDemo(item:Object):Boolean{
var isMatch:Boolean = false
if(item.staffcode.toLowerCase().search(search.text.toLowerCase())
!= -1){
isMatch = true}
return isMatch;
private function clearSearch():void{
staffcodeRequest.filterFunction = null;
staffcodeRequest.refresh();
search.text = '';
]]>
</mx:Script>
<!-- This is the HTTPService-->
<mx:HTTPService id="staffcodeRequest" url="
http://192.168.0.84/amfphp/services/staffcode.php"
useProxy="false" method="POST">
<mx:request xmlns="">
<firstname>{firstname.text}</firstname><surname>{surname.text}</surname><staffcode>{staff code.text}</staffcode><emailaddress>{emailaddress.text}</emailaddress><department>{departm ent.text}</department>
</mx:request>
</mx:HTTPService>
###########################<END
SNIP>##########################
What I am strugling with is BINDING the returned xml formated
results to an arrayCollection, and changing from the static xml
file example to mxl formated txt received from the mysql db on the
fly.
Help would be grate ;-)
TIA
DannyFrom what I've read, it seems that a Proxy Server, such as
BlazeDS or FDS, is required if you want to use anything other than
GET or POST and set the useProxy property to true.
What is the motivation of requiring a proxy server to support
HTTP PUT or DELETE? -
Hi there
I have created an xsl in DW CS3. It is displaying a news feed
properly with the xml feeds title and description ..however ..I
want to add the story link from the xml to the title of each of the
news headlines ... I can't seem to do it ..as the text of the url
link appears. Can anyone help with this? Below is the xsl (without
the link from xml) and the xml feed is:
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTION=HOME
thanks Rob
<?xml version="1.0" encoding="utf-8"?><!--
DWXMLSource="
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=CAANR&SECTION=HOME"
--><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/"><link
href="Level1_Verdana.css" rel="stylesheet" type="text/css"
media="all" /><link href="Level1_Arial.css" rel="stylesheet"
type="text/css" />
<xsl:for-each select="rss/channel/item">
<table width="500" border="0">
<tr>
<td bgcolor="#CCCCCC"><xsl:value-of
select="title"/></td>
</tr>
<tr>
<td><xsl:value-of
select="description"/></td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>> it ..as the text of the url link appears. Can anyone
help with this?
> Below is
> the xsl (without the link from xml) and the xml feed is:
>
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTION=HOME
In your XSL:
<a href="{link}"><xsl:value-of select="title"
/></a>
-Darrel -
I am trying to setup XML reporting for Sybase on ZFD version 6.5sp2
running on NW 6.5 sp6. I followed the documentation on the setup. I did
notice when I tried to connect to http://ip add:8080/zfdamrServlet/run it
didn't work, if I remove the :8080 I get a page to load with the following
"zfdamrServlet is running". If am correct I should she a table showing
the results from application's that have xml reporting enabled.
I feel I have everything setup correctly. I would appreciate any
assistance on this matter.
Thanks
RichRich wrote:
> Kurt Finlayson wrote:
>
>> Rich wrote:
>>> I am trying to setup XML reporting for Sybase on ZFD version 6.5sp2
>>> running on NW 6.5 sp6. I followed the documentation on the setup. I
>>> did notice when I tried to connect to http://ip
>>> add:8080/zfdamrServlet/run it didn't work, if I remove the :8080 I
>>> get a page to load with the following "zfdamrServlet is running". If
>>> am correct I should she a table showing the results from
>>> application's that have xml reporting enabled.
>>> I feel I have everything setup correctly. I would appreciate any
>>> assistance on this matter.
>>>
>>> Thanks
>>> Rich
>>>
>>>
>
>> The report of what applications will still be found using the
>> reporting tool in consoleone. XML reporting is just a method for
>> getting the application statuses to the database. So try running NAL
>> reports from Consoleone.
>
> Hi Kurt,
>
> First thanks for your response. I am able to run all reports in C1. I
> wanted to use the XML page for Help Desk folks. So, they can monitor an
> application deployment through the Apache page.
> So am I missing something? But, I thought that was the intention of the
> ZFD servlet and Apache?
>
>
The servlet passes the Application Success and Failures launched on the
workstations to the database, that is all. It does not have a page for
viewing the information, this can only be run in consoleone. -
Deploy ejb on wls7.0 weblogic.ejb.jar.xml ! help
Morning !
i'm try to deploy a EJB on wls7.0
my descriptor is like this and i don't really undestand what's go wrong.
thanks you to help
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 7.0.0
EJB//EN" "http://www.bea.com/servers/wls700/dtd/weblogic700-ejb-jar.dtd" >
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<entity>
<ejb-name>Compte</ejb-name>
<bean-home-name>Compte</bean-home-name>
<resource-ref>
<res-ref-name>jdbc/DataSource</res-ref-name>
<jndi-name>DataSource</jndi-name>
</resource-ref>
<cmp-info>
<database-map>
<table>"Compte"</table>
<column-map>
<field-name>id</field-name>
<column-name>"id"</column-name>
</column-map>
<column-map>
<field-name>nomSte</field-name>
<column-name>"nomSte"</column-name>
</column-map>
<column-map>
<field-name>dateCreation</field-name>
<column-name>"dateCreation"</column-name>
</column-map>
<column-map>
<field-name>nbEmployes</field-name>
<column-name>"nbEmployes"</column-name>
</column-map>
<column-map>
<field-name>caSte</field-name>
<column-name>"caSte"</column-name>
</column-map>
<column-map>
<field-name>descSte</field-name>
<column-name>"descSte"</column-name>
</column-map>
<column-map>
<field-name>logo</field-name>
<column-name>"logo"</column-name>
</column-map>
<column-map>
<field-name>id_commercial</field-name>
<column-name>"id_commercial"</column-name>
</column-map>
</database-map>
<finder>
<method-signature>findAll()</method-signature>
<where-clause />
<load-state>True</load-state>
</finder>
</cmp-info>
</entity>
<datasource-definitions>
<datasource>
<jndi-name>DataSource</jndi-name>
<url>jdbc:odbc:dev_java</url>
<username>sa</username>
<password>lnx.sully</password>
<driver-class-name>sun.jdbc.odbc.JdbcOdbcDriver</driver-class-name>
</datasource>
</datasource-definitions>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
the EXception is !
Exception
weblogic.management.ApplicationException: No deployment found at
E:\bea70\weblogic700\server\bin\GRPEJB.jar.
at
weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEAppli
cationContainerFactory.java:350)
at
weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRunti
me.java:350)
at
weblogic.management.deploy.DeployerRuntime.access$0(DeployerRuntime.java:282
at
weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:947)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
at
weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(De
ployerRuntime.java:941)
at
weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:279
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
.java:717)
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:6
99)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at
weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerI
mpl.java:921)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
at $Proxy48.activate(Unknown Source)
at
weblogic.management.console.actions.mbean.ConfigureAppWizardAction.commit(Co
nfigureAppWizardAction.java:248)
at
weblogic.management.console.actions.mbean.ConfigureAppWizardAction.perform(C
onfigureAppWizardAction.java:100)
at
weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
rvlet.java:171)
at
weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
let.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5360)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
tahnks you !
Unimon Thierry
CGBI- CET-E-services
69, Blvd Galliéni
91 Issy les Mlx
tele :01/55/95/54/22 Poste:5422
Port :06/61/81/78/59
Prof : mailto:[email protected]
Pers : mailto:[email protected]oops! Pls ignore my previous mail. It was for a different problem.
FOr the original problem of "couldn ot locate the bean with the ejb-name XZY in weblogic-ejb-jar.xml":
This happens if you don't have the below files defined
for a JAR/EAR file:
weblogic-ejb-jar.xml and weblogic-cmp-rdbms-jar.xml (needed if you have any Datasource mapped)
These two are basic files required for any JAR/EAR file.
If you dont' have it already you can generate them using
$WLS_HOME/bin/startWLBuilder.sh GUI tool bundled along
with WLS (I used 8.1 SP4) to generate these files ! This tool is really helpful.
- Mouli -
Hi all,
I am building report using xml publisher. Problem i facing was ,
1. I created the template in RTF and attached to data definition
for eg: my rtf is
sno item quantity price ( I created this field in table structure and mapped to xml data)
Total Price ( this also i am getting from data definition)
The below is sample constant sentence for my client and typed just below Total Price ( field i mentioned above)
Inspected By Approved By
1)
________________________________ 1)________________________________ Store Incharge : ______________________
2)
________________________________ 2) ________________________________ Received : _______________________
3)
________________________________ 3 ________________________________ Prepared By : _______________________
NOTE : ABOVE MENTIONED LINES ARE CONSTANT ONE.
2. When i ran the report, if my data definition return 5 lines means , i am getting PDF output Correctly in single page (1st page)
3) If my data definition returns lines more than 8 lines means, I am getting PDF output with Table structure values with item, in 1 st page and Constant sentence in 2nd page of PDF
4) If my data definition returns lines between 5 and 8 means, I am getting PDf output with table structure values with item and some of Constant sentence of my client in 1 st page and few of the constanst sentence in 2nd page.
Actually my need
Even if the data definitions exceeds more than 5 lines the constant sentence should be placed either in the first page or in the next page based on the no. of lines in the data definition.
How to resolve this... any approach most welcome. Wat changes i have to make.Hi Shruti,
You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
Hope this helps.
Thanks! -
Hi,
We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1.
The problem with this is to apply patches Oracle have told us we need to have the NLS_LANG set to UTF8.
As a result Oracle have said that:
The only available workaround for generating PDF on a UTF8 character set instance is to install and utilize the XML Publisher product or upgrade to E-Business Suite to Release 12.
We don't have any plans to upgrade to Release 12, so I am looking to use XML Publisher. I have a couple of questions:
Is this an add-on?
Where is the best place to obtain navigation guides and tutorials to teach myself this?
I have had a look at some of the pre-defined templates already and I am not sure how to create my own rtf file so that my required fields are passed to the template.
Any help would be greatly appreciated
Many Thanks
MartinHi Shruti,
You can start with the BI publisher page on OTN http://www.oracle.com/technology/products/xml-publisher/index.html.
Check out the tutorials (Oracle by Example). There's lot of good information out there. Check out the BI publisher guide here:http://www.oracle.com/technology/products/xml-publisher/xmlpdocs.html
Search the forum or post questions about any specific questions you may have about formatting numbers and dates.
Hope this helps.
Thanks! -
Error in my build.xml file (help with spotting syntax error requested)
Hi
I have written an XML file called build.xml for one of my applications. My XML editor complains that there is an error at the last line of the XML file, but I simply find it unable to correct the errror.
It says:
Fatal error:Build.xml[76:3-9]: End-Tag without start-tag
The XML file itself:
<project basedir="." default="deploy" name="concepts">
<property name="src.dir" value="src"></property>
<property name="build.dir" value="${basedir}/build"></property>
<property name="build.lib" value="${build.dir}/lib"></property>
<property name="dist.dir" value="dist"></property>
<property name="classes.dir" value="${build.dir}/classes"></property>
<property name="build.etc" value="${src.dir}/etc"></property>
<property name="build.resources" value="${src.dir}/resources"></property>
<property name="lib.dir" value="lib"></property>
<property name="web-inf.dir" value="WEB-INF"></property>
<property name="war.name" value="concepts"></property>
<property file="../common.properties"></property>
<target name="init">
<mkdir dir="${build.dir}"></mkdir>
<mkdir dir="${classes.dir}"></mkdir>
<mkdir dir="${dist.dir}"></mkdir>
</target>
<target name="deploy" depends="clover-yes, clover-no">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
<include name="org/apache/commons/fileupload/**/*.java" />
<include name="com/portalbook/portlets/**/*.java" />
<include name="com/portalbook/portlets/content/**/*.java" />
</javac>
<target depends="init" name="compile">
<javac debug="true" deprecation="true" destdir="${classes.dir}" optimize="false">
<src>
<pathelement location="${src.dir}"></pathelement>
</src>
<classpath>
<fileset dir="${lib.dir}">
<include name="*.jar">
</include>
</fileset>
</classpath>
</javac>
</target>
<target depends="compile" name="war">
<war destfile="${dist.dir}/${war.name}.war" webxml="WEB-INF/web.xml">
<classes dir="${classes.dir}"></classes>
<lib dir="${lib.dir}"></lib>
<webinf dir="${web-inf.dir}"></webinf>
</war>
</target>
<!-- create the portal-concepts-lib.jar -->
<jar jarfile="${build.lib}/concepts-lib.jar">
<fileset dir="${classes.dir}"></fileset>
</jar>
<jar jarfile="${build.lib}/concepts.war" manifest="${build.etc}/concepts-war.mf">
<fileset dir="${build.resources}/concepts-war"></fileset>
</jar>
<!-- concepts.ear -->
<copy todir="${build.resources}/concepts-ear">
<fileset dir="${build.lib}" includes="concepts.war,concepts-lib.jar"></fileset>
</copy>
<jar jarfile="${build.lib}/concepts.ear">
<fileset dir="${build.resources}/concepts-ear" includes="concepts.war,concepts-lib.jar">
</fileset>
</jar>
<target depends="deploy" name="explode">
<taskdef classname="org.jboss.nukes.common.ant.Explode" classpath="${libs}" name="explode"></taskdef>
<explode file="${build.lib}/concepts.ear" name="concepts.ear" todir="${build.lib}/exploded"></explode>
</target>
<target depends="war" name="all"></target>
<target name="clean">
<delete dir="${build.dir}">
</delete>
<delete dir="${dist.dir}">
</delete>
</target>
</project>
I am a little inexperienced in XML files. So I am unable to spot the error.
I would greatly appreciate it, if some kind soul were to help me out.
thanks a lotThe tag
<target name="deploy" depends="clover-yes, clover-no">...is never closed.
close that tag:
<target name="deploy" depends="clover-yes, clover-no">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${libs}" debug="off" optimize="on" deprecation="on" compiler="${compiler}">
<include name="org/apache/commons/fileupload/**/*.java" />
<include name="com/portalbook/portlets/**/*.java" />
<include name="com/portalbook/portlets/content/**/*.java" />
</javac>
</target>Second error is that the depends in there (clover-yes, clover-no) are not existing as targets in your xml.
Maybe you are looking for
-
I went to the apple store and they told me that my version of Itunes on my Ipod touch is like 20 versions behind. My mom just bought a mac and I want to update my software but I dont want to lose all of my music,movies,shows, and pictures. I no longe
-
My wife and I are getting each other's text messages. How do I turn that off so I get mine and she gets hers?
-
Mail keeps asking for password, over and over and over again. How to fix?
How do I stop this behavior of Mail? I tried disableing my account and resetting it up, but it won't let me do that either. I use Mac OS 10.6.8.
-
Hello BC gurus.... I have a blog set up on a site of mine: http://nganet.businesscatalyst.com/nga-blog Quick easy question for all.. With the "{tag_blogpostbody}" in the list layout... Can you set this to display an image with the preview of the copy
-
Making more archieve file while refreshing materialised view
Hi experts, i have created a materialised view and index on that, while refreshing it is making more archive files, how to stop making archieve while refreshing the Materialised view. i also opted nologging option on that,