xml

Parsing XML in Cocoa

Hi Everyone: Today I am looking into how to make a simple XML parser in Cocoa (for the desktop). I am thinking of using NSXMLParser to parse the data, but am not quite sure where to start. The XML file on the web doesn't have the much data in it, just a simple listing with a few things that I need to save into a variable. Does anyone...

XML or SQL?

I am just beginning to get into desktop application development, and have chosen C# to do so. After making some basic programs, I am wanting to get into more useful creations for myself. I was thinking about making a Project time tracker, as well as a password safe type program of my own. Both of these require taking in information that ...

How to send data to an API call and get it back, using zillow.com API

I am trying to get the API from a website called zillow working for me, but I am way new to web stuff. They try and explain here how to use it, but it had me lost so I looked in their forums. Someone posted an "example" there, but I can not see where their code even calls the API. Basically I need to take a form field that will be an a...

Where is the certificate of a TSA stored in XAdES-T?

In XAdES-T, the <EncapsulatedTimeStamp/>-element contains the TimeStampToken received from a TSA and not the entire TimeStampResp. But this TimeStampToken does not contain the certificate of the TSA (which can be found in the SignerInfo of the SignedData container). Where am I supposed to store this certificate in the XAdES-document? ...

Prevent DTD download when using XSLT i.e. XML Transformer

I have to process XML files that have a DTD with a XSLT in Java. The DTD is really needed because it contains the definitions of entities I use. (aside: yes, using entities for stuff that could use unicode is a bad idea ;-) When I run the transformation it downloads the DTD from the external source every time. I want it to use a XML cat...

Read XMLDocument node without reading its child nodes in C#

Sample XML <A> <B> <B1/> <B2/> <B3/> <B4/> <B5/> </B> <C> <C1/> <C2/> <C3/> <C4/> <C5/> </C> </A> Query: C# When I read the the child nodes of A it retuns nodes B & C with their child nodes. Is there any possibility so that I can get only B & C without their res...

Where can I get a list of the XML document escape characters?

Where can I get a list of the XML document escape characters? ...

How to create an XML file from MySQL Data queries?

Hello I would like to know a way to create an XML file using MySQL queries only. without using any scripting language at all. Are there any books, tutorials on this topic ? UPDATE: I would like to clear it out that I want to use sql queries which would forward XML data to a php Script. ...

Parsing multiple XML files into one or more Object-classes?

My app is made up of a TabBarController, each tab with a UITableView. On launch I parse an XML file from my server into an Object class and then display the objects in the first tableview. My question is, what do I do when I want to parse a second XML file? Currently, when doing so, the information in "XML-file-2" will overwrite the ob...

Interwoven Teamsite

Anyone had any experience with Teamsite, I could use some advice... ...

archive-like format using XML

Hi all, I'm generating some code using XSLT but the generated sources should be localized in a set of distinct files. Is there a tool/format (based on XML ?) that could be used to store the files in a jar/ar/tar-like format . I'm thinking of something like this: <?xml version="1.0"?> <archive> <file path="test/Test01.java" content-type=...

Combining XML with Reverse Paths

Hey everyone, I am looking for a way that I can query a database with multiple SQL Queries and then, once I have the results of the queries (in XML), merge the separate XML together into one XML document, using reverse paths. My reason for doing this is related to the concept of Parallel Details (same data, with different manipulations ...

Is there a way to talk to OneNote through code?

I love using OneNote, however I want more control over the locations of my notes and how notes are generated. I'm very versed in VBA and ok with Python (and those are the only languages I can code with on my machine) however I haven't found a decent way to interact with OneNote through code. I'm using OneNote 2003 which doesn't look li...

Changing XML Namespace with Scala

I am using scala to load a XML file from file via the scala.xml.XML.loadFile() method. The documents I'm working with have namespaces already defined and I wish to change the namespace to something else using scala. For example, a document has a xmlns of "http://foo.com/a" with a prefix of "a" - I would like to change the namespace and p...

Class design problem - passing a class type?

I have the following code in a method of a class: XmlSerializer serializer = new XmlSerializer(typeof(FooClass)); How do I pass into the constructor or a parameter of the class - the foo class? I think it has something to do with reflection as you can't pass as a parameter just a class name - so the following code makes some sort o...

Tidy causing bad spacing issues (JTidy)

We are using JTidy to clean up some html for sax processing. We've had a lot of trouble around spacing issues as shown in this example: Html <i>stack<span class="bold">overflow</span></i> which outputs "stackoverflow" But... Post JTidy <i>stack <span class="bold">overflow</span></i> which outputs "stack overflow" (note the new ...

Cocoon lite / XML and XSLT publishing framework

What publishing frameworks (publishing only, NOT full-blown CMS) based on XML, XSLT sitemaps and pipelines exist, are stable, active, and simpler / lighter than Cocoon? I have glanced at: mod_xslt (http://www.mod-xslt2.com/) which seemed to be exactly that, but looks all but dead, and required a complex setup, and apparently supported...

xsd wellformedness

http://www.validome.org/xml/validate/?lang=en&amp;viewSourceCode=1&amp;url=http://45143.com/finance-feed/abc.xml&amp;onlyWellFormed=1 check the url above for validator results. Line 171 in the XSD is getting truncated... feels like a stream error to me but this cant be happening as both are just rendering text files--no on the fly pars...

xsd.exe/XMLSerializer equivialent for Java ?

Is there something akin to the .NET xsd.exe for java - generating classes from a schema that you can easily de-serialize ? - or , What's the common practice for parsing and pull out/validate the content xml documents in Java ? Traversing a DOM tree and littering code with XPath queries to get the data you need seems quiet messy. ...

How do I use Perl to parse Twitter XML?

I'm using cURL to get the XML file for my Twitter friend's timeline. (API here.) Currently (though I'd be open for more suggestions) I am using Perl to parse the XML. This is my first time using Perl and I really don't know what I am doing. Currently this is my code: #!/usr/bin/perl # use module use XML::Simple; use Data::Dumper; # ...