xmlparser

How do I print a groovy Node with namespace preserved?

When I use this code to output some XML I parsed (and modified) with XmlParser XmlParser parser = new XmlParser() def root = parser.parseText(feedUrl.toURL().text) def writer = new StringWriter() new XmlNodePrinter(new PrintWriter(writer)).print(root) println writer.toString() the namespace declarations on the roo...

iPhone Development - XMLParser vs. libxml2 vs. TouchXML

I cannot find comparison of these parsing technique. Which one is most commonly used? Regards. Mustafa ...

Using XOM with NetBeans

I am attempting to install XOM so I can use it in my Java apps. The only problem is, I don't know where I can place it so NetBeans can find it. It would make sense to put it where the other .classes files are, but I can't seem to find them either. The README file for XOM says to install it to the Classpath variable, but I don't know wha...

MSXML parser in Java

Hi: Our application is written in VC++ and we are using MSXML for parsing. Now we want to pass MSXML document object from our application to a java application for processing. How can I achieve this? Does java (swing) support MSXML or MSXML objects? We are using DOM parser. Any help appreciated, Thanks, KK ...

How do I convert XML into a java value object?

What kind of open-source libraries are available to convert XML into a java value object? In .Net, there is a way to easily do this with xml serialization and attributes. I would imagine there some parallel in java. I know how to do this with a DOM or SAX parser, but I was wondering if there was an easier way. I have a predefined XML ...

TransformerFactory in BlackBerry ?

How do I use TransformerFactory in BlackBerry for XML creation? Java has TransformerFactory method. But BalackBerry does not. ...

Speed and XML Parsing in .NET - Serialization vs XML DOM vs ?

I have done XML parsing before but never on a massive scale. If I'm working with many documents similar to this format: <?xml version="1.0" ?> <items comment="something..."> <uid>6523453</uid> <uid>94593453</uid> </items> What is the fastest way to parse these documents? 1) XML DOM 2) XML Serialize - Rehydrate to a .NET Object 3) ...

C# - Parse malformed XML

I'm trying to load a piece of (possibly) malformed HTML into an XMLDocument object, but it fails with XMLExceptions... since there are extra opening/closing tags, and malformed XML tags such as <img > instead of <img /> How do I get the XML to parse with all the errors in the data? Is there any XML validator that I can apply before pars...

jQuery XML Parsing/Traversing

Hello guys, I have the following XML- <rows> <row id="5"> <cell>Item1</cell> <attrs> <attr> <id>1</id> <type>CheckBox</type> <values> <value> <id>10</id> </value> <value> <id>11</id> </value> </values> </attr> <attr> <id>2</id> ...

Javascript XML Parser

Hi, We've sets of webservices and we have to make request on clientside (sending request to getting response in a jason format, and parsing XML document through - having XSLT support would be great). We need a Javascript library which will be independently responsible to all the above work and should handle browser compatibility issues...

How will a browser differentiate between XHTML 1.0 and XHTML 5?

By my understanding, neither XHTML (1.0, 1.1) nor XHTML 5 required a DTD. If this is true, how will a browser differentiate between the two? I can only assume that when the browser vendors support (X)HTML 5, all XHTML will be interpreted under XHTML 5 rules (assuming XHTML 5 is a superset of XHTML 1.0). Is this how it's going to work? ...

getting my dictionary tree from my xmlparser class.. to my drilldowntableappdelegate file

Hello all , I seem to have a probably newbie problem but here it is. How do I get my dictionary from my parser class , which has building a tree for a drill down table back to my drilldowntabledelegate class. my app looks something like this. @implementation DrillDownAppAppDelegate @synthesize window; @synthesize navigationControl...

Nokogiri oddness?

A sample of some oddness: #!/usr/bin/ruby require 'rubygems' require 'open-uri' require 'nokogiri' print "without read: ", Nokogiri(open('http://weblog.rubyonrails.org/')).class, "\n" print "with read: ", Nokogiri(open('http://weblog.rubyonrails.org/').read).class, "\n" Running this returns: without read: Nokogiri::XML::Document...

iPhone help on using XMLParser and UI while waiting for results

Hi, can someone provide a little guidance on the best way to handle iPhone UI and processing while parsing a SOAP message? Here is the context: I have an app that allows a user to select a car (from a list of cars) they are interested in viewing. When they pick a car, I push a carDetails viewcontroller that shows the car detail categ...

which is the most efficient XML Parser for C++ ?

I need to write an application that fetches element name value (time-series data) pair from any xml source, be it file, web server, any other server. the application would consume the XML and take out values of interest, it has to be very very fast (lets say 50000 events/seconds or more) also the XML document size would be huge and frequ...

Umlaut in Java SAX Parser

Hello everybody! I am currently having trouble with German umlaut values in a XML document I received. It displays / saves the value as a "ü" instead of a "ü". The XML Encoding is set to UTF-8 which should be capable of displaying umlauts. Also I couldn't find any option to set a locale on the SAX parser. Is there any other way I c...

is it possible to reuse appdelegate in applicationDidFinishLaunching ?

Hi all, I am developing a tab bar application. I have five tabs in it. For each tab i have separate navigation controller. For each tab's table View I want to load data from a web service. I can do so for one tab by making a separate xmlparser class initializing it with appdelegate then call it in the applicationDidFinishLaunching ....

Cannot parse poorly formed XML

I've been trying to parse this feed. If you click on that link, you'll notice that it can't even parse it correctly in the browser. Anyway, my hosting service won't let me use simplexml_load_file, so I've been using cURL to get it then loading the string into the DOM, like this: $dom = new DOMDocument; $dom->loadXML($rawXML); if (!$dom...

NSXMLParser foundCharacters method!?

Hey! i'm using the NSXMLParser to fetch a String from xml. I'v created a class to store the data with synchronized variables. To get the text between the elementName i use the foundCharacter function. And to store the Strings i use a MutableString *. When i find the String and print everything is correct but when i'm done the two differ...

How to generate an *exact* copy of an XML document with resolved entities

Given an XML document like this: <!DOCTYPE doc SYSTEM 'http://www.blabla.com/mydoc.dtd'&gt; <author>john</author> <doc> <title>&title;</title> </doc> I wanted to parse the above XML document and generate a copy of it with all of its entities already resolved. So given the above XMl document, the parser should output: <!DOCTY...