xml

More than one URIResolver on a TransformerFactory?

I have an XSLT Transformer in Java (actually its Apache FOP rendering to PDF) where I have already set a custom URIResolver (for 'servlet-context:' URIs). Now I need to use another URIResolver in addition (a CatalogResolver for caching DTDs). Do I need to write my own URIResolver now that calls either of the two or is there a better w...

Efficient storage of and access to large XML files

I have a legacy binary file format containing records that we have to convert and serve to other parts of our system as XML. To give a sense of the data sizes, a single file may be up to 50 megs with 50,000 or more records in it. The XML conversion I have to work with blows this particular file up by a factor of 20 to nearly a gig. ...

XSLT Replace function not found

I am writing an XSLT transformation in which I wish to use the Replace function to do a regex match and replace. However, Visual Studio 2008 reports that 'replace()' is an unknown XSLT function. The bit of code itself is: <xsl:otherwise> <td style="border: solid 1px black; background-color:#00CC66;"> <xsl:variable...

How To Parse XML With Invalid Characters in Node Name?

So I'm trying to parse some XML, the creation of which is not under my control. The trouble is, they've somehow got nodes that look like this: <ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(MORNINGSTAR) /> <ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(QUARTERSTAFF) /> <ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(SCYTHE) /> <ID_INTERNAL_FEAT_FOCUSED_EXPERTISE_(TR...

Which XML structure makes more sense?

Without going into too much detail we are looking to use XML as meta-data to describe constraints on properties (This is a cutdown example and XSD did not support our proposed complex model), there are two options being considered, which of the following XML strucutures makes better sense? Option 1) <?xml version="1.0" encoding="us-asc...

Is XML the best data interchange format when importing large amounts of data as a scripted routine in PHP?

If I have 50,000-100,000 product skus with accompanying information, including specifications and descriptions, that needs to be updated on a regular basis (at least once a day), is XML the best way to go as a data interchange format? The application is written in PHP, and I'm thinking SimpleXML to PHP's native MySQL calls (as opposed to...

How to deserialize xml data from c# to java?

I have identical objects in both a c# server app and a java client app. The server XML serializes these objects and makes them available through a REST service. The java app downloads the data in XML format. What is the best way to deserialize the xml data to my java objects? I am currently using Java org.w3c.dom classes to parse the ...

Is there a way to upload a tableIViews contents from an xmlFile that is parsed with in the controller itself that is loading up the tableView?

Ok so heres my problem, i have to read in a list of data from an xml file which i have done, now i have to load up the title from each peice of data into the tableView's list, now this is where i need my help, ok with in my view did load method i create the connection in order to connect to the server i need to, that works fine, now my p...

Excluding methods from GWT modules

I have a class that I want to include in a GWT module. Unfortunately, it has a method that has functionality unsupported by GWT (it uses Class.isInstance in case you're curious). I do not use this method in my GWT application, but other non-GWT apps use this method, so I cannot simply remove it. Is there a way to exclude this method i...

Are there coding standards for XML files?

I would like to know if there are any xml coding standards. <?xml version="1.0"?> <overlay id="tutorboy-toolbar-Overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <toolbox id="navigator-toolbox"> <toolbar id="tutorboy-toolbar-Toolbar" toolbarname="TutorBoy Toolbar" ...

Is there an elegant way to specify an XSD schemaLocation attribute in Visual Studio when the referenced schema file is in a different project/assembly?

EDIT See my solution below /EDIT I have a Visual Studio solution with two projects. Project 1 (call it ReferencedProject) contains an XML schema file (ReferencedSchema.xsd). Project 2 (call it MainProject) contains ReferencedProject as a reference. MainProject also has a schema file (MainSchema.xsd). MainSchema.xsd contains the foll...

VS2008 XML Code Snippets Not Working

I added a folder to the Code Snippets Manager, opened the Parent.snippet file for use as a template, edited it as below, and saved it to my "XML Snippets" folder. Now, whenever I try to use a snippet, the editor inserts a comment (<!-- -->) instead of the snippet contents... FOR ANY snippet, the VS2008 original snippets, my snippet - do...

Validate XML Syntax Only in C#

There are a lot of tutorials that teach on how to validate XML against a schema. But now I want to validate XML syntax only, not against the schema. Meaning I just want to check whether the XML is well-form, that whether there are closing or opening tag that is not done properly. Is there anyway I can do that in .Net? ...

Parse Plist (NSString) into NSDictionary

So I have a plist structured string, that get dynamically (not from the file system). How would I convert this string to a NSDictionary. I've tried converting it NSData and then to a NSDictionary with NSPropertyListSerialization, but it returns "[NSCFString objectAtIndex:]: unrecognized selector sent to instance 0x100539f40" when I att...

Converting XSLT 1.0 to XSLT 2.0

I have a XSLT 1.0 file to transform a XML file using XSLT 1.0. It works fine with IE 6.0, Firefox 3.0.11. However, PHP 5.2.6 XSL XSLTProcessor (providing XSLT 1.0) and Qt C++ QXmlQuery (providing only XSLT 2.0) give blank output. I'm thinking of 2 ways: Convert it to XSLT 2.0 Extract Firefox part to parse. I prefer the 1st one. Plea...

How to connect these 3 programming languages?

How to pass information in this flow: Flash(AS3) -> PHP, using XML -> Database(mysql) Can anyone write a simple code for that? Thanks. ...

SAXException: Unexpected end of file after null

I'm getting the error in the title occasionally from a process the parses lots of XML files. The files themselves seem OK, and running the process again on the same files that generated the error works just fine. The exception occurs on a call to XMLReader.parse(InputStream is) Could this be a bug in the parser (I use piccolo)? Or is ...

How do I read and write XML in Cocoa Touch?

I want to create a file using Objective-C, which stores the data comes from XML. I also have to do basic functions of read and write into that file. How can I do this? ...

I can't find xsd.exe in Visual Studio 2008?

In Visual Studio 2005 the XSD compiler was in the SDK/v2.0 directory. In Visual Studio there is only a SDK/v3.5 directory has gone and so too has the xsd.exe compiler. Where has it gone? Tony ...

How can I create a complex data structure in Perl?

%a = ( "KEY" => { "p1" => 1 , [1223], "p1" => 2 , [2323], "p1" => 3 , [2353], } ); I want to generate a structure like this. I have tried with this code: @array = ( 1223 , 2323 ,2353 ); $count = 0; foreach my $i (@array) { $a{"KEY"} => { "p1" ...