sax Questions

4

Solved

In Java, Handler class contains method which name is startElement.this method has prototype: public void startElement(String uri, String localName, String qName, Attributes attributes) I have rea...
Judd asked 24/2, 2012 at 17:0

3

I try to get results from a webservice in the following way. List result = new Vector(); LibrarySearchRequest request = new LibrarySearchRequest(queryString); LibrarySearchServicePortTypeProxy pro...
Joab asked 18/4, 2013 at 18:11

9

Solved

I've been parsing XML like this for years, and I have to admit when the number of different element becomes larger I find it a bit boring and exhausting to do, here is what I mean, sample dummy XML...
Spurn asked 25/3, 2013 at 23:24

1

Solved

I'm trying to remove all the project1 nodes (along with their child elements) from the below sample xml document (original document is about 30 GB) using SAX parser.It would be fine to have a separ...
Gamache asked 19/2, 2017 at 8:43

2

I’m trying to find a way to precisely determine the line number and character position of both tags and attributes whilst parsing an XML document. I want to do this so that I can report accurately ...
Hunger asked 31/1, 2017 at 22:2

2

Solved

Hi I want to get a list of all tags in an XML, and if some tags carry particular attribute I also want the value of the attribute. For example here are one specific examples, <?xml version="1.0...
Phelps asked 11/10, 2012 at 3:0

4

Solved

In my code I convert some styled xls document to html using openoffice. I then parse the tables using xml_parser_create. The problem is that openoffice creates oldschool html with unclosed &l...
Idiom asked 28/2, 2010 at 15:37

3

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 <enclosure len...
Lagomorph asked 2/7, 2012 at 4:50

3

I have a big XML file which I need to parse with xmlEventParse in R. Unfortunately on-line examples are more complex than I need, and I just want to flag a matching node tag to store the matched no...
Daffodil asked 24/9, 2011 at 3:14

4

Solved

Edit: My (incomplete and very rough) XmlLite header translation is available on GitHub What is the best way to do a simple combine of massive XML documents in Delphi with MSXML without using DOM? ...
Misprint asked 4/8, 2011 at 14:13

1

Solved

In order to quickly parse some large XML documents in a Delphi (2007) program, I have implemented the IVBSAXContentHandler interface and use it like this: FXMLReader := CoSAXXMLReader60.Create; FX...
Donny asked 17/8, 2016 at 8:55

4

Solved

I have some XML that I'm parsing with a SAX parser in Java. It starts with this preamble: <!DOCTYPE math PUBLIC "-//W3C//DTD MathML 3.0//EN" "http://www.w3.org/Math/DTD/mathml3/mathml3.dtd"&...
Eduard asked 13/6, 2011 at 14:32

4

I'm developing an Java application who read some data from an xml file. Trying to execute, I get this error: org.xml.sax.SAXParseException; systemId: file:/c:/myxmlfile.xml; lineNumber: 7; column...
Preengage asked 2/1, 2013 at 17:21

2

This is the Python equivalent of the Java question How to output a CDATA section from a Sax XmlHandler Neither xml.sax.saxutils.XMLGenerator or lxml.sax.ElementTreeContentHandler says anything abo...
Sampson asked 2/3, 2016 at 23:17

9

Solved

I need to parse potentially huge XML files, so I guess this rules out DOM parsers. Is out there any good lightweight SAX parser for C++, comparable with TinyXML on footprint? The structure of XML ...
Fiertz asked 17/6, 2009 at 11:53

2

Solved

What is a quick way of writing an XML file iteratively (i.e. without having the whole document in memory)? xml.sax.saxutils.XMLGenerator works but is slow, around 1MB/s on an I7 machine. Here is a ...
Myrmecology asked 21/10, 2013 at 18:58

4

Solved

I am working on an android app which interfaces with a bluetooth camera. For each clip stored on the camera we store some fields about the clip (some of which the user can change) in an XML file. ...
Varia asked 18/5, 2012 at 7:42

6

Solved

Streaming xml-parsers like SAX and StAX are faster and more memory efficient than parsers building a tree-structure like DOM-parsers. SAX is a push parser, meaning that it's an instance of the obse...
Clausen asked 22/9, 2011 at 21:36

2

Solved

Currently im trying to use a SAX Parser but about 3/4 through the file it just completely freezes up, i have tried allocating more memory etc but not getting any improvements. Is there any way to ...
Coblenz asked 11/10, 2014 at 2:57

2

Solved

Being new to XML parsing I'm trying to understand the different technologies. There is a confusing amount of different technologies for different needs: W3C-DOM XOM jDom JAXP JAXB DOM SAX StAX Tr...
Macaroon asked 5/1, 2016 at 9:55

5

Solved

When I feed a utf-8 encoded xml to an ExpatParser instance: def test(filename): parser = xml.sax.make_parser() with codecs.open(filename, 'r', encoding='utf-8') as f: for line in f: parser.fee...
Roulers asked 13/5, 2009 at 12:9

1

Solved

I have a situation where we receive a bunch of XML files on a regular basis. We have no control over them, and they do not have namespace information, and we would really like to avoid changing the...
Apodaca asked 16/9, 2015 at 15:3

3

Solved

I'm using JDOM with SAXBuilder to parse XML files, and I have a problem with a file which is throwing this error : java.net.MalformedURLException: unknown protocol: c at java.net.URL.<init>...
Fess asked 30/8, 2011 at 13:3

3

Solved

I am porting some Java code that worked fine on my desktop to Android. I have the following code segment: import org.xml.sax.InputSource; import org.xml.sax.XMLReader; import org.xml.sax.helpers.X...
Consanguinity asked 15/4, 2012 at 19:50

3

Solved

This is a simple question, but one I cannot find the answer to. I have an XSLT 2.0 stylesheet that I'm trying to process in Java. It relies on XSL elements from Saxon. My current class works fine ...
Grube asked 3/7, 2012 at 15:48

© 2022 - 2024 — McMap. All rights reserved.