Questions tagged [saxparser]

SAX (Simple API for XML) is an event-based parser for XML documents.

SAX is an alternative model to DOM for processing XML documents. Where DOM works on the document as a whole, SAX works piece by piece.

935 questions
4
votes
1 answer

How to read xml sax parser in android

I have this code, this is working, but problem is in this example.xml file,In this file single value single line is accepted. (value>Northland College, 1411 Ellis Avenue, Ashland, Wisconsin) If we gave multiple line it will take only a…
Kumar
  • 623
  • 3
  • 6
  • 16
4
votes
1 answer

Saxon in Java: Specify SAX Parser

Looking in the Saxon documentation there is a "-x:className" flag on the command line for specifying a particular SAX parser for use during the application of an XSLT. How does one achieve this programmatically? I'm using the s9api right now in my…
Random Human
  • 946
  • 1
  • 14
  • 31
4
votes
2 answers

Is there a way to use the Visitor pattern using a SAX Parser?

I'm curious about this: if I need to use a Sax parser to boost up efficiency (it's a big file). Usually I use something like this: public class Example extends DefaultHandler { private Stack stack = new Stack (); public void startElement…
dierre
  • 7,140
  • 12
  • 75
  • 120
3
votes
2 answers

Sax Parsing in encoded tag

I have xml Like:
]]> …
3
votes
4 answers

Can I somehow tell to SAX parser to stop at some element and get its child nodes as a string?

I have pretty big XML documents, so I don't want to use DOM, but while parsing a document with SAX parser I want to stop at some point (let's say when I reached element with a certain name) and get everything inside that element as a string.…
Fedor
  • 1,392
  • 1
  • 17
  • 30
3
votes
2 answers

Netbean not responding when using Saxp read and hibernate save a lage database

My project parse xml file from dblp , it about 1Gb to save in ORM database , so i use SAXP for reading imformation like (paper'author, paper'infomation ......) and use Hibeanate to save data in to database : Step 1: Use SAXP read a element like…
tiendv
  • 2,307
  • 7
  • 23
  • 34
3
votes
4 answers

Android SAXParser, parse into array and get child nodes

I'm working on a small app that uses and xml file to print an ArrayList of chapters which in turn points to a specific html file. I used this tutorial to get me started:…
Magnus Grönberg
  • 119
  • 1
  • 12
3
votes
0 answers

How do I simply parse a public Google calendar?

I have been able to parse the events from a Google calendar for a specific date using the AndroidSaxParser for the rss format. However, there are several extra pieces of information I cannot seem to seperate, like beginning and ending times. I end…
user967514
  • 61
  • 1
  • 4
3
votes
2 answers

Webview is not showing Html Properlly

I am new in android development. Please check this url - http://mobileecommerce.site247365.com/admin/catdata.xml Please check handout's (Cat_name) cat_desc it is not showing properly in android webview. I don't know why, can anyone help me or…
arpit
  • 555
  • 1
  • 7
  • 25
3
votes
1 answer

SAXParser returns wrong characters

I currently analyze an issue where an additionally character appears in the data provided by the characters() method called from SAXParser. This happens on a huge file (> 800MB) and the data in the element is a large JSON object (> 40k). Slightly…
Andreas Mueller
  • 201
  • 4
  • 13
3
votes
1 answer

Fatal error : Character reference "&# org.xml.sax.SAXParseException;

There is  Any tag in my xml request having '' characters in value. Without these characters my code works perfectly,but in some cases i have these characters. It gives me following error [Fatal Error] :144:28:…
TejpalBh
  • 427
  • 4
  • 13
3
votes
1 answer

Android parsing an xml with saxparser

I am trying to parse an xml file withSaxParser on Android. This is my xml file:
michele
  • 26,348
  • 30
  • 111
  • 168
3
votes
2 answers

Java Sax XML Parser, parsing custom "values" within XML tags?

I haven't worked much with XML before so maybe my ignorance on proper terminology is hurting me in my searches on how to do this. I have the code snippet below which I am using to parse an XML file like the one below. The problem is that it only…
Rick
  • 16,612
  • 34
  • 110
  • 163
3
votes
1 answer

TransformerConfigurationException: Cannot set the feature for Transformer

i'm getting below error while setting the feature for TransformerFactory. javax.xml.transform.TransformerConfigurationException: Cannot set the feature 'http://apache.org/xml/features/disallow-doctype-decl' on this TransformerFactory. at…
Manjunath H M
  • 818
  • 1
  • 10
  • 25
3
votes
1 answer

How to get XML using AsyncTask and PublishProgress

I parse XML data and put it into an object. This takes fairly long and I have decided to run it in the background using AsyncTask. My code is almost exactly like this example: How to get XML using AsyncTask and Timer? The difference being that I…