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
-1
votes
2 answers

Android: get HTML text from XML

I have implemented in my app reading a XML. It works fine. But I want to format the text. I've tried in the XML: L-V: 10 a 20
S-D: 11 a 15
4000
But the only…
Charlie
  • 325
  • 1
  • 7
  • 22
-1
votes
1 answer

Java Dom or SAX XML Parser

Sample XML: http://localhost/download/M1.xml http://localhost/download/M2.xml
Alfaromeo
  • 379
  • 2
  • 6
  • 14
-1
votes
3 answers

How to parse this XML file and what parser to use?

I am very new to XMLParsing. It sat at work today without managing to parse a file and get it into an arrayList. My file looks kinda like this horse blabla black …
Sembrano
  • 1,127
  • 4
  • 18
  • 28
-1
votes
1 answer

Using RSS parsing library, doesn't work. App crashes

I am trying to implement very simple RSS parser using this RSS parsing library According to the implementation all i have to do is paste the sample code provided, once I import the code as a library. Steps I have taken: Download the zip file from…
f78xd23
  • 117
  • 2
  • 15
-1
votes
1 answer

Why my xml is not parsing properly?

I want to parse my xml as below. Actually I am trying to debug it, so control is not going to that School tag in the startElement() method. 1 ABC
-1
votes
1 answer

saxparser timer and asynctask

i have maybe a stupid/strange question i am new to android and java and i need some advice to understand the methods of android and how to use them i have a main activity class that looks like this extends Activity implements OnClickListener{ …
-1
votes
2 answers

Using a jProgressBar with SaxParser

My Problem is solved. Here is the code: SwingWorker class: package ths.turnier; import javax.swing.SwingUtilities; /** * This is the 3rd version of SwingWorker (also known as * SwingWorker 3), an abstract class that you subclass to * perform…
poldi
  • 31
  • 5
-1
votes
3 answers

How to get the attribute value in the SAX parser

I have use the SAXParser to read the xml format. Then the startelement method run but I have no idea how to get the url in the method. I dont know what is the solution. Thank you
user1494052
  • 47
  • 1
  • 7
-1
votes
2 answers

Nokogiri sax parsing the root attributes

Is it possible to parse and store an xml file root attributes in Nokogiri SAX parser? How do one get the id-value and expires-value in the root-element?: Text Text
user592638
-2
votes
1 answer

SaxParser issue with < character

I'm parsing an xml file with saxParser on java. My problem is that I have some rows like this: Particulates, < 2.5 um I don't report all the code but if the tag == name I set the name on my object. @Override public…
Davide
  • 75
  • 1
  • 2
  • 11
-2
votes
1 answer

org.xml.sax.SAXParseException: The parser has encountered more than "64 000" entity expansions in this document

I am parsing large XML(72MB-170K entries) file using SAX XML parser: SAXParser saxParser = saxParserFactory.newSAXParser(); SAXParser saxParser = saxParserFactory.newSAXParser(); MyHandler handler = new MyHandler(); //THIS LINE IS CAUSING THE…
Joe Richard
  • 1,520
  • 7
  • 20
  • 31
-2
votes
2 answers

java - SAXparserException: content is not allowed in prolog

I am getting exception while trying to parse an XML document. I went through many post like here and here. But still my problem not got solved. I checked i dont have any spaces too in header.I created it with notepad and i choosed encoding as utf-8…
Voonic
  • 4,667
  • 3
  • 27
  • 58
-2
votes
1 answer

Can't point saxParser to file directory

In my Eclipse project, I'm trying to parse an xml file into a String List to display in a jsp file. My parser works perfectly with this code: public class XMLReader{ public static void main(String [] args){ System.out.println(getXML()); …
-2
votes
1 answer

sax parsing in android

I have to display category name on android textview with array items.here the total category size is 5. I have wrote the below code: for (int i = 0; i < sitesList.getName().size(); i++) { name[] = (TextView)…
user2098063
  • 85
  • 1
  • 1
  • 7
-3
votes
1 answer

blackberry sax XML parsing

i am very new in blackberry, now i am trying to do XML programming, using defaulthandler in sax parser blackberry. any sample code, url or any advice highly appreciated. thanks Regards..
jaleel
  • 1,169
  • 8
  • 22
  • 46
1 2 3
62
63