stax Questions

2

Solved

I expected to find XMLStreamReader to be AutoCloseable in Java 7. However, that is not the case. Is there a technical reason why StAX reader/writer interfaces were not (or should not be) retrofitte...
Tuberosity asked 10/5, 2012 at 15:24

2

Solved

I'm reading a XML file same as below: <ts> <tr comment="" label="tr1"> <node order="1" label="" /> </tr> </ts> And I expected the below code prints out three e o...
Meliorism asked 25/8, 2012 at 17:16

2

Solved

I have a woodstox and and java SE 1.6 stax parser in the classpath but woodstox seems to get selected by default. However in certain cases I'd like to use the default Java stax parser. Is there any...
Lophobranch asked 22/2, 2011 at 22:8

3

I am using StAX XML stream writer to write the XML file. It writes all the data in a single line. I want all the tags to be indented instead of a single line.
Magill asked 1/6, 2010 at 11:9

1

Solved

I am trying to convert some code from using DOM (via jDOM) to use StAX instead. At the same time I am migrating from DTD-based validation to XSD_based validation. Oh, and just for good measure I am...
Jenness asked 18/5, 2012 at 13:19

2

Solved

I am currently developing a web app that uses Jersey for REST. I use maven, and both stax-api-1.0.1 and 1.0.2 are pulled into my web-inf/lib. I thought the stax api were a aprt of JDK1.6? Why are ...
Columbia asked 10/9, 2011 at 19:24

1

Solved

I am using StAX and I want to add a schema location to my xml file. What is the best way to achieve this?
Award asked 27/1, 2012 at 10:31

2

Solved

I try to parse an XML file with a StAX XML-parser. It give me START_ELEMENT and END_DOCUMENT events but no ATTRIBUTE events. How can I receive ATTRIBUTE events with the StAX parser? My XML: <...
Immunity asked 15/9, 2011 at 18:29

3

I want to read XHTML files using SAX or StAX, whatever works best. But I don't want entities to be resolved, replaced or anything like that. Ideally they should just remain as they are. I don't wan...
Phalangeal asked 12/9, 2011 at 9:42

2

Solved

I want to use StAX API implementation in android 1.6 and above devices. Are there any implementations out there ? I cannot use the jar file directly since it gives issues regarding inner class. If ...
Kitchenmaid asked 21/4, 2011 at 0:48

1

Solved

Should be easy and obvious but I cant find a way - the XMLOutputFactory accepts anly OutputStream, Result or another Writer to generate a new XMLStreamWriter. What I have at hand is an XMLStreamRea...
Ancon asked 5/4, 2011 at 9:14

4

Solved

somewhat related to: libxml2 from java yes, this question is rather long-winded - sorry. I kept is as dense as I felt possible. I bolded the questions to make it easier to peek at before reading t...
Stasiastasis asked 29/9, 2010 at 19:38

3

Solved

I'm currently trying to read in an XML file, make some minor changes (alter the value of some attributes), and write it back out again. I have intended to use a StAX parser (javax.xml.stream.XMLSt...
Misquote asked 14/8, 2008 at 2:22

8

Solved

Here is an example XML (case 1) : <root> <Item> <ItemID>4504216603</ItemID> <ListingDetails> <StartTime>10:00:10.000Z</StartTime> <EndTime>10:00...
Duologue asked 20/7, 2010 at 19:2

7

Solved

I am trying to write XML data using Stax where the content itself is HTML If I try xtw.writeStartElement("contents"); xtw.writeCharacters("<b>here</b>"); xtw.writeEndElement(); I ge...
Wife asked 8/6, 2010 at 10:15

3

Solved

I am attempting to receive a stream of XML events over a Java NIO channel. I am new to both NIO and StAX parsing, so I could very easily be overlooking something :) My search has led me to several...
Stewpan asked 25/6, 2009 at 18:38

2

Solved

I have problems again with my Mac running Java 1.5.... where do I get a .jar file that has javax.xml.stream.XMLInputFactory ? I want to use StAX but don't know how to get it set up right. I can'...
Tedious asked 23/8, 2009 at 18:53

4

Solved

My quick search reveals the reference implementation (http://stax.codehaus.org), the Woodstox implementation (http://woodstox.codehaus.org), and Sun's SJSXP implementation (https://sjsxp.dev....
Titanism asked 23/9, 2008 at 14:15

© 2022 - 2024 — McMap. All rights reserved.