Create XML with XSLT help
Hi,
I would like to create an XML which map to XSLT.
The data that I have to produce XML is just a very small data, for example ArrayList<Integer> myList.
So I need to create an XML from myList.
I'm not sure what technology solution I should choose.
But it'll be great if I can produce my XML map with my xslt.
Should I use SAX? Xerces? Digester? or ....
Could someone give me a right direction or an example.
I'm really appreciate all your input.
Thanks,
Explain why you want to use XSLT. From what you've said so far I don't see the need.
There are a variety of ways to produce XML from data. You'll need to decide how exactly you want a list of numbers to map to XML -- there's a lot of data missing here.
Similar Messages
-
Problem while creating xml with cdata section
Hi,
I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
select xmlelement("DOCUMENTS",
xmlagg
(xmlelement
("DOCUMENT",
xmlforest
(m.document_name_txt as "DOCUMENT_NAME_TXT",
m.document_type_cd as "DOCUMENT_TYPE_CD",
'<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
<DOCUMENTS>
<DOCUMENT>
<DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
<DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
<DOCUMENT_CLOB_DATA>
<![cdata[123456789012345678901234567890123456789012]]>
</DOCUMENT_CLOB_DATA>
</DOCUMENT>
</DOCUMENTS>
The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give < for cdata tag. How can I overcome this? Please help.SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
2 cdataValue varchar2)
3 return xmltype deterministic
4 as
5 begin
6 return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
7 end;
8 /
Function created.
SQL> select xmlelement
2 (
3 "Row",
4 xmlcdata_10103('Junk','&<>!%$#&%*&$'),
5 xmlcdata_10103('Name',ENAME),
6 xmlelement("EMPID", EMPNO)
7 ).extract('/*')
8* from emp
SQL> /
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SMITH]]></Name>
<EMPID>7369</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ALLEN]]></Name>
<EMPID>7499</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[WARD]]></Name>
<EMPID>7521</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JONES]]></Name>
<EMPID>7566</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MARTIN]]></Name>
<EMPID>7654</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[BLAKE]]></Name>
<EMPID>7698</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[CLARK]]></Name>
<EMPID>7782</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SCOTT]]></Name>
<EMPID>7788</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[KING]]></Name>
<EMPID>7839</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[TURNER]]></Name>
<EMPID>7844</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ADAMS]]></Name>
<EMPID>7876</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JAMES]]></Name>
<EMPID>7900</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[FORD]]></Name>
<EMPID>7902</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MILLER]]></Name>
<EMPID>7934</EMPID>
</Row>
14 rows selected.
SQL> -
Importing xml with xslt in InDesign CS4
Hello All,
i need someone's help who's an expert at xml and xslt features of InDesign CS4.
i work in publication, besides our magazines we produce yearbooks with lots of repetative information fields in them. we get the data in xml fromat which we flow in to InDesign. the xml files are very simple, here's an example:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Root>
<Story>
<Country> Afganistan </Country>
<Company_ID>
<Company_Name> Kam Air </Company_Name>
<Company_Code> 1 </Company_Code>
<Address_text> 1205 Qalla Fatuha </Address_text>
<Address_text> P.O.Box 456 </Address_text>
<Address_text> Kabul </Address_text>
<Address_text> 22004 </Address_text>
<Address_text> Afganistan </Address_text>
<Telephone_text> Telephone: +93 20 2200 108 </Telephone_text>
<Fax_text> Fax: +93 20 2200 110 </Fax_text>
<Email_text> E-mail: [email protected] </Email_text>
<Website_text> Website: www.flykamair.com </Website_text>
<Personel_text> Abdul Raquib, chief Executive <Personel_text>
<Personelmail_text> ([email protected]) </Personelmail_text>
<Job_code> A1 </Job_code>
</Company_ID>
<Country> Albania </Country>
etc.
</Story>
</Root>
the problem is we don't want <Company_Code> and <Job_code> elements displayed in the InDesign file.
so we created an xslt file that shoud get rid of these two unwanted elements (obviously the xml file above was pointed to this xslt file)
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<Root>
<Story>
<Country>
<xsl:for-each select="Company_ID">
<Company_ID>
<xsl:value-of select="Company_Name"/>
<xsl:value-of select="Address"/>
<xsl:value-of select="Telephone_text"/>
<xsl:values-of select="Fax_tex"/>
<xsl:value-of select=Email_text"/>
<xsl:value-of select="Website_text"/>
<xsl:value-of select="Personel_text"/>
<xsl:value-of select="Pesronelmail_text"/>
</Company_ID>
</xsl:for-each>
</Story>
</Root>
</xsl:template>
</xsl:stylesheet>
but it doesn't work. could someone tell me what's wrong with the xslt file? or what would the correct xslt file look like?
Thanks everyone!Here's the sort of thing I mean in more detail.
First, the XML file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?xml-stylesheet type="text/xsl" href="transform2.xsl"?>
<Root>
<Country>
<Country_name>Afganistan</Country_name>
<Company_ID>
<Company_Name> Kam Air </Company_Name>
<Company_Code> 1 </Company_Code>
<Address_text> 1205 Qalla Fatuha </Address_text>
<Address_text> P.O.Box 456 </Address_text>
<Address_text> Kabul </Address_text>
<Address_text> 22004 </Address_text>
<Address_text> Afganistan </Address_text>
<Telephone_text> Telephone: +93 20 2200 108 </Telephone_text>
<Fax_text> Fax: +93 20 2200 110 </Fax_text>
<Email_text> E-mail: [email protected] </Email_text>
<Website_text> Website: www.flykamair.com </Website_text>
<Personel_text> Abdul Raquib, chief Executive </Personel_text>
<Personelmail_text> ([email protected]) </Personelmail_text>
<Job_code> A1 </Job_code>
</Company_ID>
<Company_ID>
<Company_Name> Another Company </Company_Name>
<Company_Code> 2 </Company_Code>
<Address_text> Elswhere</Address_text>
<Address_text> P.O.Box 123</Address_text>
<Address_text>Another City</Address_text>
<Address_text> 22005 </Address_text>
<Address_text> Afganistan </Address_text>
<Telephone_text> Telephone: +12345678 </Telephone_text>
<Fax_text> Fax: +12345678 </Fax_text>
<Email_text> E-mail: [email protected] </Email_text>
<Website_text> Website: www.dfhdfh.com </Website_text>
<Personel_text> dfhdfhdfhdfhdfh</Personel_text>
<Personelmail_text>dfhdfhdfhdfh</Personelmail_text>
<Job_code> A2 </Job_code>
</Company_ID>
</Country>
<Country>
<Country_name>Albania</Country_name>
<Company_ID>
<Company_Name> Number 3 </Company_Name>
<Company_Code>3</Company_Code>
<Address_text>Somewhere in Albania</Address_text>
<Address_text>Freedonia Avenue</Address_text>
<Address_text>Whatever the captial of Albania is called</Address_text>
<Address_text> 88888</Address_text>
<Address_text> Albania </Address_text>
<Telephone_text> Telephone: + 666 666 666 666 </Telephone_text>
<Fax_text> Fax: + 777 777 777 777</Fax_text>
<Email_text> E-mail: [email protected] </Email_text>
<Website_text> Website: www.albaniar.com </Website_text>
<Personel_text>Ludwig Wittgenstein, chief Executive </Personel_text>
<Personelmail_text> ([email protected]) </Personelmail_text>
<Job_code> A1 </Job_code>
</Company_ID>
</Country>
</Root>
Note that I have renamed the XSL file "transform2.xsl". I have got rid of the "Story" tag, and I have nested the tags more appropriately, with a new tag "Country_name". Here's the XSL:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<Root>
<xsl:for-each select="/Root/Country">
<Country>
<Country_name><xsl:value-of select="Country_name"/></Country_name>
<xsl:for-each select="Company_ID">
<Company_Name><xsl:value-of select="Company_Name"/></Company_Name>
<Address_text><xsl:value-of select="Address_text"/></Address_text>
<Telephone_text><xsl:value-of select="Telephone_text"/></Telephone_text>
<Fax_text><xsl:value-of select="Fax_text"/></Fax_text>
<Email_text><xsl:value-of select="Email_text"/></Email_text>
<Website_text><xsl:value-of select="Website_text"/></Website_text>
<Personel_text><xsl:value-of select="Personel_text"/></Personel_text>
<Personelmail_text><xsl:value-of select="Personelmail_text"/></Personelmail_text>
</xsl:for-each>
</Country>
</xsl:for-each>
</Root>
</xsl:template>
</xsl:stylesheet>
(That file should be saved as "transform2.xsl" to match the link on line 2 of the XML.)
Hope that works -- Jeremy -
Create XMl with indentation by DOM
Hi all,
I wanna create a xml file with indentation.
e.g
<MyXML>
<MyNode attr1="value1"/>
<MyNode2 attr1 = "value1"/>
</myXML>
I save my xml with the following code
TransformerFactory transFactory = TransformerFactory.newInstance();
Transformer transformer = transFactory.newTransformer();
DOMSource source = new DOMSource(getDocument());
FileOutputStream os = new FileOutputStream(file);
StreamResult result = new StreamResult(os);
transformer.transform(source, result);it create a result like:
<MyXML><MyNode attr1="value1"/><MyNode2 attr1 = "value1"/></myXML>
how to achieve my purpose ?sorry again, this is what i really want to achieve
<MyXML>
<MyNode attr1="value1"/>
<MyNode2 attr1 = "value1">
<MyChildNode attr="value"/>
</MyNode2>
</MyXML> -
Problem with XML and XSLT, help...
Okay, I have this XML doc (called stocks.xml):
<?xml:stylesheet type="text/xsl" href="stocks.xsl" version="1.0" encoding="UTF-8"?>
<portfolio>
<stock>
<symbol> SUNW </symbol>
<name> Sun Microsystem </name>
<price> 12.95 </price>
</stock>
<stock>
<symbol> HPW </symbol>
<name> Hewlet Packard </name>
<price> 53.50 </price>
</portfolio>
And I have this XSLT doc (called stocks.xls):
?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xls="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title> Stocks </title>
<body bgcolor="#ffffcc">
<xsl:apply-template />
</body>
</head>
</html>
</xsl template>
<xsl:template match="portfolio">
<table border="2">
<tr>
<th> Stock Symbol </th><th> Company Name </th><th> Price </th>
</tr>
<xsl:for-each select="stock">
<tr>
<td>
<i><xsl:value-of select="symbol" /></i>
</td>
<td>
<xsl:value-of select="price" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl template>
</stylesheet>
When I try to retrieve the stocks.xml document with
IE, the browser said, there is an error on line 2, can not
recognize xsl:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Reference to undeclared namespace prefix: 'xsl'. Error processing resource 'http://localhost:8080/examples/jsp/stocks/stocks.xsl'. Line 2, Position 71
<xsl:stylesheet version="1.0" xmlns:xls="http://www.w3.org/TR/WD-xsl">
I just follow this from an example of XML tutorial.
Please help, what is it that I miss? Seems everything
I have is okay....??
Thanks,
Ted.Thanks you all!
You have spotted that mistyped.
However, turns out Internet Browser that I have does not permit the use of XSL. After I fixed the file, I got this
message:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Keyword xsl:apply-template may not be used here.
Oh well...
Anybody knows, if IE can or can not be used to view the
XML that reference XSL??
Thanks,
Ted. -
Styling XML with XSLT Problem with javax.xml.transform???
I have been trying to make a transformation and seem to be having a problem in that javax.xml.transform can not be found while using jdk1.3....If I use jdk1.4, there is no problem....
Does anyone know how I can get things to work using jdk1.3???
(Description of what I am doing...1) Building XML Source 2) Setting up the XSLT File 3) Building Source Object 4) Build Result Object 5) Transforming the Data.....MY RESULT SHOULD BE AN HTML PAGE)
I have tried putting xerces.jar and xalan.jar in my CLASSPATH....but this still doesn't work....onyl thing that has worked is using jdk1.4 as my JAVA_HOME....
PLEASE HELP!!!!PLEASE HELP....your advice here would be greatly appreciated.....
-
Create XML with digital sign and SOAP header...
Hi.
With ABAP, I need create an XML file iwith SOAP envelope. The message has to be signed and the sign data saved in the ws-security part in the SOAP header. I have to sign the file with a X509v3 certificate in base64.
Somebody can tell me how can create the SOAP header and sign it with ABAP for the XML.
Thanks.Please refrain from implementing WS-Security yourself.
NWAS ABAP 7.x provides support for WS-Security - in both roles, as Consumer and Provider.
The right approach is to generate a proxy based on a given WSDL.
What kind of (message-based) authentication is demanded by the WS Provider?
Other info source: see https://wiki.sdn.sap.com/wiki/display/Security/SingleSignonforWeb+Services
Edited by: Wolfgang Janzen on Jul 8, 2009 12:11 AM -
Can I creat timestamp with the help of 6601 in labview?
I need a timestamp less than 1ms. So far as I know, 6601 can measure the time interval at the accurecy of us. Can this help to creat timestamp?
Jimmyjimmy2000,
The simple answer is probably, yes. I think you can timestamp using the 6601.
I know this is my usual "answer" - to ask more questions, but more information is needed to propose a good solution.
Do you need absolute time or relative time accuracy?
By absolute I mean, do you need a tracable timestamp with clearly definable accuracy to GMT or the NIST clock?
Or is is good enough to measure intervals of time accurately?
For instance,
Absolute:
1st datum logged at January 2, 2003 0847.105 hours EST
2nd datum logged at January 2, 2003 0847.107 hours EST
Relative:
1st datum logged at January 2, 2003 0847.105 hours EST
2nd datum logged after an additional 0.002 seconds
Both structures are possible
and useful for different purposes. In the first case the best evidence is needed to fix the time of the event under examination. In the second case the begining of the acquisiton is fixed as absolutely as possible, but subsequent data are acceptable as timed by the clock of the 6601 card.
I noticed example code at ni.com that allows a clock update using the global positioning system by wireless means. This is for PXI-6608.
There are VI that ship with LabVIEW for GPS timestamping (find examples search for: NI-TIO). The measure buffered pulse VI measures the time between 2 digital edges and builds an array of those intervals as they occur.
Also, what will trigger the timstamping event? A digital pulse? Do you need to trigger at a particular voltage level?
Triggering at a set voltage level could be tricky. It might be important which data acquisition card you are using.
For further info search at ni.com:
http://search.ni.com/?col=alldocs&layout=TechResources&ql=a
A
lso, if you can, call NI at (800)433-3488 in the US. Documentation is limited for counter/timer applications. But, the engineers at NI can help you figure out how to get going on the phone.
Mike -
Hi,
What is the best way to create large XML in pl/sql?? and to read large XML from CLOB procedure parameter?????
ThanksUse the internal XML-structures of the database, such as XMLType, XMLElement, XMLForrest. Have a look at the XMLDB-documentation.
-
Automate create xml with HTML blocks
Hi,
I have to base on certain trigger, database query result
create an XML file.
In the XML file I'm passing an HTML page. I have the HTML
page saved on the
local server.. page1.html, page2.html etcs..
Any suggestions on how I can do this would be greatly
appreciated. This will
need to be an automate process... which I can do.. but the
actual creating
the XML file, I'm not sure about.
Thanks in advance!Thanks for your reply... the XML that i need to create will
be like this?
<emailMessage>
<messagetype>Welcome</MessageTpye>
<Subject>Welcome</Subject>
<MessageContent>
<![CDATA[<!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 http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>test</title>
</head>
<body>
welcome to our site<br /> you are blah blah<br
/><br />
<p>blah blah</p>
<table><tr><td>whatever</td></tr></table>
</body>
</html>
]]>
</MessageContent>
</emailMessage>
The part thats in the CDATA are now indivual html files so i
want to take
the content of that html file and put it in the CDATA. i'm
not sure if
that's the best way to do it though... might be better to
store the HTML in
the DB and then write it out from there???
SUggestions?
"coffeedrinker56" <[email protected]> wrote
in message
news:[email protected]...
> I'm not certain that I understand what you're asking.
Creating an XML file
from
> a database is pretty easy stuff so I'm undoubtedly
misunderstanding the
> question(?):
> <cfquery name="abc" ...>
> Exec myStoredProcedure #myparam1#, '#myparam2#'
> </cfquery>
> <cfxml var="abc">
> <page>
> <html>
> <head>
> <title>abc example</title>
> <link rel="stylesheet" type="text/css"
href="css/default.css" />
> <script language="javascript" type="text/javascript"
src="abc.js" />
> </head>
> <body>
> <form name="pageForm" method="post"
action="javascript:checkForm();">
> <table ...>
> </table>
> </form>
> </body>
> </html>
> </page>
> </cfxml>
>
> If you choose to do so, you can display the XML like:
> <cfoutput>#abc#</cfoutput>
>
> ... or you can save the XML on your server as a file
using CFFILE.
>
> If your intention is solely to display the XML, you can
also use ...
> <cfcontent type="text/xml"><?xml version="1.0"
encoding="UTF-8" ?><abc>
> </abc>
>
> ... instead of the <cfxml> and </cfxml>
tags.
>
> [I use the latter form when passing data back and forth
between the
server and
> the client.]
>
> -
Xmlns attr for element nodes creating problem with xslt
Hi all,
I m facing a small issue. I have a xml file for which i have written a xsl file to transform to another xml(demo.xml).I am not able to select the nodes which have xmlns attribute. Can u tell me what has to be done.Snapshot of files:
xml file:
<ROWSET>
<ROW>
<INDEX version="1.0" >
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
<INDEX version="1.0" xmlns:doc="http://xmlns.oracle.com/ku">
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>
</ROWSET>
</ROW>
xsl File
<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<xsl:template match="/ROWSET">
<xsl:apply-templates select="ROW/INDEX"/>
</xsl:template>
<xsl:template match="ROW/INDEX">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
O/P xml:
<?xml version="1.0" encoding="UTF-8"?>
<INDEX version="1.0" >
<SCHEMA>AD Design</SCHEMA>
<NAME>AD_FILES_N1I</NAME>
</INDEX>Got the solution ..
use these code:
<xsl:template match="INDEX|INDEX[namespace-uri(.)='http://xmlns.oracle.com/ku']">
<xsl:copy-of select="."/>
</xsl:template>
Cheers,
Dhanu -
Best way to create, modify, XML with JSP ? HELP
Hi friends,
As i am new to XML,
I know there are two APIs used for XML processing, i want to know as a begineer level, which API
is easy and good to implement XML with JSP.
1) SAX
2) DOM
i want to make a log file in XML, so on web page it will be displayed on HTML form through XSL.
Since there is good tutorial on http://www.w3schools.com/dom
but i think its HTML dom
I want XML procession through JAVA CODE , what should i use ? and give some good tutorials on XML DOM
that is used with JAVA / JSP.
HELP.
Edited by: Ghanshyam on Sep 19, 2007 3:24 PMWell what i think is you gonna checkout with your requirements before implementing any of the popular XML parsing mechnisms.
If you are intrested in faster processing @sacrifising a gud amount of your Memory,DOM is the one which you are looking for.
If you are instrested in Managing your memory and but if you are ok with sacrifising speed SAX is the best solution.it works on what is called a push technology.
and if you think either way you might have to look towards a pull parser which is StAX (Streaming API for XML Parsing)
it'd be a gr8 idea if you can go through the below article which explians about each of the parsing mechanisms
http://www.stylusstudio.com/xml/parser.html#*
coming back to helpful resources as far java is concern checkout the below link which might be of some help.
and the main thing is that all of these parser there is a defined specification you might find implementations of different vendors on this.
eg:Sun Provides one with JDK itself,same as IBM provides one,oracle does the same & so on...
your first task would be to focus on one such implementation which can cater your requirements.
DOM:*
Basic Parsing Objects / Interfaces Involved while DOM parsing:
http://www.w3.org/TR/DOM-Level-2-Core/java-binding.html
Breif Overview & few important API details:
http://www.developerlife.com/domintro/default.htm
Simple Example:
http://www.brics.dk/~amoeller/XML/programming/domexample.html
Others:
http://www.roseindia.net/xml/dom/
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPDOM.html#wp79994
http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/dom/1_read.html
SAX:*
http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232
http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/sax/index.htm
http://java.sun.com/developer/Books/xmljava/ch03.pdf
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPSAX.html#wp69937
http://www.onjava.com/pub/a/onjava/excerpt/java_xslt_ch5/index.html?page=6
StAX:*
http://java.sun.com/webservices/docs/1.6/tutorial/doc/SJSXP2.html
http://javaboutique.internet.com/tutorials/stax/
http://today.java.net/pub/a/today/2006/07/20/introduction-to-stax.html
Hope this might be of some help :)
REGARDS,
RaHuL
http://weblogs.java.net/blog/spericas/archive/2006/04/sun_stax_parser.html -
How to create HTML with tree stucture representation of xml
hi....in my application i have a xml and xslt ..i have to generate one html
that will display the xml which will have 2 display area one is for navigator and one view area
there will be a navigator which is display all the nodes with its hierrerchy
and when we click a node its all attribute value will be shown in a table
the look and feel will be same as below html where left display area denotes the nodes and the table represents the attributes of the node
http://www.free-dev.com/demo_invoice_9i.htm
can any body help me on that how i will do it?? any similar help link to proceed.....pls give me the suggesstion how i will proceedYou can do that in Java iteself. Using the logic of creating a tree structure dynamically. (If you dont want to make it as complex, check out web for creating tree structure )
In the below link an articles talks about creating tree structure using DOM in JAVASCRIPT.
http://www.google.co.in/search?hl=en&q=HTML+parser+in+vb6&meta=
If you want to enhance tree struc. try in dynamicdrive.com... -
Help in creating XML documents in ABAP using XI in new version ECC6.0
Hello All:
I am pretty comfortable with XML and XSLT but new to XI. Is there a way of creating XML documents in ABAP using XI in new version ECC6.0? Please provide me with any links or any information you may have. All the answers will be rewarded.
Thanks.
Mithunhi,
U cant create XML data in ABAP.
to send the data to the XI, u have to use the IDOC or RFC FM, from there IDOC or RFC adapters will read the data in the same format and these adapters will convert the data in to XML .Bcoz XI understand only XML data.
from there XI will process and route them to Destination, by using anthor adapter.
here u can use file adapter if u want data in file foramat from the IDOC or RFC .
So XI is the integration tool only.
reward points if helpful
ragards
sreeni -
Create XML file from ABAP with SOAP Details
Hi,
I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
<xsl:template match="/">
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
<CUNS:HeaderInfo>
<CUNS:InterfaceTypeId>10006</InterfaceTypeId>
<CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
<CUNS:SchemaVersion>1.0</SchemaVersion>
<CUNS:DateTime>sy-datum</DateTime>
</CUNS:HeaderInfo>
</SOAP:Header>
<SOAP:Body>
<xsl:copy-of select="*"/>
</SOAP:Body>
</SOAP:Envelope>
</xsl:template>
</xsl:transform>
In ABAP program, I have written below code for calling above Transformation.
call transformation ('Z_ID')
source tab = im_t_output[]
result xml xml_out.
call function 'SCMS_STRING_TO_FTEXT'
exporting
text = xml_out
tables
ftext_tab = ex_t_xml_data.
Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
Is there any easy way to create the XML file in CALL Transformation. Please help.
ThanksTry ABAP forum, as it seems not to be PI related.
Maybe you are looking for
-
My pages in Foxfore are overlaying one another which is normal but you cannot get back to the previous page. An example is if I have a page opened in a program and open something totally different it replaces the first page and I cannot reduce the si
-
Replace Materialized View with Flashback?
I'm building a Data Warehouse with the following: 1. Tables populated throughout the day using CDC from the Application DB 2. MVs on those tables to keep a daily snapshot of the tables for reporting. 3. End users access the data through views with VP
-
Hi, I am given below the list of fields related with Materials. TDID - Text ID TDSPRAS - Language Key TDFORMAT - Tag Column TDLINE - Text Line These fields I find the table LTX1_TMP. I need to know in which materila view these fields exist ? Thank
-
Need assistance with Flashing Question Mark
I recently bought a used MacBook Pro. The computer is in excellent shape, and nothing physically wrong with the computer at all. The MBP came with OSX already installed and running, and also had Boot Camp and Windows XP running on it as well. Since I
-
Hi all of you, We are working in CRM 5.0 ICWC My issue is with the SRVTHEAD.HTM view in the service ticket, this is the error: Exception CX_SY_MESSAGE_IN_PLUGIN_MODE occurred "Check the part of the source code where the exception was triggered in tra