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
3
votes
1 answer

Draw path from KML file on Google Map V2

I'd like to know how can I show a route contained in a KML file on Google Maps V2? I'm able to extract the values of the filed "coordinates" in the KML file, but I don't know why my class doen't show the path into the map component. This is my…
starscream
  • 741
  • 2
  • 11
  • 23
3
votes
1 answer

Why I'm getting this, org.xml.sax.SAXParseException, exception?

I'm working in OpenBravoPOS v2.30, anyone knows about it? It's a POS with free licence. I'm trying to improve it, but in one of my test computers, it fails. Before all, I'd read about similar cases in stackoverflow, but they were helpless. Here's…
DavidM
  • 570
  • 4
  • 21
3
votes
1 answer

SAX Using Multiple DefaultHandler Extensions

The issue I am having is I want to parse out 1 XML document using extensions of the SAX defaultHandler class. When using just one handler I can parse out XML and assign different tags to properties of an object (see domain and area). Once I have…
eric MC
  • 766
  • 2
  • 10
  • 36
3
votes
3 answers

Unknown UTF-8 code units closing double quotes

My problem is as follows. I am reading in an XML-file whose text nodes partially contain the UTF-8 version of opening and closing double quotes. The text is extracted, shortened to 3999 bytes and put into a new XML-Format, which is then saved as a…
LuigiEdlCarno
  • 2,410
  • 2
  • 21
  • 37
3
votes
2 answers

SAX parsing and special characters

I want to parse some data from an xml file using SAX parser. My xml is as follows: Pies & past Fruits In order to parse this data I extend DefaultHandler. The output after parsing is: cat 1 =…
giorgos_412
  • 35
  • 1
  • 3
3
votes
1 answer

Fatal Error while parsing web page with javax.xml.parsers.DocumentBuilder

I'm writing a program which parses a web page (one which I don't have access to so I can't modify it). First I connect and use getContent() to get an InputStream for the page. There's no trouble there. But then when parsing: public static int[]…
dspyz
  • 5,280
  • 2
  • 25
  • 63
3
votes
2 answers

SAXNotRecognizedException for feature 'http://apache.org/xml/features/standard-uri-conformant'

Anyone know why I'm hitting below exception for the following code. I'm using Java 6. final XMLReader reader = XMLReaderFactory.createXMLReader(); reader.setFeature("http://xml.org/sax/features/validation",…
DarVar
  • 16,882
  • 29
  • 97
  • 146
3
votes
1 answer

Looking options for xalan TransformerFactoryImpl

I m using SAX based XML parser, things are working fine but I'm getting the following warning message in log com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl is Sun proprietary API and may be removed in a future release …
Chinmay
  • 180
  • 1
  • 2
  • 13
3
votes
2 answers

SAXParser Failing for a specific data

I am trying to parse an XML file that looks like this: Abdul kalaam Inspirational Talk
PavanMysore
  • 189
  • 3
  • 12
3
votes
1 answer

what does the arguments of startelement() method in SAX parser refer to

public void startElement(String uri, String localName, String qName, Attributes attributes) can anybody please give a simple example as to how localname is different from qName and what exactly is the uri string ? And yes before…
Nav
  • 10,304
  • 20
  • 56
  • 83
2
votes
3 answers

Error : String cannot be resolved to a type

I am trying to get my sltag value but I got some errors in my code. Please help me solve this error. I have one XML file. I want to display that XML file node value one spinner and child node value value one tab etc... so I am using a SAX…
balaji
  • 1,555
  • 5
  • 26
  • 49
2
votes
4 answers

How to make SAXParser ignore escape codes

I am writing a Java program to read and XML file, actually an iTunes library which is XML plist format. I have managed to get round most obstacles that this format throws up except when it encounters text containing the &. The XLM file represents…
Scott
  • 99
  • 1
  • 11
2
votes
3 answers

ParseException: At line 1, column 0: no element found SAXException in android

In one of my android app when I am trying to parse an xml file from some url , sometimes i get ParseException: At line 1, column 0: no element found SAXException but the strange thing is I dont get this exception always means when I refresh the page…
Dinesh Sharma
  • 11,533
  • 7
  • 42
  • 60
2
votes
3 answers

xml parsing using SAXParser

I am working with one application in which SAXparsing is placed. To get the City & State name from latitude and longitude I'm using Google API. Google API url google api I want to get long_name short_name & type of header Tag address_component . All…
Hitarth
  • 1,950
  • 3
  • 27
  • 52
2
votes
3 answers

Control code 0x6 causing XML error

I have a Java application running which fetches data by XML, but once in a while i have some data consisting some sort of control code? An invalid XML character (Unicode: 0x6) was found in the CDATA section. org.xml.sax.SAXParseException: An invalid…
JavaCake
  • 4,075
  • 14
  • 62
  • 125