JSR-173: Streaming API for XML (StAX)
http://www.jcp.org/en/jsr/detail?id=173
"The Streaming API for XML (StAX) is a Java based API for pull-parsing XML."
BEA is the spec lead.
http://www.xml.com/pub/a/2003/09/17/stax.html
Similar Messages
-
StAX :streaming API for XML
hi
I would like to know about stAX and how it is better over the earlier approaches like SAX and DOMhttp://www.xml.com/pub/a/2003/09/17/stax.html
-
Question about Java API for XML schema?
Hello, everyone!
I am looking for a java api for XML schema. I hope the API is capable for parsing the structure of element
or complextype declarations in XML schema. So for example, if I specify a name of an element or
complextype defined in a schema, the name, dataype and other constraints of contained child elements can be returned.
Does anyone know if there exists such a paser?
Thanks very much!An implementation of DOM Level 3.
-
hi,
can anyone tell me whether there is any Java APIs for creating XML file( similar to the one used for parsing).
thx in advance,
-Soni.Hi,
you can try the org.apache.xml.serialize.XMLSerializer which is included in the Apache Xerces Package (http://xml.apache.org/xerces). This Class allows you to serialize a org.w3c.dom.Document to a OutputStream which can be a FileOutputStream.
Check out this code:
OutputFormat format = new OutputFormat();
format.setDoctype("mapping","mapping.dtd");
format.setEncoding("ISO-8859-1");
format.setLineWidth(100);
XMLSerializer ser = new XMLSerializer(new FileOutputStream(f),format);
ser.serialize(doc);
Rgds,
Sebastian -
What is the best api for xml parsing?
I think that api comes with j2se is not that good for xml parsing. is there any open source api which is simple,easy and powerful,
JArsenic wrote:
Hey I feel XMLBeans would be a optimal solution for XML parsing as I provides you a whole set of methods to parse your XML tags as Java Objects. And you may download XMLBeans @ http://xmlbeans.apache.org/.
What advantage would that have over JAXB? It already can do all that and is built into Java itself, so you don't need a separate download.
Also: mapping XML to Java beans is a very specific way of handling XML and is definitely not "the best" in all situations.
For similar quest you may reach @ [somesite]Please, no advertisement here, read the Code of Conduct that you agreed on singing up with this page. -
Any API for XML-based JAAS Provider management
Hi, All:
I am working on creating a realm based on jazn-data.xml, it is a XML-based JAAS provider. the jazn.jar shell seems to provide utilities to manage a realm. I am just wondering if there is any API available for XML-based JAAS Provider management.
The package com.evermind.security oracle.security.jazn oracle.security.jazn.realm seems to be the proper API. However, accoring to the API doc, it seems that the API can not directly work for jazn-data.xml, any body have sugguestions?
I'd really appreciate your help.Hi,
you should look towards jGuard (www.jguard.net) which enables easy JAAS integration into j2ee webapps across many applications servers(including OC4J, tomcat, jetty, jonas, jboss ...).
it adds many features including a taglib, some convenient loginmodules(CRL, OCSP, JNDI), and so on....
cheers,
Charles(jGuard team). -
ABAP API for XML Validate(by schema)
Hi
Encountering this problem, find out ABAP XSLT Processor API to transform a xml file, need to validate it against predefined schema, but have not find out proper ABAP API to take this validate task. Could anybody once meet such kind of problem? will be much appreciated gettting your reply!I think I will just do the work in Java Webdynpro and use the KM API. It is a pity because I would much rather do it in ABAP Webdynpro, it just seems like nobody has really done it or documented it well...
Thanks anyway
Lynton -
JAVA API for XML Web Services (JAX-WS), version 2.0.
i read the article "Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1 By Robert Eckstein and Rajiv Mordani, September 2006 " and i was impressed by it.
I tried to implement it on NETBEANS 5.5 and i only changed the package name from HELLO to wsPOJO
i got the following error
Exception in thread "main" Server Runtime Error: class: wspojo.jaxws.GetArea could not be found
at com.sun.xml.ws.transport.http.server.HttpEndpoint.publish(HttpEndpoint.java:267)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:85)
at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:57)
at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
at wspojo.CircleFunctions.main(CircleFunctions.java:29)
if any one can help.
Thanks in advance.Try your question here,
http://forums.java.net/jive/forum.jspa?forumID=46 -
Hi,
Can you please let me know when java mapping with STAX will be supported in Netweaver XI?
Regards
SudhirHi Sudhir,
STAX is Stream API for XML. It works similar to SAX but is a pull based model. It can also work with multiple XSD's...
XI support of STAX will moslty be supported when XI supports Java EE 5. We can say that this will be supported very soon...
http://www.xml.com/pub/a/2003/09/17/stax.html presents the overview of STAX.
Hope this helps
Regards
Kiran.. -
Any practical help about XML API for databases
HI friends,
I have a problem, i want to connect to my Database using JSP but by using XML api for database. I want to MAP my database tables, rows columns as xml elements to make it more flexible. Anyone who had practicaly worked on it, please help me out.
I am waiting for a quick response.
Thanks for any help in advance,
Yours Truly,
Khawaja Salman SarfrazSome databases have a feature that allows you to output the result of a query as XML. But that's not standard SQL, and it probably varies from one DB to the next. Look up the documentation for your DB for more information.
-
What is the good voice xml api for java
dear buddies,
what is the best voice xml api for java? has somebody comeacross and work involving this, i would like to hear more about this
thanks
KuhaMaybe the VXML forum is a better place: http://www.voicexml.org/
Good luck. -
APIs for Retrieving properties from portalapp.xml
Hi all,
Can anyone tell me Is there any Java/Portal APIs for retrieving properties from portalapp.xml as well as from manifest.mf.
Help wud be highly appreciated.
Regards,
KarthickHi Karthick,
If you want to access the manifest file, you could do something like this:
import java.io.File;
import java.io.FileInputStream;
import java.util.jar.Manifest;
import com.sapportals.portal.prt.runtime.IPortalRuntimeResources;
import com.sapportals.portal.prt.runtime.PortalRuntime;
File privateResoucePath = PortalRuntime.getRuntimeResources().getLocation(IPortalRuntimeResources.LT_PRIVATE_RESOURCES);
File parPath = new File ( privateResoucePath, "HelloWorldProject" ); // name - par file name without the ".par" extension);
if ( parPath.exists()!=false ) {
try {
File manifestPath = new File ( parPath, "META-INF" );
FileInputStream fis = null;
fis = new FileInputStream(new File(manifestPath, "MANIFEST.MF"));
Manifest mf = new Manifest(fis);
java.util.jar.Attributes attr = mf.getMainAttributes();
if (attr!=null) {
return attr.getValue("Specification-Title");
else {return null;}
} catch (Exception e) {
e.printStackTrace();
return "ERROR"+e.toString();
META-INF is top level folder.
Hope this helps.
Daniel -
� XML Api for 1.3 java version?
Hello friends!! I need a little help...
I always have work in my programms with jbuilder, using java 1.3 version. The programs after will be installed in pc's where have de jre 1.3 or the 1.4 java version.
I need now to do a module wich need to work with XML.. exactly read xml only, for take some information.
I tried to use an famous api i have discover by "google":
import org.xml.sax.*But it not works in java 1.3!! Only for 1.4 or supperior...
Do you know any api for work with xml compatible with 1.3? I've tried to look this for google.com but it's a very complicated for me...
Thanks, all i need is the name : )If you need to work with java 1.3 you can use the Xerces XML parser
http://xerces.apache.org/xerces2-j
You only have to download it and add the jars to your classpath (see the xerces documentation for details)
Xerces-J also contains the org.xml.sax.* package
http://xerces.apache.org/xerces2-j/javadocs/api/index.html -
Where to find - javadocs for XML Publisher' API
The XML Publisher User's Guide section, called Implementation and Developer's Guide->Application Layer APIs, has examples of API's for inserting Templates and Data Definitions.
Unfortunately, XML publisher manual only provides a bunch of
samples and not the detailed javadocs, that wee need.
Where could we find javadoc for XML Publisher?Hi
You did not specify which version you were on but the java docs are linked from the relevant About Doc for each release:
Release 5.5 Note 316447.1
Release 5.0 Note 295036.1
Release 4.5 Note 269605.1
Just search for 'javadoc' in these docs for the link
Regards, Tim -
Hi
Does 'Java technologies for Web services" have APIs for parsing WSDL files? Are there any open source implementations for parsing WSDL files.
Thanks
PradeepAt present there is a JSR in the middle of being reviewed which is an API to handle WSDL files. JSR 110 gives all the important details. It will hopefully be release soon. What you could do is because WSDL is a xml-compliant you can produce your own xml parser specific to WSDL using JAXP.
HTH
Maybe you are looking for
-
[nForce] Lets solve this 1394 problem once and for all.
Hi guys, For the past 3months I have been trying to connect my Panasonic GS150 to my comuter in order to use Avid dvxpress pro. I have the problem of when I connect the camera to the computer, nothing happens. I also have this problem with my Ip
-
I have a iPad and a iPhone. I am logged into the same Apple ID on both devices. Every time I download something on my phone it automatically downloads on the iPad how do I turn this off?
-
HP Slate 500 - Issue with Touchscreen
Hello, I recently inherited an HP Slate 500 tablet pc, and am having some difficulty with the touchscreen... The PC boots up just fine, and has no issues with responding all the way through the start-up process. The touchscreen becomes unrespon
-
HT201413 i put in a pass word and cant remember it i cannot get into my ipod
I placed a pass word on my Ipod to stop my sister using it and I have been away and did not take it with me now I cant remember it How can i get rid of the box's to enter my ipod so i can start and use it everytime i try and put in what I thought it
-
Hello, I'm trying to write a JSP that lists folders, beginning with a starting folder, from the Knowledge Directory. I eventually want to create hrefs on those folders that load the documents they contain in another portlet using Adaptive Portlets. I